Re: image upload - determining image resolution in pixels ?

From: Date: Tue, 22 May 2001 18:33:44 +0000
Subject: Re: image upload - determining image resolution in pixels ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53890@lists.php.net to get a copy of this message
open the file with gd and use imagesx() and imagesy() <?php $img = imagecreatefromjpeg($file_name) $x = imagesx($img); $y = imagesy($img); ?> gd does not handel quicktime, only jpeg, gif (older, dont go there), png, tiff I think thts it. I havent checked. but never the less, images, not movies. -- Chris Lee lee@mediawaveonline.com "Nicolas Mermet" <himself@nicolas-mermet.com> wrote in message news:himself-2205011038320001@63.221.77.132... > Hi, > I was wondering if there is a way to analize an uploaded jpeg file in > order to extract its resolution in pixels. > Would that be also possible with a quicktime movie ? > thanks, > Nicolas > > -- > 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 >

« previous php.general (#53890) next »