我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

你能用内存中的图像在PHP中创建GD图像​​吗?

I need the a function like imagecreatefrompng(), but I want to pass in the image directly (as opposed to the filename). Is this possible?

Note: I need this because the image is coming from a blob in a database.

imagecreatefromstring()

It should detect it is a png from the image header and return an image resource.

Yes, you can use imagecreatefromstring()

ttp://us2.php.net/manual/en/function.imagecreatefromstring.php

近期文章

  • idea导入项目出现的问题。【问题已解决】
  • C语言逗号表达式的赋值问题
  • tof200模块引脚问题
  • ue虚幻引擎5烘焙时出现报错导致烘焙停止
  • gnuradio连接Rtl-SDR怎么设置流图能看信号时域波形
  • idea提交gitee仓库总是失败(有偿)
  • 代码中如何使用日志?
  • 如何用十六进制软件看图片信息
  • PHP5.5 修改了php.ini仍旧不能开启php_openssl.dll
  • 请问这个C语言代码可以怎样修改
  • 意外的T_REQUIRE_ONCE应该是预期的
  • hbuildx打包app
  • 如何在 unity达成游戏《人类一败涂地》的物理效果
  • 关于#python#的问题:该程序旨在使用递归获取文件路径的方式查找筛选并复制所需要的文件至指定路径
  • 销售管理系统设计保存输入数据到文件
  • python窗口位置问题
  • win自带内存检查,检测硬件有问题!
  • Python中的指针
  • 使用CronTab运行php脚本
  • maven 就是有某些依赖版本号找不到

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华