Solved

Resize multiple images in GIMP

Posted on 2002-07-29
8
7,621 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 30

Expert Comment

by:weed
ID: 7186437
Any reason youre using GIMP instead of Photoshop?
0
 
LVL 1

Author Comment

by:Theophilus
ID: 7186554
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
ID: 7186563
Doesnt exist. Maybe someone else will know how to do it with GIMP but most here are Photoshoppies.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 15

Accepted Solution

by:
lyonst earned 500 total points
ID: 7190078
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
 
LVL 8

Expert Comment

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

Expert Comment

by:m4rc
ID: 7203687
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
ID: 7283866
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
ID: 7283915
No problem .. Thanks,

T :->
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
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 …
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…

724 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