Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

php

image

upload

gd

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?

like image 232
Kasper Avatar asked Sep 20 '08 20:09

Kasper


1 Answers

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

like image 189
PhiLho Avatar answered Oct 19 '22 10:10

PhiLho