If you'd like to upload plug-ins, please create an account below. Otherwise (e.g. for download or commenting) you do not need one! Enjoy :-)
By request at GimpTalk...
A script to take the current pattern, scale it and leave a copy in the clipboard. Gimp 2.6 lets you use the image in the clipboard as a fill pattern, so you can just use it from there
Scale is from 20% to 500% It used Lanczos scaling working a a tiled copy of the image, so if the source pattern is tileable the scaled one will be as well.
You can access the script by right clicking on a pattern and selecting "Scale Pattern..."
I have added an option to call either sharpen or unsharp mask interactively so the sharpness can be adjusted visually before the pattern is placed in the clipboard.
-Rob A>
| Attachment | Size |
|---|---|
| scale_pattern.scm | 2.19 KB |
Comments
Thanks~!
My god this is so much more handy, thank you so much! An absolute must when dealing with patterns.
Way better than opening as image..resizing..copy
Added sharpening
I added an option to call either sharpen or unsharp mask interactively so you can see the results before the pattern is saved to the clipboard. Hope this makes it more useful for some folks.
-Rob A>
The reason anyone would need this script is?
Does not perform any 'smart scaling' nor any sort of image enhancement whatsoever.
Simply scales the pattern image with a lot less options than 'Scale Image' from the 'Image' menu.
Why?
Pure convenience, that is why.
I use patterns a lot with selection area fills. The only other way I have to access a scaled copy of a pattern is to open it as an image, scale it then save it/copy it to the clipboard.
This is a lot handier for me, and I figured others might appreciate the convenience. If you don't like it, don't use it ;)
-Rob A>
500%?..that is a lot! will
500%?..that is a lot!
will be not better add ,as options, a additional unsharp mask step ,? may improve dramatic scaling
Excellent; just be aware of large zoom size.
Fantastic Rob. I've seen this before with copy/paste tiles in that if the tile size copied gets too big, you loose tileability. I never checked to see if there is a setting to control the size that you can paste into the pasted tile block though. Still like I said at GIMPTalk, this is a fantastic new tool that's long overdue. :)
Lyle
I like too, is very
I like too, is very handy
And yes ... should be obvious that scale down at 1/4 or up till 500 or even 300 % comport a sensible degrade , that happens with any (bitmap) image not only with patterns.
Anyway i think that a additional option to apply unsharp mask will be useful, result of dramatic scaling often need a retouch
The 20%-500% were arbitrary
The 20%-500% were arbitrary values. Nothing says they have to be used to the full range.
I intentionally didn't add any sharpening as I couldn't find one method that works well for all cases. I know there are some better scaling algorithms coming in the devel. trunk of gimp, so these could be added later.
If someone has a pointer to a better upscaling algorithm for the gimp, please let me know :)
-Rob A>
The 20%-500% were arbitrary
Yes that is right:
No method i know may work in all cases at that full range, is not a limit of your script but a limit of bitmap images
May be better upscaling algorithms (but again if "better" will depend on the kind of image) i upload here
http://www.registry.gimp.org/node/13187 a windows build of some that were proposed
But will be worth to wrote a new script that require extra plugin to work, but with not any improvements guaranteed ?...
I doubt... your script seems very practical as it is.
(yes first i suggested a option for a additional unsharp mask step ,
but that will help only in a % of the cases, in others may even worsen,
so i believe was not a good suggestion, sorry about that )