位置: 编程技术 - 正文

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)

  • 月末结存材料的实际成本例题
  • 法人资格证书是营业执照吗
  • 税务登记证注销证明
  • 企业购置节能节水专用设备
  • 如何设置采购入库的对方科目暂估科目
  • 置换上市公司资质要求
  • 收到土地使用权转让金会计分录
  • 个体户销售蔬菜免增值税吗
  • 计提本月工资记账凭证怎么填
  • 现金返利怎么做账
  • 基建项目税率
  • 个人缴付年金的扣除限额
  • 零元股权转让会亏本吗
  • 培训费开发票明细为会议费如何做账?
  • 华为折叠手机mateXs3
  • 电脑win10点开始没反应
  • 发工资一定要交税吗
  • 局域网内ip地址冲突怎么找出来
  • 退还押金的账务处理流程
  • window10与CentOS双系统安装详细教程
  • 盘盈盘亏固定资产
  • 超市收取进场费会计分录
  • 完美解决索尼电视arc无声音
  • nbscheduler是什么程序
  • wordpress文章分页插件
  • 最小的电池是多大
  • 收到固定资产的记账凭证
  • 哪些支出可以计入成本科目
  • thinkphp pathinfo
  • 进项税额销项税额
  • phpcms如何配置404
  • 购房发票可以对折吗
  • 已经抵扣的发票红字信息表怎么开
  • 其他债权投资是长期投资吗
  • 外贸企业出口退税
  • 哪些公司可以开电费发票
  • 营改增后小规模都是三个点吗
  • 低值易耗品的账务处理图片
  • 包装物租金如何界定
  • 建筑安装主要做什么
  • 办公用品采购如何记账
  • 汇算清缴退税分录
  • 所得税汇算清缴前取得跨年发票
  • 金税盘年服务费账务处理
  • 预缴税款的会计处理
  • 办公用品怎么开大额发票
  • window mysql
  • windows安装orthofinder
  • macbook macos
  • Ubuntu 14.04 64位搭建ADT开发环境的方法
  • win7系统怎么给软件打开摄像头权限
  • xp系统远程桌面怎么设置
  • 关闭xp不需要的服务
  • linux挂载yum
  • msedge.exe是什么
  • korok是什么文件
  • win8怎么禁止更新
  • zmweb.exe是什么进程
  • 电脑开机显示windows不可用
  • Win10系统中怎么将文件夹进行压缩
  • js时间倒计时定时器怎么弄
  • javascript怎么学
  • Unity3D游戏开发pdf
  • 迁移的项目
  • network备份软件
  • node搭建项目
  • 简单的jquery插件实例
  • jquery返回顶部
  • js class 私有方法
  • javascript中的函数该如何理解
  • js所有知识点
  • javascript七种数据类型
  • 税务局的前身是什么
  • 河北电子税务局如何添加办税人员
  • 工行网银如何申请发票
  • 个人以土地投资入股都需缴纳哪些税
  • 鸦片战争签订了条约
  • 固定资产处置要开票交税么
  • 晋阳学堂实验学校学费多少钱
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设