Someone on an email list I belong to asked about ways of making a counted cross-stitch pattern from a photo. There are commercial packages that do this, but it seemed like something GIMP could do, and I wanted some Python practice.
Attached is a zip file containing the following files:
It is a python plugin (so you need to have python installed) that can dynamically manage all the resources that gimp can use. (It is basically an extension of the brush manager plugin). He has given me permission to post it here :)
Transparency crop script by J R Hunt, updated by Darrell Enns to work with Gimp 2.6.
Automatically crops out transparent edges. This is particularly useful after performing a rotate or perspective correction on a photo. It can also perform optimizations to find the crop that removes the transparent edges while mainting as much of the original image as possible.
Questo script in python altro non è che una mia personalizzazione e relativa traduzione in italiano basato sul codice "Batch resize" di Carol Spears.
Ho volutamente messo i margini a zero perchè le miniature impaginate possano essere agevolmente tagliate ed ottenere delle piccole foto da un'impaginato grande. Io lo uso per creare in maniera del tutto automatica dei mini album partendo dall'impaginato grande, infatti ci sono pure le misure che uso io col mio laboratorio che stampa in banda 406mm. Si può comunque utilizzare pure per creare delle provinature nei vari formati.
Save all layers as TGA files, discarding alpha channels and applying layer masks as alpha if they exist. Name becomes imagename-layername.tga
This script is created by Joao S. O. Bueno at my request and I take no credit for it's development.
Appears in /Layer/Transparency/Copy Mask to Other layers of the Image window.
Posting this picture filter here specially because it's very rare and difficult to find picture filters made as plug-in for Gimp coded in Python - publishing this would be also for encouraging people on enrich Gimp with good filters (better than mine one, please! :-D )
The only problems of this filter is it seems to be somehow slow (even having a simple code), wich takes 20 seconds with a 320x200 picture - it's also missing undo and progress bar while running...