Page 1 of 1

How to zoom on a image

Posted: 2007-08-22T06:26:39-07:00
by camilleroux
Hi,

I'm looking for a command line (with "convert") to create, for exemple, a 250x250 picture from a 1000x1000 where we see only the [0-125]x[0-125] top left corner part (resize + 2x zoom in fact).

Thank you

Re: How to zoom on a image

Posted: 2007-08-22T08:01:42-07:00
by Bonzo
This will crop the image and possibly resize it; I always tend to be resizing smaller not increasing the size.

Code: Select all

convert original.jpg -crop 125x125+0+0 -resize 250x250 new_image.jpg

Re: How to zoom on a image

Posted: 2007-08-22T21:47:36-07:00
by anthony
If you like the resize to 'pixelate' the image when enlarging set "-filter Pixel" or better still use the faster "-scale" resize operator.