Solved

Resize multiple images in GIMP

Posted on 2002-07-29
8
7,546 Views
Last Modified: 2010-08-24
I work at an elementary school and, among other things, it is my job to put pictures on the schools website. Before I can do this I usualy need to scale the images to a reasonable size for the web. For each image I want to resize I have to:

Click on file
Select Open
Select the image
Click OK
Right-click the image
Select Image
Select Scale Image
Enter new width and height
Click OK
Close the image

This isn't a problem with only a few images but tends to get tedious when doing many  pictures at once.

Is there some script or plugin that can resize many images at once? If not, is there someone out there willing to write one for me?
0
Comment
Question by:Theophilus
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 30

Expert Comment

by:weed
Comment Utility
Any reason youre using GIMP instead of Photoshop?
0
 
LVL 1

Author Comment

by:Theophilus
Comment Utility
There are a couple of reasons. Of course, if you can tell me where I can get Photoshop for Linux for free ....
0
 
LVL 30

Expert Comment

by:weed
Comment Utility
Doesnt exist. Maybe someone else will know how to do it with GIMP but most here are Photoshoppies.
0
 
LVL 15

Accepted Solution

by:
lyonst earned 500 total points
Comment Utility
Hi,

I think this might answer your question ?

You can use the mogrify command (part of ImageMagik):

 mogrify -geometry 120x100 *.jpg

will resize the images to 120 by 100 while keeping the aspect ratio.
 
If you have some images smaller than your thumbnail size, and don't want them to be made larger:

 mogrify -geometry 120x100> *.jpg

would resize a 640x480 but not a 100x100.

Mogrify changes the files you're working on!  What I do is cp all the files I want to resize to filenames like "origpic_t.jpg" and then use "*_t.jpg" with the mogrify command.  You can write a little script that uses 'basename' and a few other goodies, it really simplifies it.

Also some good links for you to look at which might help..

http://www.dsl.org/cookbook/cookbook_23.html

and

http://www.gis.unbc.ca/webpages/start/faq/gimp/bottom.html

** Also you can find more information on ImageMagick here

http://www.imagemagick.org/

ImageMagick is a collection of programs to display, manipulate and convert images from one format to another. It can handle many different image formats, including PostScript, GIF, JPEG, TIFF, PICT,and SGI's rgb. The following table briefly describes each ImageMagick program. For more information, see the man page for ImageMagick ( man imagemagick) or the man page for the specific program (e.g. man display).

Version: 5.2.9
Labs: IBM SP, Scientific Development and Visualization Lab, Medicinal Chemistry/Supercomputing Institute Visualization-Workstation Laboratory, Basic Sciences Computing Lab
System(s): all SGI workstations
Categories: Image Display, Image Processing,Animation

Cheers,

T.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 8

Expert Comment

by:GEM100
Comment Utility
Yep, I would also be using something like  ImageMagik or netPBM modules or PHP functions for this...
0
 
LVL 1

Expert Comment

by:m4rc
Comment Utility
i had the same problem.  i use a perl script called album, available at:
http://marginalhacks.com/Hacks/album/

it will make html pages to show all your images.  but it also has an option to resize the pix.  and you can just start it up and let it run on entire directories of images.

cd to the directory w/ the images
album.pl -medium 640x480

and it will resize all your images to 640 by 480.
0
 
LVL 1

Author Comment

by:Theophilus
Comment Utility
Sorry its taken me so long to reply.

Mogrify does just what I was trying to do. I don't even have to install it. It was already there without me knowing about it.

Thank you.
0
 
LVL 15

Expert Comment

by:lyonst
Comment Utility
No problem .. Thanks,

T :->
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Add visuals to your Prezi to keep your audience engaged. Learn how to embed images, edit them, and more in this video micro tutorial. Select "Insert" from the top menu in your Prezi editor: Select "Image": A toolbar will pop in from the right …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now