-=MrX=- wrote:
>
>
> Hi
>
> I use Gimp just for 2 things.
>
> - resizing pictures to a standard format
> - filters - decor - fuzzy border (each time same border)
>
> Can I make a script what does this for me ?
Yes. Resizing is easier with ImageMagick.
I use some scripting with the making of wallpapers.
http://houghi.org/script/00_personal_scripts/wallpaper_maker
does the
following. It takes an image, makes it the right height, puts a fuzzy
border around it and then puts a deeper nrder around that.
It also takes the name and puts it on it.
A sample of how it will look
http://houghi.org/shots/slides/wppbr_scp_004_celebrities_elisha_cuthbert_02.php
Now I don't expect people to be able to read the script, let alone
understand it. I have not looked at it for a few years, so I probably
would do it a bit different now.
So again, use something else for the resize. Imagemagick is much easier
and proably faster as well. Even the extra border I do with ImageMagick.
I use fuzzy.pl Apparently the old maintainer does not have it on its
website anymore so I just put it up.
http://houghi.org/script/fuzzy.pl
Go to "call the fuzzy border script with parameters" where you can
change the parameters.
For a different effect like http://houghi.org/shots/slides/Jessica6.php
I use http://houghi.org/script/00_personal_scripts/wpm_photo
Instead of the perl script, I directly use the GIMP batch mode.
To make the 'photo' I need 3 parameters. The filename, the name of the
image and the number of the photo.
Simpel example:
#!/bin/bash
FILE=$1
NAME="Fuji Color"
NUM=27
gimp --batch-interpreter plug-in-script-fu-eval -i -b '(batch-slide
"'$FILE'" "'"$NAME"'" "'"$NUM"'")' -b '(gimp-quit 0)'
The shadow effect is even easier. By this time the filename os temp.png
gimp --batch-interpreter plug-in-script-fu-eval -i -b '(batch-drop-shadow
"temp.png")' -b '(gimp-quit 0)'
So basicaly it is build up as follows
# first the part to call the script
gimp --batch-interpreter plug-in-script-fu-eval -i -b '(
# Next the name with batch in front of it, together with the parameters
# you can edit
batch-drop-shadow "temp.png"
#Then the closing and ending of the batch call
)' -b '(gimp-quit 0)'
And let me repeat myself again. Look at ImagaMagick That can do a LOT
for you much easier and faster then using Gimp in scriting. Use the best
tool at the best moment.
houghi
--
Let's not be too tough on our own ignorance. It's the thing that makes
America great. If America weren't incomparably ignorant, how could we
have tolerated the last eight years? -- Frank Zappa, in 1988


|