resize geometry
Posted: 2010-03-11T14:46:50-07:00
Hi,
I'm trying to use these two geometry parameters:
I expected the dimensions of the 300.png image to be 300x480. Am I doing something wrong? Am I misinterpreting the documentation quoted above?
Thanks for any insight on this!
Brent
I'm trying to use these two geometry parameters:
But when I try both of them, I get the same results. Here is some sample output:width Width given, height automagically selected to preserve aspect ratio.
xheight Height given, width automagically selected to preserve aspect ratio.
Code: Select all
bpalme@dakar:~/projects/wikipedia$ identify 400x640.png
400x640.png PNG 400x640+0+0 DirectClass 8-bit 5.8K 0.000u 0:01
bpalme@dakar:~/projects/wikipedia$ convert 400x640.png -resize 'x300' x300.png
bpalme@dakar:~/projects/wikipedia$ convert 400x640.png -resize '300' 300.png
bpalme@dakar:~/projects/wikipedia$ identify x300.png
x300.png PNG 188x300+0+0 DirectClass 8-bit 5.0K 0.000u 0:01
bpalme@dakar:~/projects/wikipedia$ identify 300.png
300.png PNG 188x300+0+0 DirectClass 8-bit 5.0K 0.000u 0:01
Thanks for any insight on this!
Brent