You can only change the oritentation of a JPEG

TIFFs also have EXIF headers, but they're not supported by the Image class

PHP doc
http://php.net/manual/en/function.exif-read-data.php
Merge pull request #12398 from oparoz/patch-5

You can only change the oritentation of a JPEG