Re: Resize and Crop in one Step ?
stijink wrote: Hi,
I'm fiddling around with convert for a while now. So i just give it a try in this forum
My input image can be in landscape format or in panel format. (up to 1000x1000 pixels) Now i want to create a quadratic Thumbnail out of it. With one command-line-call if possible. My output size should be 70x70 pixels.
I found out:
I can crop 70x70 pixels out of the middle of the picture using the following options:
-gravity Center -crop 70x70+0+0
A fellow programmer used the following options to generate a "smaller" Version (Thumbnail) of an image with the correct ratio:
Is there a way to combine those options to have an resized and cropped image in 70x70 pixels as a result ?
That's still two steps but both within one invocation of "convert".
Code: Select all
convert input.png -gravity Center -crop 350x350+0+0 -resize 70x70 +repage output.png