Re: [Tuxpaint-devel] Gimp script-fu to help create stamps
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Pere P. i C. <pe...@fo...> - 2007-08-10 22:31:37
|
El ds 28 de 07 del 2007 a les 13:41 +0200, en/na Pere Pujal i Carabantes va escriure: > Hi all! > > When porting the Childsplay images to Tuxpaint it comes clear to me that > the stamp creation should be as automatized as possible. > > I've begin to learn the gimp script-fu language and come with this > script: > http://forn.... > > It is developed under gimp 2.3.18 ,and don't work under stable 2.2.XX > series. Now I've ported for gimp 2.2.XX and have two scripts, the former and this one: http://fornol.no-ip.org/linux/tuxpaint/scripts/mktpstamp_2.2_.scm Added some error check and improvements. Sumarizing, you ned to put the suject on a transparent layer and add a mask for it, not need to antialias the mask, not need to paint away expanding the edges of the subject. Set the layer with the mask to edit and run the script. Script-fu->alchemy->mktpstamp > You will be prompted by several things: > > Runs: The script will expand the edges of the subject 5 pixels around > per run, Runs are now autocalculated to get edges of the subject expanded 20 pixels in the final image and this question removed. > Blur the mask --> antialias. We should check if it is enouth or needs > more love and may be make it optional for people wanting to hand edit > the mask. Changed from plug-in-blur to plug-in-gauss. Now you can put the value for it. If 0 will not blur, thus the mask will be kept intact. Defaults to 1 And the resulting image: http://fornol.no-ip.org/linux/tuxpaint/scripts/dumper_2.2_.png Any comments? Thanks! Pere |