Save image from one format to another with php gd2

后端 未结 3 1767
梦谈多话
梦谈多话 2021-01-23 08:10

I have a database with a column filled with image binaries data. After I made some research I figuried out how to detect in which image format is the data. Lets say in of the re

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-23 08:57

    All you need is imagecreatefromstring() to read your data and imagejpeg() to output in jpeg format.

提交回复
热议问题