Page 1 of 1

"-resize 180x" resizes the image to 148x.... any clues ?

Posted: 2007-03-09T08:47:15-07:00
by funkhero
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 !

Re: "-resize 180x" resizes the image to 148x.... any clues ?

Posted: 2007-03-09T08:50:49-07:00
by funkhero
fook ! forget it. had old code on test-site, stating 148x.

sorry =)

*lookin into cvs now...*