RE: [PHP] Re: image size?

From: Date: Tue, 14 Sep 2004 15:17:33 +0000
Subject: RE: [PHP] Re: image size?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-196627@lists.php.net to get a copy of this message
> -----Original Message----- > Let me explain more fully: > I call a script like this: > > <img src="image.php?file=file_name_here.jpg"> > > The script figures out if the image named in $_GET['file'] is portrait > or landscape, and creates a thumbnail of the same orientation. I would > like to get the x and y values of the image out of this script somehow, > so that I can specify the height and width attributes. However, calling > > imagecreatefromjpeg("image.php?file=file_name_here.jpg"> > > returns an error that it can't open the stream. That function needs the full path to the image. The full path can be a URL or it can be a file path. If you want it to access a URL, the URL needs to be fully formed - ie. Including the http://. -Ed

« previous php.general (#196627) next »