Wednesday, November 08, 2006

Resize Images Using convert

A friend of mine has a lot of images. Those images are very beautiful. Unfortunately I found out that the image size was very big. One of them has 2592x1944 pixels dimension and of course the size is gigantic (1MB) (!).

I remembered sometimes ago I played a little bit with "convert", an application to :

convert between image formats as well as resize an image,
blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

Convert is a tool available in ImageMagick package.

So here is the command to resize that big image :

convert -resize 648x486 Picture\ 021.jpg Picture\ 021a.jpg

Notes :

- For -resize option you can give whatever argument suitable for that image. I resize the image to a quarter of its origin dimension.

- I resized the image to another file, just in case the result is not good enough I can always revert to the original file.

The convertion process will take sometime depends on your computer speed.

The gigantic image now becomes a smaller image (its size only 71.5KB).

2 comments:

ai_zeus said...

Why don't use galley? The advantages is you can preview your image based on category. Just like .... :-"

tedi said...

I don't want the images to be published. :D

It's just for my own purpose. :p