Re: GetImageSize() problem...
| From: | Eric Knudstrup | Date: | Fri, 04 May 2001 04:37:02 +0000 |
| Subject: | Re: GetImageSize() problem... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51365@lists.php.net to get a copy of this message | ||
I think that was the first thing I tried.
It might have something to do with the actual image itself.
Images created with th PHP/GD routines come up with acceptable results.
Thanks,
Eric
Quoting Dan Lowe <dan@tangledhelix.com>:
> Previously, Eric Knudstrup said:
> > 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>";
>
> have you tried this as the last line instead?
>
> echo 'orig x: ' . $orig_size[0] . ' orig y: ' . $orig_size[1] .
> '<br>';
>
> -dan
>
> > 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
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
> --
> All good technology should be used to piss off people's parents. -Neil
> Gaiman
>