Skip to content

Commit

Permalink
Merge pull request #4945 from dlubitz/bugfix/strip-image
Browse files Browse the repository at this point in the history
BUGFIX: Strip image to prevent wrong orientation information in exif data
  • Loading branch information
bwaidelich authored Apr 10, 2024
2 parents 904813a + 48d1663 commit d4d7559
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Neos.Media/Classes/Domain/Service/ImageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ public function processImage(PersistentResource $originalResource, array $adjust
$imagineImage->usePalette(new RGB());
}

$imagineImage->strip();

if ($this->imagineService instanceof Imagine && $originalResource->getFileExtension() === 'gif' && $this->isAnimatedGif(file_get_contents($resourceUri)) === true) {
$imagineImage->layers()->coalesce();
$layers = $imagineImage->layers();
Expand Down

0 comments on commit d4d7559

Please sign in to comment.