PHPackages                             rdavaillaud/image-orientation-fixer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. rdavaillaud/image-orientation-fixer

ActiveLibrary[Image &amp; Media](/categories/media)

rdavaillaud/image-orientation-fixer
===================================

Php class that Fix image orientation by exif data.

1.0.0(8y ago)014.1k1MITPHPPHP &gt;=5.4.0

Since Mar 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/rdavaillaud/ImageOrientationFixer)[ Packagist](https://packagist.org/packages/rdavaillaud/image-orientation-fixer)[ Docs](http://github.com/rdavaillaud/ImageOrientationFixer)[ RSS](/packages/rdavaillaud-image-orientation-fixer/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

ImageOrientationFixer
=====================

[](#imageorientationfixer)

This repository contains a php class that fix images orientation by exif data with the method [exif\_read\_data](http://it2.php.net/manual/en/function.exif-read-data.php)

[![Latest Stable Version](https://camo.githubusercontent.com/cb211305096ab467d2b3ab8427ae59a804ed6546c4157406741ad4528bbfbc90/68747470733a2f2f706f7365722e707567782e6f72672f7264617661696c6c6175642f696d6167652d6f7269656e746174696f6e2d66697865722f762f737461626c652e706e67)](https://packagist.org/packages/rdavaillaud/image-orientation-fixer) [![Total Downloads](https://camo.githubusercontent.com/33135a02ce5055815a37a262ea58d81bf7d1abef8c181971ee08c60f0c1fada7/68747470733a2f2f706f7365722e707567782e6f72672f7264617661696c6c6175642f696d6167652d6f7269656e746174696f6e2d66697865722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/rdavaillaud/image-orientation-fixer) [![Latest Unstable Version](https://camo.githubusercontent.com/1bd0f5ee22af82f75b73f99c4b369abe40138918c5dff263da4f40736fd8e29c/68747470733a2f2f706f7365722e707567782e6f72672f7264617661696c6c6175642f696d6167652d6f7269656e746174696f6e2d66697865722f762f756e737461626c652e706e67)](https://packagist.org/packages/rdavaillaud/image-orientation-fixer) [![License](https://camo.githubusercontent.com/102107a5a6edf40ef17f0f15322fc8352a0245d025254ea1b8d1b9db3d6a32c3/68747470733a2f2f706f7365722e707567782e6f72672f7264617661696c6c6175642f696d6167652d6f7269656e746174696f6e2d66697865722f6c6963656e73652e706e67)](https://packagist.org/packages/rdavaillaud/image-orientation-fixer) [![Build Status](https://camo.githubusercontent.com/87611c5a7170d14d7e5b3401bac94b83e948b307d2bb9bd8193e352e6ae87f73/68747470733a2f2f7472617669732d63692e6f72672f7264617661696c6c6175642f496d6167654f7269656e746174696f6e46697865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rdavaillaud/ImageOrientationFixer)

How to use
----------

[](#how-to-use)

```
$iof = new ImageOrientationFixer();
$iof->fix('foo.jpg');
```

or to create a new file from the image.

```
$iof = new ImageOrientationFixer();
$iof->fix('foo.jpg', 'destination.jpg');
```

Credits
-------

[](#credits)

Thanks to [jellybellydev](https://github.com/jellybellydev) for the [initial library](https://github.com/jellybellydev/ImageOrientationFix)Thanks to [recurser](https://github.com/recurser) for the [image example](https://github.com/recurser/exif-orientation-examples)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3022d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/548656?v=4)[Raphaël Davaillaud](/maintainers/rdavaillaud)[@rdavaillaud](https://github.com/rdavaillaud)

---

Tags

imageexiforientation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rdavaillaud-image-orientation-fixer/health.svg)

```
[![Health](https://phpackages.com/badges/rdavaillaud-image-orientation-fixer/health.svg)](https://phpackages.com/packages/rdavaillaud-image-orientation-fixer)
```

###  Alternatives

[intervention/image

PHP Image Processing

14.3k203.8M2.5k](/packages/intervention-image)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k52.6M138](/packages/league-glide)[liip/imagine-bundle

This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.

1.7k39.4M239](/packages/liip-imagine-bundle)[spatie/image

Manipulate images with an expressive API

1.4k58.5M176](/packages/spatie-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M160](/packages/intervention-image-laravel)[fileeye/pel

PHP Exif Library. A library for reading and writing Exif headers in JPEG and TIFF images using PHP.

207.7M2](/packages/fileeye-pel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
