脚本宝典收集整理的这篇文章主要介绍了用PHP将EXIF写入JPG,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
//Loading existing image $edITed = new Imagick(dirname(__FILE__)."/mini.jpg"); //Stripping the curren EXIF info. I think is not mandatory and I try to comment but nothing... $edited->stripImage(); //Setting the new PRoPErties $edited->setImageProperty('exif:GPSLatitude','30/1,46/1,58605/1000'); $edited->setImageProperty('exif:GPSLongitude','63/1,57/1,35550/1000'); $propiedades = $edited->getImageProperties(); var_dump($propiedades); VAR_dump($edited->writeimage('mini_edited.jpg')); //reading the new image EXIF Info $readedited = new Imagick(dirname(__FILE__)."/mini_edited.jpg"); $propiedades_edited = $readedited->getImageProperties();
图像已成功保存,但没有exif信息更新.
任何人都知道如何用这个或任何其他工具解决这个问题?
唯一的要求是使用PHP
非常感谢你提前!
以上是脚本宝典为你收集整理的用PHP将EXIF写入JPG全部内容,希望文章能够帮你解决用PHP将EXIF写入JPG所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。