开发者

Is it possible to use the GD Library with actual images?

开发者 https://www.devze.com 2023-03-29 07:12 出处:网络
I\'d like to use the GD Library with actual images - BLOBs f开发者_高级运维rom a mysql database.

I'd like to use the GD Library with actual images - BLOBs f开发者_高级运维rom a mysql database.

Can it be done? If so, how?

Thanks.


Yes, using imagecreatefromstring().

It accepts an image as string data, auto-detects its type (as long as it's supported of course) and creates a GD resource based on it.

0

精彩评论

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

关注公众号