hivesolutions / appier

Joyful Python Web App development
http://appier.hive.pt
Apache License 2.0
127 stars 22 forks source link

feat: apply orientation exif info on image after resize #49

Closed BeeMargarida closed 3 years ago

BeeMargarida commented 3 years ago
- -
Issue https://github.com/ripe-tech/ripe-id-mobile/issues/2#issuecomment-884831078
When providing an image with EXIF Orientation info, it was being ignored in the final image (after resize).
Decisions - Use PIL.ImageOps method exif_transpose that returns an image transposed according to its EXIF orientation tag.
Screenshots Original Image:
IMG_20210722_111143
Before:
image
After:
image
BeeMargarida commented 3 years ago

@joamag @gcandal A bug found, necessary to close the "Edit Profile" feature.

gcandal commented 3 years ago

Seems to make sense.

joamag commented 3 years ago

Closing this as not relevant. We'll accept the error for the situations where the image is "rotated" via EXIF rotate property.