生成的图像显示翻转 [英] Generated images showing flipped

查看:125
本文介绍了生成的图像显示翻转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一张图片,但它显示在Google Chrome,Safari,iOS和iPhone上。
但是图像在IE和Android上正确显示。

We have a image, but it's showing flipped on Google Chrome, Safari, iOS and iPhone. But image showing correctly on IE and Android.

怎么样?

推荐答案

图像显示为旋转因为它包含一个Exif Orientation字段,该字段设置为Rotate 90 CW(值6)。如果图像是在不更新Exif数据的软件中旋转,则可能会发生这种情况。 Chrome,Safari等人正在尊重这一领域,而显示正确图像的软件却没有。

The image is shown rotated because it contains an Exif Orientation field which is set to "Rotate 90 CW" (value 6). This could happen if the image was rotated in software that don't also update the Exif data. Chrome, Safari et al is honoring this field, while the software that shows the image "correctly" doesn't.

根据Exif字段,它是旋转版本是正确的。

According to the Exif fields, it's the rotated version that is correct.

要在所有软件中正确显示,请删除Exif Orientation字段。

To show correctly in all software, remove the Exif Orientation field.

参见 TIFF Orientation 获取更多信息。

这篇关于生成的图像显示翻转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆