Normally I used imagecreatefromjpeg and then getimagesize(), but with firefox 3 I need to go round this different. So now im using imagecreatefromstring( ), but how do I retreive the images dimesions now ?
+1
A:
imagesx() and imagesy() functions seem to work with images made with imagecreatefromstring() too.
PhiLho
2008-09-20 20:38:14
A:
ah yes! i just found the answer on the internet a second ago :)
for those who still interested :
$image = imagecreatefromstring($img_str);
$w = imagesx($image);
$h = imagesy($image);
Kasper
2008-09-20 20:38:44