-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto orientation problem #47
Labels
Comments
Hmm, that is NOT good. Thank you very much for finding this—that makes total sense. Let me think about how best to solve this...your temp file solution may be the only good option we have, but let me do some digging first. |
Update? |
+1 for some fix for this |
This has been fixed (57a10a4) and tagged in 0.3.5. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not strictly a bug with Glide, but more a limitation of Intervention that affects Glide functionality. As mentioned in this issue Intervention can only read EXIF data if the image object is initialised with a file path (since it uses
exif_read_data
). Since Glide always passes in the file contents (at it is loading the image via Flysystem) this means that auto-orientation will never work as there will be no EXIF information for Intervention to use. Explicit orientation (i.e. rotate 90deg) is unaffected.A quick and dirty fix that we have employed is to update the
makeImage()
method inLeague\Glide\Server\Server.php
to write the source file to a temporary file in the systemtmp/
folder and then pass that path to the API run method (with appropriate garbage collection to clear out the temporary file once it has been used):Happy to make a PR with this suggested change - even happier to see a more elegant solution!
The text was updated successfully, but these errors were encountered: