hausformat / exif_orientation_helper

Magic fix button for EXIF-rotated images in TYPO3
https://typo3.org/extensions/repository/view/exif_orientation_helper
MIT License
3 stars 2 forks source link

exif_orientation_helper

This TYPO3 extension adds a button to files in the backend that will apply the orientation found in the EXIF metadata of a JPEG image.

Screenshots

Inline

Imgur

File List

Imgur

API

The class ExifOrientationService exposes a single method applyOrientation for applying the EXIF orientation to a \TYPO3\CMS\Core\Resource\File. Note that the file on disk will be replaced.

Usage

/** @var \TYPO3\CMS\Core\Resource\File $file **/

$service = GeneralUtility::makeInstance(ExifOrientationService::class);

$service->applyOrientation($file);