PHPackages                             rtablada/exif - 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. rtablada/exif

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

rtablada/exif
=============

A package for dealing with exif image orientation

02331[2 PRs](https://github.com/rtablada/exif-rotator/pulls)PHP

Since Jul 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/rtablada/exif-rotator)[ Packagist](https://packagist.org/packages/rtablada/exif)[ RSS](/packages/rtablada-exif/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

EXIF Based Auto Rotation
------------------------

[](#exif-based-auto-rotation)

This is a simple class that allows you to auto-rotate your images based on EXIF data imbedded in JPG and TIFF images.

Installing
----------

[](#installing)

Add `"rtablada/exif": "dev-master"` to your `composer.json` file.

Use
---

[](#use)

Using this rotator takes a file path, SPLFileInfo instance, or Symfony\\Request\\UploadedFile along with an instance of Imagine (here we use GD). Then call `rotate` and you will be returned an auto-rotated image based on the EXIF data if any is present.

```
$imagine = new \Imagine\GD\Imagine;
$rotator = new \Rtablada\Exif\ExifRotator($pathToFile, $imagine);

$output = $resizer->rotate();
$output->save($outputPath);
```

Use with Stapler
----------------

[](#use-with-stapler)

This was originally built for use within a Laravel project using [Stapler](https://github.com/CodeSleeve/stapler). Using this rotator with Stapler is quite simple when defining your styles:

```
$this->hasAttachedFile('avatar', [
	'styles' => [
		'medium' => '300x300',
		'thumb' => function($file, $imagine) {
			$resizer = \Rtablada\Images\ResizeAndPad($file, $imagine);
			return $resizer->rotate();
		}
	]
]);
```

Shorthand
---------

[](#shorthand)

If you would like to quickly rotate an image you can use `makeAndRotate` which skips the step of having to instantiate the rotator:

```
\Rtablada\Images\ResizeAndPad::makeAndRotate($file, $imagine)->save($output);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea9ccd400c74151601341e320935a31d1a9779c5eb49a8f364bc7a0ac75baa32?d=identicon)[rtablada](/maintainers/rtablada)

---

Top Contributors

[![rtablada](https://avatars.githubusercontent.com/u/2532004?v=4)](https://github.com/rtablada "rtablada (11 commits)")

### Embed Badge

![Health badge](/badges/rtablada-exif/health.svg)

```
[![Health](https://phpackages.com/badges/rtablada-exif/health.svg)](https://phpackages.com/packages/rtablada-exif)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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