"-resize 180x" resizes the image to 148x.... any clues ?
Posted: 2007-03-09T08:47:15-07:00
Hi all,
i encountered a weird problem -
when resizing images with ImageMagick from within PHP,
it converts it to a different size than entered.
HereĀ“s the code:
system("convert \"".$userfile."\" -resize 400x \"".realpath(".")."/../Images/upload/Illustrations/".$NewName."\"",$error);
system("convert \"".$userfile."\" -resize 180x \"".realpath(".")."/../Images/upload/Illustrations/thumbs/".$NewName."\"", $error);
First conversion (to 400x) works fine, second converts too, but to 148 pixels in width.
anybody encountered sth. similar or can give me a hint in the right direction ?
Thx in advance !
i encountered a weird problem -
when resizing images with ImageMagick from within PHP,
it converts it to a different size than entered.
HereĀ“s the code:
system("convert \"".$userfile."\" -resize 400x \"".realpath(".")."/../Images/upload/Illustrations/".$NewName."\"",$error);
system("convert \"".$userfile."\" -resize 180x \"".realpath(".")."/../Images/upload/Illustrations/thumbs/".$NewName."\"", $error);
First conversion (to 400x) works fine, second converts too, but to 148 pixels in width.
anybody encountered sth. similar or can give me a hint in the right direction ?
Thx in advance !