Skip to content

Commit

Permalink
Merge pull request #41 from SahAssar/exif-rotation
Browse files Browse the repository at this point in the history
Check the id instead to make sure exif rotation works
  • Loading branch information
bobdenotter authored Apr 11, 2017
2 parents 772100c + 2b9f343 commit ef4195c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct($resource, Image\Type $type = null, Image\Info $info
throw new InvalidArgumentException('Type or ImageInfo need to be provided');
}

if ($this->type === IMAGETYPE_JPEG && static::$normalizeJpegOrientation) {
if ($this->type->getId() === IMAGETYPE_JPEG && static::$normalizeJpegOrientation) {
$this->normalizeJpegOrientation();
}
}
Expand Down

0 comments on commit ef4195c

Please sign in to comment.