We’ve had a lingering issue with the orientation of photos uploaded to Snap.as that I’ve finally fixed today. When I looked at it a while back, I couldn’t figure out what was causing it. After another go at it today, it turns out the issue was with the Dropzone.js library we’re using to resize images on the client side.
After playing around with Dropzone, and adding a Javascript library to decode EXIF data and fix the image orientation before resizing on the client side, I’ve landed on a server-side fix. Now, we’ll just upload the full-size image, and fix the orientation and resize the image on the backend. This will mean more bandwidth use and processing work on the server, but it permanently fixes the orientation issue as well as another issue with optimized images.
Thoughts? Discuss...