Re: GetImageSize() problem...

From: Date: Wed, 16 May 2001 00:34:11 +0000
Subject: Re: GetImageSize() problem...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52964@lists.php.net to get a copy of this message
""Eric Knudstrup"" <eric@knudstrup.org> schreef in bericht news:NNEOKOCAAJJPFADGIIBKGEBJCAAA.eric@knudstrup.org... > 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. I might have the same problem with PHP 4.0.5 (win2k). Some of the images from my Kodak DC-260 digital camera, are not recognized correctly by getimagesize for some reason.. Example: <?php $imagehw = GetImageSize("http://maasdelta.eve-software.com/foto/kinderspelen/P0007811.J PG"); print $imagehw . "<BR>"; print $imagehw[0] . "<BR>"; print $imagehw[1] . "<BR>"; print $imagehw[3] . "<BR>"; ?> <IMG SRC="http://maasdelta.eve-software.com/foto/kinderspelen/P0007811.JPG"> This image is just a normal JPG (1536x1024) taken directly from my camera. GetImageSize however, thinks it's dimensions are: 51088x38655 ??? This also happens when I access the file from a local drive. Anyone got a clue ? Edwin.

« previous php.general (#52964) next »