Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > GIMP (GNU Image Manipulation Program) > Re: making a sc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 24 Topic 3079 of 3157
Post > Topic >>

Re: making a script

by houghi <houghi@[EMAIL PROTECTED] > Sep 22, 2008 at 09:21 PM

-=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
 




 24 Posts in Topic:
making a script
-=MrX=- <herrie@[EMAIL  2008-09-22 18:41:57 
Re: making a script
houghi <houghi@[EMAIL   2008-09-22 21:21:18 
Re: making a script
houghi <houghi@[EMAIL   2008-09-22 23:24:26 
Re: making a script
-=MrX=- <herrie@[EMAIL  2008-09-23 16:51:10 
Re: making a script
houghi <houghi@[EMAIL   2008-09-23 17:07:05 
Re: making a script
houghi <houghi@[EMAIL   2008-09-23 22:24:15 
Re: making a script
-=MrX=- <herrie@[EMAIL  2008-09-24 16:03:14 
Re: making a script
houghi <houghi@[EMAIL   2008-09-24 16:53:08 
Re: making a script
-=MrX=- <herrie@[EMAIL  2008-09-25 08:21:13 
Re: making a script
houghi <houghi@[EMAIL   2008-09-25 11:20:33 
Re: making a script
Troy Piggins <usenet-0  2008-09-23 08:00:12 
Re: making a script
floyd@[EMAIL PROTECTED]   2008-09-25 04:57:05 
Re: making a script
houghi <houghi@[EMAIL   2008-09-25 16:05:01 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 01:15:43 
Re: making a script
Niels Giesen <niels.gi  2008-09-26 09:53:44 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 12:04:58 
Re: making a script
Giacomo Boffi <giacomo  2008-09-26 12:34:41 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 12:56:37 
Re: making a script
Niels Giesen <niels.gi  2008-09-26 22:03:52 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 20:38:05 
Re: making a script
floyd@[EMAIL PROTECTED]   2008-09-26 01:21:17 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 12:51:49 
Re: making a script
houghi <houghi@[EMAIL   2008-09-26 22:13:07 
Re: making a script
Dirk Dietrich <kaufinf  2008-10-03 18:16:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 17:17:06 CST 2008.