设置 | 登录 | 注册

目前共有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

内容转换:

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