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
How to zoom on a image
Re: How to zoom on a image
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
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: How to zoom on a image
If you like the resize to 'pixelate' the image when enlarging set "-filter Pixel" or better still use the faster "-scale" resize operator.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/