Re: File information JPEG Files

From: Date: Sun, 12 Jan 2003 16:41:12 +0000
Subject: Re: File information JPEG Files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131342@lists.php.net to get a copy of this message
Hi, Monday, January 13, 2003, 2:10:57 AM, you wrote: hmgd> How can i get the file information of a uploaded jpeg-file. hmgd> i need the heigt and width in pixel and the resolution. hmgd> Thanks Harry Use getimagesize() $info = getimagesize('image.jpg'); echo 'Width = '.$info[0].' Hieght = '.$info[1]."<br>'; Resolution is meaningless until you need to print it I think. -- regards, Tom

« previous php.general (#131342) next »