note 2954 modified in GetImageSize by jmoore

From: Date: Thu, 31 Aug 2000 22:42:01 +0000
Subject: note 2954 modified in GetImageSize by jmoore
Groups: php.notes 
Request: Send a blank email to php-notes+get-3819@lists.php.net to get a copy of this message
I found I was able to get the dimensions of an image just prior to storing it in the database. I did this by using GetImageSize on the actual data, not the filename. This allowed me to get the dimensions without having to create a tmp file. $imagehw = GetImageSize($form_data); // Do this prior to adding slashes // to the data. $imagewidth = $imagehw[0]; $imageheight = $imagehw[1]; // Proceed with storing the image. http://www.php.net/manual/function.getimagesize.php

« previous php.notes (#3819) next »