Shawazi wrote:I narrowed my code. It basically should resize my original image of 338x204 toCode: Select all
$size = GetImageSize('action_usage.gif'); //size of source $dest = getHorizontalProp($size, 200); //returns array of new dimensions $dest_x = $dest['x']; $dest_y = $dest['y']; echo $dest_x.'x'.$dest_y.'<br />'; $transSize = MagickTransformImage( $original, '0x0', $dest_x.'x'.$dest_y ); //resize image MagickCropImage( $transSize, 100, 100, 0, 0 ); //crop image MagickWriteImage($transSize, 'action_test.gif'); //save resized image echo '<img src="action_test.gif" alt="test" title="test" style="border: solid 1px #FF0000;" />'
200x121.
It resizes the image itself but keeps the canvas of the image at 338x204. So with the border I'll see a 200x121 image within a lot of extra white space. It does not happen with PNGs or JPGs
I'm hopgin this gets answered soon as I'm having the same issue.