显示带有PHP的JPG照片中成像
在图像描述中,我有一张带有挪威角色的照片。此PHP代码未正确显示该字符。
$exif = exif_read_data('1.jpg','IFD0',true);
echo $exif["IFD0"]["ImageDescription"];
该字符是正确编写的,因为我可以在Windows和Adobe Bridge中看到它。同样,当我将同一文件上传到此在线查看器时,图像描述使用挪威字符正确显示。
https://exifdata.com/exif.php.php
我知道这是可能的,但是他们不' t列出他们的来源。
任何帮助都得到了很大的收获。
下方的链接
在我的非工作文件 : https://www.garryjones.se/testit/
图像描述中带有挪威角色的照片 https://www.garryjones.se/testit/1.jpg
I have a photo with a Norwegian character in the Image Description. This PHP code is not displaying the character properly.
$exif = exif_read_data('1.jpg','IFD0',true);
echo $exif["IFD0"]["ImageDescription"];
The character is written correctly as it I can see it in Windows and Adobe Bridge. Also when I upload the same file to this online viewer the Image Description displays correctly with the Norwegian character.
So I know it is possible, but they don't list their source.
Any help greatly received.
Links Below
My non-working file:
https://www.garryjones.se/testit/
The photo with the Norwegian character in Image Description https://www.garryjones.se/testit/1.jpg
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在
您只需要找出如何执行
ini
设置,但是幸运的是,有人在15年前添加了该信息,请参阅: https://www.php.net/manual/manual/en/en/en/function.exif-read-data.php#73645In the docs, there is a NOTE:
You only have to find out how to do the
ini
setting, but luckily someone added that info 15 years ago, see: https://www.php.net/manual/en/function.exif-read-data.php#73645