位置: 编程技术 - 正文

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

编辑:rootadmin
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)

  • 定期定额户需要做账吗
  • 住房贷款专项扣除
  • 出资款在现金流中怎么体现
  • 预缴增值税项目编号填写错误怎么办
  • 资产负债表各项目的填列依据是
  • 进口贴息对企业的好处
  • 财产理赔收入怎么做账
  • 800多项进口关税减免
  • 接受控股股东的非现金资产捐赠
  • 高新企业如何结转成本
  • 税收返还要交税吗
  • 企业所得税研发费用100%扣除的有哪些企业
  • 企业季度所得税资产总额怎么填
  • 水利建设专项收入怎么计算
  • 19年入职19年离职
  • mac电脑因问题而重新启动
  • boot mac os from
  • 期货和远期
  • 怎么冲财务费用
  • service5.exe - service5是什么进程 有什么用
  • 二手车交易税咋算
  • 预提收入的会计处理方法
  • PHP:mcrypt_cbc()的用法_Mcrypt函数
  • 销售收入与销售成本
  • ElementPlus DateTimePicker日期时间选择器限制可选时间范围(精确时分秒)
  • 开发商没交税
  • react-use
  • 海狸岛好玩吗
  • 简单了解航天员的生活
  • 新闻发布管理系统
  • php获取路径和目录的方法
  • php引用返回用法怎么用
  • 论文笔记模板
  • 计算机网络拓扑结构有哪些
  • centos7安装keepalived
  • 电子承兑非拒付追索待清偿
  • 酒店业营业税税率
  • 公司车辆固定资产转移税
  • 公司进行清算
  • phpcms怎么样
  • python knn算法和结果
  • 固定资产处置时的清理费用计入哪里
  • 利息收入为什么冲减财务费用
  • 总公司和分公司按什么分类
  • 需要登记的权利
  • 产品的运输费用分录
  • 工程物资月末必须结转吗
  • 融资性售后回租承租方出售资产为什么不缴纳增值税
  • 利息发票如何做会计分录
  • 项目支付预缴税额怎么算
  • 资本公积金转增股本是利好吿
  • 缴纳印花税如何写分录
  • 企业营改增税率是多少
  • 企业年底亏损怎么结转
  • 支付技术转让费怎么入账
  • 合同资产结转收入
  • 收到技术服务费的账务处理
  • 多收钱退回去咋说
  • 母公司及子公司增资
  • 超市会计怎么做会计分录
  • 哪些人必须办理纳税登记
  • sql server入门新手教程
  • mac如何设置默认打开程序
  • 光盘做镜像文件
  • win8.1 开始
  • xp输入法图标消失
  • win1020h2版好不好
  • win8.1怎么用
  • win7电脑显示器颜色不正常怎么办
  • win7小技巧
  • cocos2dx schedule
  • jquery自定义组件
  • js设置滚动条滚到底部
  • unity example project
  • android app测试
  • js中生成随机数
  • 兴安盟县城
  • 2015年中国出口退税新政策
  • 济宁地方税务局
  • 贵州省税务局领导介绍
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设