Reducing the size of a photo

andy baxter andy at earthsong.free-online.co.uk
Sun Jan 20 12:34:56 UTC 2008


Gilles Gravier wrote:
> Ubuntu comes with a very nice tool to edit images... comparable to 
> Photoshop... GIMP. You should use that.
>
> You open your image in GIMP. Then, from the menus of the window that 
> displays your image, you select :
>
> Image -> Scale Image ... Be sure to keep the little locks between X 
> and Y (Height and Width) or you might get strange results. :)
>
> If you have ImageMagick installed, you have a "convert" tool... which 
> lets you do that as well, manually...
>
> convert  -geometry XxY -quality 75 $baseimage JPEG:$outputimage
>
> This will rescale to XxY, and save with quality 75 (pick whatever 
> suits your needs) the image with name $baseimage, into a JPEG file 
> with name $outputimage
>
The point about image magick is that you can do a batch of images 
automatically /if/ you know how to write a simple shell script. I.e. you 
start it off and it will resize all the images to a new size without you 
having to open each one in the GIMP and save it again. But I'm reluctant 
to post a recipe for doing this because it's too easy to go wrong with 
this method if you don't know a bit about what you're doing.




More information about the ubuntu-users mailing list