这几天我一直在尝试使用PHP在JPG图像中写入(或更新)EXIF信息(地理标记、纬度和经度)。在咨询了很多网站都没有成功之后,我认为最好的选择是使用Imagick,但虽然我似乎可以使用setImageProperty()设置纬度和经度,但是当我写图片时,EXIF没有保存。这里我给出一个代码片段://Loadingexistingimage$edited=newImagick(dirname(__FILE__)."/mini.jpg");//StrippingthecurrenEXIFinfo.IthinkisnotmandatoryandItrytocommentbutnothing.