Version of ImageMagick: ImageMagick-6.5.4-6-Q16-windows-dll.exe
Trying to use the Cut the Image to Fit as described in the link.
I did start out using syntax for Cut the Image to Fit, but then I did start to try other things...
This two lines of code give me the same output picture (witch is 100x75).
Code: Select all
convert hatching_orig.jpg -thumbnail 100x100 thumbnail.png
convert hatching_orig.jpg -thumbnail 100x100^ thumbnail.png
As I understand this, the output from 100x100^ out to be bigger than 100 on both sides?command-line-options wrote:widthxheight^ Minimum values of width and height given, aspect ratio preserved.
While testing I did find out that moving "-gravity center" up before "-thumbnail", that got the "-gravity center" to work.
Code: Select all
convert hatching_orig.jpg -gravity center -thumbnail 100x100^ -extent 100x100 thumbnail.png
regards