位置: 编程技术 - 正文

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)

  • 股东撤资涉及到哪些税如何缴纳?
  • 兼职劳务报酬需要发票吗
  • 出口报关单运费小于实际运费
  • 代开了专票,但是销售额没有超过30万怎么处理
  • 工会经费2019年新政策
  • 支付增值税税控系统技术维护费用500元
  • 委托加工继续生产增值税计入成本吗
  • 由财政拨钱还银行借款怎么做分录?
  • 长期借款按月计提
  • 企业减免6%的税的营业范围有哪些?
  • 认缴制下实收资本印花税
  • 营改增后停车费税率
  • 营改增金融业税收政策
  • 房地产公司的广告语
  • 食堂购买的固定资产可以一次性加计扣除吗
  • 劳务派遣一般纳税人可以简易征收吗
  • 出租厂房收取水电费吗
  • 制造费用分摊的账务处理怎么做?
  • 利润表没有其他业务利润
  • 增值税普票当月开错了怎么办
  • 企业在项目建设前必须进行
  • bios术语
  • 表格关闭函数
  • 退付手续费怎么操作
  • 辅助生产车间照明用电计入哪个科目
  • 什么是文件扩展名dws
  • 在win7系统中将打开窗口拖到屏幕顶端
  • 行政单位如何将资产年报导入财报里
  • php数字转换大写
  • windows7如何格式化恢复出厂设置
  • 零售业如何盈利
  • 企业的存货采用计划成本核算,某年年末,结
  • 不合规发票入账违反了什么纪律
  • php如何上传1个g以上的文件
  • cmd 过滤命令
  • 所得税申报资产总额
  • ajax写接口
  • discuz mysql8.0
  • 员工回家探亲的文案
  • 净利润和毛利润谁大
  • 技术安装工人包食宿
  • 同时安装vs2005团队开发版和sql 2005企业版的方法(downmoon原作)
  • mysql 局域网访问权限
  • 政府补助是否可以抵扣
  • 农产品加计扣除10%进项税账务处理
  • 出纳提取现金有金额限制吗
  • 解决Win7 x64安装解压版mysql 5.7.18 winx64出现服务无法启动问题
  • win10最新预览版下载
  • 电脑更新win10系统软件
  • 微软 win7
  • win8系统打不开设置
  • 注册表修改大全
  • ubuntu怎么安装程序
  • ubuntu 16.04.6安装教程
  • ubuntu16.04安装拼音输入法
  • 苹果电脑安装了双系统怎么恢复苹果系统
  • linux如何读取nvme信息
  • windows8.1界面
  • window10突然激活失效
  • linux 11
  • Extjs407 getValue()和getRawValue()区别介绍
  • jquery滑动触发事件
  • 使用jquery操作dom
  • 简介怎么写
  • js frameset
  • andriod+nfc
  • java线程池创建
  • linux中awk用法详解
  • unity shader ao
  • JavaScript jQuery 中定义数组与操作及jquery数组操作
  • unity3d开发流程
  • android:ellipsize="marquee"
  • NGUI学习笔记汇总
  • JS中call/apply、arguments、undefined/null方法详解
  • Metaio in Unity3d 教学--- 一. 搭建环境,运行官方案例
  • pjblog修改技巧汇总
  • 如何获取电子户口簿
  • 匈牙利离中国广东有多远
  • 三免三减半是什么
  • 财税公司工资怎么样
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设