HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Image uploads not properly using EXIF rotation.
sashae
New
I'm on Vanilla 3.1, and have enabled image uploads for my forum. Uploaded images from mobile devices do not appear to be respecting EXIF rotation information, as handled in class.uploadimage.php.
Example: N9G4FW5LZK4W.jpeg when loaded in-line in the forum shows rotated as 90deg left. Loaded standalone in-browser it is properly shown in portrait orientation. EXIF data shows rotation information as part of the image.
Apple phone images loaded in iOS Safari rotate correctly, but are shown incorrectly in other browsers.
Any thoughts?
0
Comments
Yeah, this was reported on our own cloud sites, and we've implemented a fix already. It will go out in Vanilla 3.2
It was fixed in advanced editor back in 2015, but it seems we didn't think of it properly when creating the
/api/v2/media
endpoint, which is used by Rich Editor.The fix for rich editor /APIv2 was merged about a week ago.
Fab, thank you.