Title: Fix Image Rotation
Author: Gagan Deep Singh
Published: <strong>2015 年 7 月 9 日</strong>
Last modified: 2026 年 2 月 10 日

---

搜索插件

![](https://ps.w.org/fix-image-rotation/assets/icon-256x256.png?rev=1718626)

# Fix Image Rotation

 作者：[Gagan Deep Singh](https://profiles.wordpress.org/gagan0123/)

[下载](https://downloads.wordpress.org/plugin/fix-image-rotation.2.2.2.zip)

 * [详情](https://cn.wordpress.org/plugins/fix-image-rotation/#description)
 * [评价](https://cn.wordpress.org/plugins/fix-image-rotation/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/fix-image-rotation/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/fix-image-rotation/#developers)

 [支持](https://wordpress.org/support/plugin/fix-image-rotation/)

## 描述

Fix Image Rotation plugin fixes image orientation based on EXIF data. Fixes the 
mis-oriented images clicked via mobile phones.

Functionally it filters all uploads and if EXIF->Orientation is set to a number 
greater than 1, then the image is re-saved with a new orientation before the image
is processed by WordPress.

**Though this functionality was implemented in WordPress 5.3, it is still broken
in WordPress and does not take care of edge cases that this plugin handles**

#### Special Thanks to

[Shashwat Mittal](https://profiles.wordpress.org/shashwatmittal/) for meta data 
restoration of rotated images.
 [Mark Jaquith](https://profiles.wordpress.org/markjaquith/)
for making the fix image rotation class more useful. [@tealborder](https://github.com/tealborder)
for adding required library notice in plugins menu. [@broberson](https://github.com/broberson)
for finding and fixing and issue with the plugin. [Benedikt](https://profiles.wordpress.org/bgrande/)
for multiple contributions towards betterment of the plugin.

#### Contribute

To contribute to the plugin fork the [GitHub Repo](https://github.com/gagan0123/fix-image-rotation),
make changes and send pull requests.

#### Icon Attribution

Icons made by [Picol](https://www.flaticon.com/authors/picol) is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/)

## 屏幕截图

[⌊Adding images of different orientations without this plugin.⌉⌊Adding images of
different orientations without this plugin.⌉[

Adding images of different orientations without this plugin.

[⌊Adding images of different orientations with this plugin.⌉⌊Adding images of different
orientations with this plugin.⌉[

Adding images of different orientations with this plugin.

## 安装

 1. Add the plugin’s directory in the WordPress’ plugin directory.
 2. Activate the plugin.
 3. Enjoy your cup of coffee while the plugin takes care of the images.

## 常见问题

### How it works?

When an image is clicked by a camera or a phone, it stores some additional information
about the image. One such information is Orientation. This plugin makes use of the
Orientation value stored by the camera/phone and rotates or flips the image based
on that.

### Where’s the settings page?

This plugin works out of the box and does not require any settings.

### Can I contribute to the plugin?

Yes you can. As mentioned in the description, just fork the [GitHub Repo](https://github.com/gagan0123/fix-image-rotation),
make changes and send pull requests.
 You can even contribute by adding banner images
and logos for the plugin. If you are familiar with GitHub, then fork the above repo
and add the images in a folder named assets, and send pull request; else you can
submit URLs to the images as support request.

## 评价

![](https://secure.gravatar.com/avatar/764eb4b15fed33934a6208268c2a456fd587633cf5e7030c545e29fa62d614b8?
s=60&d=retro&r=g)

### 󠀁[Doesn’t work](https://wordpress.org/support/topic/doesnt-work-3059/)󠁿

 [deralict](https://profiles.wordpress.org/deralict/) 2023 年 12 月 8 日

Doesn’t work with WP 6.4.2

![](https://secure.gravatar.com/avatar/7c0f905ec3bcb9b7eb6506aa5a89eb9896b2c14793904903379406748760b995?
s=60&d=retro&r=g)

### 󠀁[Works perfect](https://wordpress.org/support/topic/works-perfect-893/)󠁿

 [Guy1992](https://profiles.wordpress.org/guy1992/) 2021 年 3 月 18 日

Our website is a multi user platform. Some users was complaining there images was
uploading upside down. Thats with the latest version of wordpress installed. This
plugin fixed that problem. Thank you

![](https://secure.gravatar.com/avatar/19f7827f053dd9581d05478ac0a9d0aa3f30c0e3748346351dad8fe2a6d0bb4a?
s=60&d=retro&r=g)

### 󠀁[Works As Advertised – A Huge Timesaver](https://wordpress.org/support/topic/works-as-advertised-a-huge-timesaver-2/)󠁿

 [partyparty](https://profiles.wordpress.org/partyparty/) 2020 年 1 月 15 日

This is a great time-saving plugin. Sincere thanks to the author for handling a 
nagging issue inherent in Wordpress. Very nice.

![](https://secure.gravatar.com/avatar/392d54e224c6f4bbe5b5296e52027d888109d6c764b622e76bca6be142a19b2e?
s=60&d=retro&r=g)

### 󠀁[Worked Fabulously Well](https://wordpress.org/support/topic/worked-fabulously-well/)󠁿

 [grayson9](https://profiles.wordpress.org/grayson9/) 2020 年 1 月 13 日

Honestly for any free plugin to work 90% of the time out of the box is enough for
me. No, it’s not perfect but it’s free. I have seen paid plugins with more issues.
A big thanks to the developer for saving me a headache. 5 stars from me.

![](https://secure.gravatar.com/avatar/cc085190c17dde5cf6ead5c78983f8e106bdc0fdc04d93b7095cc94427ca8b2d?
s=60&d=retro&r=g)

### 󠀁[doesn’t work](https://wordpress.org/support/topic/doesnt-work-2276/)󠁿

 [john_6x6](https://profiles.wordpress.org/john_6x6/) 2019 年 10 月 28 日

Installed, never worked even on the first try.

![](https://secure.gravatar.com/avatar/103e833d4742dd0bca8a36cd7f5e0ebe78bb42c28d670fd05750426bfe4deb9a?
s=60&d=retro&r=g)

### 󠀁[Worked instantly!](https://wordpress.org/support/topic/worked-instantly-7/)󠁿

 [levseltzer](https://profiles.wordpress.org/levseltzer/) 2019 年 10 月 22 日

I was in the midst of uploading 30 pictures when I remembered how WordPress doesn’t
rotate the pictures for me. I found this plugin, activated it in a different browser
window, and it instantly began to work on the pictures that were uploading. Fantastic!

 [ 阅读所有27条评价 ](https://wordpress.org/support/plugin/fix-image-rotation/reviews/)

## 贡献者及开发者

「Fix Image Rotation」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Gagan Deep Singh ](https://profiles.wordpress.org/gagan0123/)
 *   [ Shashwat Mittal ](https://profiles.wordpress.org/shashwatmittal/)
 *   [ Mark Jaquith ](https://profiles.wordpress.org/markjaquith/)
 *   [ bgrande ](https://profiles.wordpress.org/bgrande/)

[帮助将「Fix Image Rotation」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/fix-image-rotation)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/fix-image-rotation/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/fix-image-rotation/)，或通过[RSS](https://plugins.trac.wordpress.org/log/fix-image-rotation/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/fix-image-rotation/)。

## 更新日志

#### 2.2.2

 * Testing with WordPress 5.6.
 * Updates to readme and let WordPress.org know that the plugin is tested with WordPress
   5.6

#### 2.2.1

 * Remove extra rows below plugin details.
 * Add admin notice if exif extension not loaded or exif_read_data function does
   not exist or is disabled.

#### 2.2

 * Adds “PHP EXIF MODULE LOADED” and “EXIF_READ_DATA CALLABLE” below plugin details.
 * Prevent undefined function call to wp_read_image_metadata in rare cases.
 * Handle file endings with uppercase as well.
 * Some performance patches.
 * WordPress Coding Standards compatibility.

#### 2.1.1

 * Moved hooks registrations outside constructor.

#### 2.1

 * Updates correct orientation of fixed images in WordPress metadata of the image.

#### 2.0

 * Fix for PNG files being sent for orientation correction while PNG files don’t
   even have EXIF data.
 * Fix for Restoration of meta data when GD Library is being used.
 * Testing with WordPress 4.8.1 and fixing some related issues.

#### 1.0

 * Initial Release

## 额外信息

 *  版本 **2.2.2**
 *  最后更新：**4 月前**
 *  活跃安装数量 **4,000+**
 *  WordPress 版本 ** 3.7 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/fix-image-rotation/)
 * 标签
 * [image rotation](https://cn.wordpress.org/plugins/tags/image-rotation/)[iphone](https://cn.wordpress.org/plugins/tags/iphone/)
 *  [高级视图](https://cn.wordpress.org/plugins/fix-image-rotation/advanced/)

## 评级

 4.4 星（最高 5 星）。

 *  [  23 条 5 星评价     ](https://wordpress.org/support/plugin/fix-image-rotation/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/fix-image-rotation/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/fix-image-rotation/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/fix-image-rotation/reviews/?filter=2)
 *  [  3 条 1 星评价     ](https://wordpress.org/support/plugin/fix-image-rotation/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/fix-image-rotation/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/fix-image-rotation/reviews/)

## 贡献者

 *   [ Gagan Deep Singh ](https://profiles.wordpress.org/gagan0123/)
 *   [ Shashwat Mittal ](https://profiles.wordpress.org/shashwatmittal/)
 *   [ Mark Jaquith ](https://profiles.wordpress.org/markjaquith/)
 *   [ bgrande ](https://profiles.wordpress.org/bgrande/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/fix-image-rotation/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://PayPal.me/gagan0123)