Gregwar / Image

A PHP library to handle images
MIT License
1k stars 191 forks source link

Extract applyExifOrientation out of fixOrientation #161

Closed gormur closed 5 years ago

gormur commented 5 years ago

Taking out the bit that actually applies the rotation and putting it in a separate method enables the user to run applyExifOrientation by itself to override the exif tag.

gormur commented 5 years ago

When I think about it, the exif extraction should also be extracted to a separate function too. fixOrientation could then just be a one-liner:

$this->applyExifOrientation ($this->exifOrientationValue());

Gregwar commented 5 years ago

Thanks for contributing