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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
funkhero

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

Post 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 !
funkhero

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

Post by funkhero »

fook ! forget it. had old code on test-site, stating 148x.

sorry =)

*lookin into cvs now...*
Post Reply