$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;" />'
I narrowed my code. It basically should resize my original image of 338x204 to
200x121.
It resizes the image itself but keeps the canvas of the image at 338x204. Like I said, it does not happen with PNGs or JPGs
I attached an image to show you what I mean