开发者

PHP Get Image size when image is stored as byte array

开发者 https://www.devze.com 2023-03-24 08:28 出处:网络
I h开发者_开发问答ave image as binary string. (submitted via POST from C# app as byte array) I can read it using imagecreatefromstring function.

I h开发者_开发问答ave image as binary string. (submitted via POST from C# app as byte array)

I can read it using imagecreatefromstring function. How can I get image size (width and height)?

getimagesize function takes filename as parametar. Is there alternative that can read image from binary string and return image size?


You can use imagesx and imagesy on gd resources.


Try imagesx(); and imagesy();

0

精彩评论

暂无评论...
验证码 换一张
取 消