Complete.Org: Mailing Lists: Archives: discussion: January 2001:
[aclug-L] Re: automating Gimp
Home

[aclug-L] Re: automating Gimp

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: discussion@xxxxxxxxx
Subject: [aclug-L] Re: automating Gimp
From: Jared Johnson <solomon@xxxxxxxxxxxx>
Date: Mon, 8 Jan 2001 16:56:24 -0600
Reply-to: discussion@xxxxxxxxx

On Sun, Jan 07, 2001 at 01:27:39AM -0600, John Reinke wrote:
> 
> I occasionally have tasks where I'd like to perform the same operation on a
> directory of images without manually opening each one in Gimp, performing
> the action, and saving the image. I figured I could use the scripting
> capabilities of Gimp to perform operations on images from the command line,
> but can't find any documention for what I need.
> 
> The tasks I need to perform should be pretty simple:
> 
> 1) Given a directory of .bmp files, convert them all to .gif or .jpg format.
> 
> 2) Given a directory of .jpg files, make a thumbnail copy of each, with a
> slightly modified file name. For example, for the file image.jpg, create a
> copy of the image called imageTN.jpg with the size 75x100 pixels.
> 
> Does anyone have ideas of how to do this?

you probably should not use gimp.  you could probably code a python or perl 
module for gimp, but that would be sort of overkill.  i would reccomend 
installing imagemagick and reading the man page for convert.  messing with the 
names would require some clever bashing.  i've done it all before, with cygwin 
and win32 convert no less, on 300 images or so, but i don't remember offhand 
what commands i used :)

good luck, let me know if you just can't freaking figure it out and i'll see if 
i have anything in my bash history at work.

-Jared Johnson

-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]