设置 | 登录 | 注册

目前共有7篇帖子。

手机拍的照片上传到电脑上后是倒着的

1楼 巨大八爪鱼 2024-10-14 13:14

这跟JPEG Rotation and EXIF Orientation有关。

http://chunter.tistory.com/143

https://www.florian-rhomberg.net/2017/07/checking-the-current-orientation-of-the-image-and-rotate-if-necessary/

2楼 巨大八爪鱼 2024-10-14 13:34
jpg文件里面的metadata信息块有一个EXIF Orientation标志,可以设置照片是否翻转。但不是所有的看图软件和浏览器都支持这个标志。
4楼 巨大八爪鱼 2024-10-14 14:34
The most important of these additional details is the Orientation flag, stored in the JPEG APP1 marker under EXIF IFD0.
5楼 巨大八爪鱼 2024-10-14 14:37
其实摄像头之所以只设置一个翻转标志,不去翻转图像数据,是因为直接翻转图像数据的话会有数据损失(jpeg是有损压缩),无法保留摄像头输出的原始数据。
6楼 巨大八爪鱼 2024-10-14 14:43
Obtaining image metadata:http://johnbokma.com/java/obtaining-image-metadata.html
巨大八爪鱼https://www.zhihu.com/column/p/25216999
9楼 巨大八爪鱼 2024-10-14 17:32
Java判断手机拍摄的照片是否有翻转标志:https://zh.purasbar.com/post.php?t=29108

内容转换:

回复帖子
内容:
用户名: 您目前是匿名发表。
验证码:
看不清?换一张