GetImageSize() problem...
| From: | Eric Knudstrup | Date: | Thu, 03 May 2001 22:04:49 +0000 |
| Subject: | GetImageSize() problem... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-51343@lists.php.net to get a copy of this message | ||
I am having an issue with 4.0.5 where the following code snippet:
$orig = imagecreatefromjpeg($tmp);
echo 'orig x: ' . imagesx($orig) . ' orig y: ' . imagesy($orig)
. '<br>';
$orig_size = getimagesize($tmp);
echo "orig x: $orig_size[0] orig y: $orig_size[1] <br>";
produces:
orig x: 1200 orig y: 1600
orig x: orig y:
The test image was produced from my Canon S100 and the Canon image
downloading software.
Can anyone help?
Thanks,
Eric