Create Image from Data URL

扶醉桌前 提交于 2019-12-03 21:42:04

A data image URL will usually be base64 encoded, and will then contain a JPG, GIF, or PNG image which you can store.

So a simple base64_decode() should do to turn the data into readable form; if you can't know what format the file was in, you may have to write it onto disk to do a getimagesize() on it (unless you can use one of the new "memory" fopen wrappers shown here).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!