Different Canvas sizes
Posted: 2011-09-05T11:39:18-07:00
Hello,
I was searching a lot but did not find a solution for the following problem:
My original jpeg has a size of, e.g., 1024/768.
I want to resize and crop to different sizes. In three steps I was trying to transform it to 80px/50px - 480/280 - 150/150.
For resizing I already tried several commands, this for example:
resize 480x280 -gravity Center -crop 480x280+0+0
or
resize 480x280 -gravity Center -crop 480x280+0+0 +repage
The problem is: Using the "+repage"-command nothing happens ...
I don't want to have a white border. The picture should be resized in the best way possible.
Hope you understand what I mean.
Thanks for your answers.
I was searching a lot but did not find a solution for the following problem:
My original jpeg has a size of, e.g., 1024/768.
I want to resize and crop to different sizes. In three steps I was trying to transform it to 80px/50px - 480/280 - 150/150.
For resizing I already tried several commands, this for example:
resize 480x280 -gravity Center -crop 480x280+0+0
or
resize 480x280 -gravity Center -crop 480x280+0+0 +repage
The problem is: Using the "+repage"-command nothing happens ...
I don't want to have a white border. The picture should be resized in the best way possible.
Hope you understand what I mean.
Thanks for your answers.