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
autorotate - issue 1162 #1252
autorotate - issue 1162 #1252
Conversation
Are you able to come up with a simple test for this? If it seems very tricky (might be), then no problem |
Hey, Is this what we need? :) |
it looks like the test should be here: |
The way to go would be to create a small test image (maybe a 3x3 image) with some given EXIF rotation info, and then creating a new test to make sure the image was rotated correctly, etc. I'm just not sure how annoying it is to create such a test image! |
hmmm, that's not clear from the issue :) |
If I understand correctly; it's that a lot of software stores the image's orientation instead of actual 'moving' the pixels. So when you for example upload a portrait oriented photo from an iPhone it probably assumes the viewer (browser) will rotate it, but we strip that data away. So we need to rotate it ourselves to truly move the pixels in order for it to display correctly in the browser after exif stripping. So you'd need to make a test image that "displays" correctly in full viewers, but whose data was not 'moved' and just has a roatiton exif tag; and then making sure that image shows up correctly after we save it. Does that make sense? |
Oh!, ya, now it's clear. thnks for the explanation. |
@Hassan-Mallah: I know you're busy for now, so I'll merge this so that the bug fix can be deployed. You can write a new PR with a test, or just leave it; it's not so important. |
Backend checklist
isort . && black .
inapp/backend
develop
if necessary for linear migration historyFrontend checklist
yarn format && yarn lint --fix
yarn lint