Get image size from handler

I am creating an image editor in JS / PHP, but now I have problems. First of all, I am loading an image from a database (loading a blob with imagecreatefromstring). Then I apply the action list to this image. But how can I get the image size from this image processor that I have? Not writing it to a file or not using a stream object. How??

+5
source share
2 answers

If you mean image sizes:

$width  = imagesx($imgHandle);
$height = imagesy($imgHandle);

See imagesx()and imagesy().

, GD (GIF, PNG, JPEG), .

+11

, , php gd , , (png/jpg/bmp...)

0

All Articles