PHP GD, imagecreatefromstring( ); how to get the image dimensions?

Kasper picture Kasper · Sep 20, 2008 · Viewed 7.6k times · Source

Normally I use 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 image dimensions now?

Answer

PhiLho picture PhiLho · Sep 20, 2008

imagesx() and imagesy() functions seem to work with images made with imagecreatefromstring(), too.