[Gimp-user] Multiple file scaling

2005-06-24 Thread Jon Lapham

Hello list,

Is it possible to rescale multiple images (ie: hundreds) without having 
to open each one individually in the Gimp?  I guess this would be a sort 
of batch processing.


Background: I have a perl script which I run to shrink images before 
uploading to the web.  This typically shrinks the size (and thus upload 
times) of my huge 8MPixel JPEG files from 3-4MB to a few hundred KB. 
This works great, and I use this script all the time.  I just thought it 
would be great if the Gimp could do something similar, as I imagine this 
shrink many images before upload is a process that many people need to do.


Thanks!
-Jon

--
-**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*---
 Jon Lapham  [EMAIL PROTECTED]Rio de Janeiro, Brasil
 Personal: http://www.jandr.org/
***-*--**---***---

___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Multiple file scaling

2005-06-24 Thread nuno alexandre
On Fri, 2005-06-24 at 10:03 -0300, Jon Lapham wrote:
 Hello list,
 
 Is it possible to rescale multiple images (ie: hundreds) without having 
 to open each one individually in the Gimp?  I guess this would be a sort 
 of batch processing.
Hi,
you can use convert from ImageMagick.
cd /dir/with_images/
for image in *; do convert -scale 100x100 $image $image; done

check the man page for more info :)


nuno
-- 
Non-free programs are dangerous to you and to your community.
Don't let them get a place in your life. - RMS

___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Multiple file scaling

2005-06-24 Thread Jon Lapham

nuno alexandre wrote:

you can use convert from ImageMagick.
[snip shell script]


As I mentioned, I have a perl script (incidently using the ImageMagick 
module) which does exactly what your shell script does.


I was just curious if/how the Gimp could do it, as I use the Gimp for 
all my image processing except for this one step.


Thanks, Jon

--
-**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*---
 Jon Lapham  [EMAIL PROTECTED]Rio de Janeiro, Brasil
 Personal: http://www.jandr.org/
***-*--**---***---

___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Multiple file scaling

2005-06-24 Thread nuno alexandre
On Fri, 2005-06-24 at 10:28 -0300, Jon Lapham wrote:
 nuno alexandre wrote:
  you can use convert from ImageMagick.
  [snip shell script]
 
 As I mentioned, I have a perl script (incidently using the ImageMagick 
 module) which does exactly what your shell script does.
 
 I was just curious if/how the Gimp could do it, as I use the Gimp for 
 all my image processing except for this one step.

From what I've found on the net, related to theGimp capabilities to do
batch jobs,
I can say that you are better suited with ImageMagick and, like you
said, your custom perl scripts.
I quote:

Batch mode is slow. Its not really a practical replacement for tools
like ImageMagick or NetPBM when it comes to large scale image
conversions or similar. At least not without writing some very clever
scripts. 

The problem with this approach is that gimp/script-fu has no built in
procedures to itterate though a list of images. So you cant easily tell
gimp to load up *.jpg and run predator.scm on them, at least not without
it taking a _long_ time.

So you could write a shell script to fire up gimp in batch mode for each
image, but that starts a new gimp for every image. And gimp startup time
is very very slow, especially if you plan to repeat ir a few hndred
times.

src: http://adrian.gimp.org/batch/batch-7.html




nuno

-- 
Non-free programs are dangerous to you and to your community.
Don't let them get a place in your life. - RMS

___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Multiple file scaling

2005-06-24 Thread David Hodson

Jon Lapham wrote:

Is it possible to rescale multiple images (ie: hundreds) without having 
to open each one individually in the Gimp?  I guess this would be a sort 
of batch processing.


David's Batch Processor (DBP) is a Gimp plugin to do exactly this.
Look at http://members.ozemail.com.au/~hodsond/dbp.html


--
David Hodson  --  this night wounds time
___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Multiple file scaling

2005-06-24 Thread David Hodson

nuno alexandre wrote:


I quote:

[...]

src: http://adrian.gimp.org/batch/batch-7.html


I quote http://adrian.gimp.org/batch/batch.html, the contents page
for that document:

NOTE: This doc is ancient. It it wrong. You really want to look at 
Basic_Batch instead.


That's http://gimp.org/tutorials/Basic_Batch/

Or you can use my plugin, which doesn't allow every image operation
(just the common ones), but is entirely interactive, so you don't
have to worry about writing a script.

--
David Hodson  --  this night wounds time
___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Multiple file scaling

2005-06-24 Thread Mike Gimp
 I can say that you are better suited with ImageMagick and, like you
 said, your custom perl scripts.
 I quote:
 
 Batch mode is slow. Its not really a practical replacement for tools
 like ImageMagick or NetPBM when it comes to large scale image
 conversions or similar. At least not without writing some very clever
 scripts.
 
 The problem with this approach is that gimp/script-fu has no built in
 procedures to itterate though a list of images. So you cant easily tell
 gimp to load up *.jpg and run predator.scm on them, at least not without
 it taking a _long_ time.
 
 So you could write a shell script to fire up gimp in batch mode for each
 image, but that starts a new gimp for every image. And gimp startup time
 is very very slow, especially if you plan to repeat ir a few hndred
 times.
 
 src: http://adrian.gimp.org/batch/batch-7.html

that web page is from 1998
___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Multiple file scaling

2005-06-24 Thread Jon Lapham

David Hodson wrote:

Jon Lapham wrote:

Is it possible to rescale multiple images (ie: hundreds) without 
having to open each one individually in the Gimp?  I guess this would 
be a sort of batch processing.



David's Batch Processor (DBP) is a Gimp plugin to do exactly this.
Look at http://members.ozemail.com.au/~hodsond/dbp.html


Okay, I've installed your plugin, wow, really nice work!

I have a few suggestions, do you want this discussion on the Gimp Users 
list, private email, or some other mailing list?


-Jon

--
-**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*---
 Jon Lapham  [EMAIL PROTECTED]Rio de Janeiro, Brasil
 Personal: http://www.jandr.org/
***-*--**---***---

___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user