How to force resize the images thru API?
Posted: 2007-11-26T10:14:35-07:00
How to use the APIs to force "-resize" to ignore the aspect ratio and distort the image so it always generates an image exactly the size specified.
This is done by adding the character '!' to the size through the command lines. But how to achieve this through API?
CLI:
convert dragon.gif -resize 64x64! exact_dragon.gif
convert terminal.gif -resize 64x64! exact_terminal.gif
This is done by adding the character '!' to the size through the command lines. But how to achieve this through API?
CLI:
convert dragon.gif -resize 64x64! exact_dragon.gif
convert terminal.gif -resize 64x64! exact_terminal.gif