I'm not sure if there are other mutations we want to make to photos but we should have an API for them all. Seems to make sense to add this functionality to the /photo/:id/update.json and /photos/update.json APIs. We won't touch the original but the mutations are applied to the base version of the photo which all other versions are generated from.
We should add these parameters
Steps to verify
Please make sure to make any JPEG rotations lossless where possible.
If the exif rotation information is wrong (sometimes happens with weird angles), there's no reason a second rotation couldn't be lossless (unless the image is also cropped to an odd not-multiple-of-8 size, which is unlikely).
Adding transform API and lossless jpeg rotation. #484
Added lossless jpeg rotation and should implement lossy rotation if exiftran is not available on the system. Leaving open for that feature.
Adding proper API response to the transform API. #484
Storing rotation information in the photo record. #484
Adjusting width/height based of rotation value. #484
Adding passthrough parameters for transform API. #484