tags:

views:

1015

answers:

2

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
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