-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
EXIF Orientation value #336
Comments
|
Well done ! I get the image from MongoDb in a GridFS, so I initiate file with a binary string and not a file indeed ! Perhaps we could load data from the image binary and then call PHP as I have done :
Do you know how I can retrieve image binary data from the $image object ? I will make a pull request if you want. It will be cleaner to get exif data from an image regardless of the way it has been loaded. |
The image is stored as a GD resource or an Imagick object, depending on your driver. There is no binary data, unless you call |
Ok so there is not better solution because encode on GD will remove EXIF data. You should perhaps tell in the documentation that the exif method is only available when loading an image from a file path and throws an exception if provided file path does not exist. Thank you for your time. |
I would like to note, that a fix should be available in PHP 7.2 They are plannign to fix that exif functions can work with streams too. |
Hi !
I have read all closed issues about EXIF and Orientation.
$image->orientate()
does not work for me and when I launch a$image->exif()
, nothing is returned.EXIF is enabled on my PHP installation. But when looking on exif data on my file with the original PHP function, I can read orientation :
If I display all informations about my file, I can see these EXIF data :
The image has been taken with my iPhone 6 with latest version of iOS.
The text was updated successfully, but these errors were encountered: