位置: 编程技术 - 正文

PHP:iptcembed()的用法_GD库图像处理函数(phpipam使用)

发布时间:2024-01-03
iptcembed

推荐整理分享PHP:iptcembed()的用法_GD库图像处理函数(phpipam使用),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:php-cp,php ioncube,php ioncube,php ioc,phpipam使用,php ipam,php ip,php ioncube,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 4, PHP 5)

iptcembed — 将二进制 IPTC 数据嵌入到一幅 JPEG 图像中

说明 mixed iptcembed ( string $iptcdata , string $jpeg_file_name [, int $spool ] )

Embeds binary IPTC data into a JPEG image.

参数

iptcdata

The data to be written.

jpeg_file_name PHP:iptcembed()的用法_GD库图像处理函数(phpipam使用)

Path to the JPEG image.

spool

Spool flag. If the spool flag is over 2 then the JPEG will be returned as a string.

返回值

If success and spool flag is lower than 2 then the JPEG will not be returned as a string, FALSE on errors.

范例

Example #1 Embedding IPTC data into a JPEG

<?php//iptc_make_tag()functionbyThiesC.Arntzenfunctioniptc_make_tag($rec,$data,$value){$length=strlen($value);$retval=chr(0x1C).chr($rec).chr($data);if($length<0x){$retval.=chr($length>>8).chr($length&0xFF);}else{$retval.=chr(0x).chr(0x).chr(($length>>)&0xFF).chr(($length>>)&0xFF).chr(($length>>8)&0xFF).chr($length&0xFF);}return$retval.$value;}//Pathtojpegfile$path='./phplogo.jpg';//WeneedtocheckiftheresanyIPTCdatainthejpegimage.Ifthereisthen//bailoutbecausewecannotembedanyimagethatalreadyhassomeIPTCdata!$image=getimagesize($path,$info);if(isset($info['APP'])){die('Error:IPTCdatafoundinsourceimage,cannotcontinue');}//SettheIPTCtags$iptc=array('2#'=>'Testimage','2#'=>'Copyright-,ThePHPGroup');//ConverttheIPTCtagsintobinarycode$data='';foreach($iptcas$tag=>$string){$tag=substr($tag,2);$data.=iptc_make_tag(2,$tag,$string);}//EmbedtheIPTCdata$content=iptcembed($data,$path);//Writethenewimagedataouttothefile.$fp=fopen($path,"wb");fwrite($fp,$content);fclose($fp);?> 注释

Note:

此函数不需要 GD 图象库。

PHP:png2wbmp()的用法_GD库图像处理函数 png2wbmp(PHP4=4.0.5,PHP5)png2wbmp将PNG图像文件转换为WBMP图像文件说明boolpng2wbmp(string$pngname,string$wbmpname,int$dest_height,int$dest_width,int$threshold)将名为pngname的PNG文件

PHP:jpeg2wbmp()的用法_GD库图像处理函数 jpeg2wbmp(PHP4=4.0.5,PHP5)jpeg2wbmp将JPEG图像文件转换为WBMP图像文件说明booljpeg2wbmp(string$jpegname,string$wbmpname,int$dest_height,int$dest_width,int$threshold)将JPEG图像文件转

PHP:iptcparse()的用法_GD库图像处理函数 iptcparse(PHP4,PHP5)iptcparse将二进制IPTC块解析为单个标记说明arrayiptcparse(string$iptcblock)本函数将一个二进制的IPTC块解析为单个的标记。参数iptcblock二进制的IP

标签: phpipam使用

本文链接地址:https://www.jiuchutong.com/biancheng/284734.html 转载请保留说明!

上一篇:PHP:imagettftext()的用法_GD库图像处理函数

下一篇:PHP:png2wbmp()的用法_GD库图像处理函数(php nl2br)

  • 小规模企业所得税会计分录怎么做
  • 小规模纳税人销售农产品税率是多少
  • 关税完税价格怎样理解
  • 企业所得税能不能删除重新报
  • 劳务公司临时工工资需要申报吗
  • 汽车装饰属于什么服务
  • 房地产企业消防设施计入什么科目
  • 公司对公账户给员工发工资税是谁扣
  • 房企预收账款什么时候结转
  • 进口转卖业务
  • 其他流动资产待抵扣进项税额
  • 政府奖励金怎么用
  • 经销商注册什么公司
  • 现金管理规定有哪些主要内容
  • 跨省的分公司亏损需要缴纳所得税吗?
  • 商贸企业加工费票计入什么科目
  • 货物进出口代理公司
  • 海关进口增值税怎么认证抵扣
  • 发票不能开怎么回事
  • 二手车交易公司需要什么资质
  • 企业的主营业务收入
  • 保险代理公司做什么
  • 应收和预收可以抵消吗
  • 合同增值税如何申报
  • windows10如何设置输入法
  • 谷歌浏览器adobe flash player已不再支持
  • 苹果系统中英文切换快捷键
  • linux CentOS/redhat 6.5 LVM分区使用详解
  • 商品房买卖合同面积差3%法律规定
  • 斯卡伊保安公司怎么样
  • win10无法上网,显示灰色的飞行模式
  • 空调应该计入什么科目
  • 虚拟机vm怎么用
  • coolmark是病毒吗
  • php ftp功能
  • 工程价款结算的方式
  • 工资总额包括哪些福利费
  • 纳税人购进农产品取得
  • 普票销售方信息不完整可以用吗
  • Vue3通透教程【十四】TS复杂类型详解(一)
  • vue display
  • 滑模控制理论与应用研究pdf
  • javascript基础书
  • ps怎么用魔棒选区
  • 企业自行清算的条件是什么
  • 一般纳税人注销税务流程
  • 固定资产处置怎么计算
  • 季节性停工计入当期损益吗
  • phpcms怎么样
  • 企业内部研发支持方案
  • 核定征收一般纳税人进项是否可抵扣
  • 支付快递费怎么做账
  • 管理费用如何核算
  • 知识产权fa
  • 政府补助收入总额法会计分录
  • 可供分配利润的计算公式
  • 应付账款跟应收的区别
  • 小企业会计应交所得税
  • 有存货的公司
  • 商业企业库存商品
  • windowsserver2008密码规则
  • ubuntu浏览网页
  • ubuntu开发板
  • window资源管理器
  • manager是啥
  • windows 开发工具
  • mac装win8.1
  • PHPMyAdmin 2.7.0-pl1下载
  • linux k
  • Extjs TriggerField在弹出窗口显示不出问题的解决方法
  • 网页打开新窗口怎么关闭
  • javascript中函数
  • unity 3d脚本编程
  • nvm下载安装
  • jquery 扩展事件
  • 建筑行业增值税11%
  • 农机作业服务费用 如何开发票
  • 沈阳特慢病待遇
  • 办理税务需要开户许可证吗
  • 9月份公积金什么时候扣
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号