/exif_orientation_helper

Magic fix button for EXIF-rotated images in TYPO3

Primary LanguagePHPMIT LicenseMIT

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);