728x90
์์ธ ๋ฐ ํด๊ฒฐ
EXIF์ ๋ฐฉํฅ ํ๊ทธ๊ฐ ์์ธ, ํด๊ฒฐ ๋ฐฉ์์ผ๋ก ImageOps.exif_transpose()๋ก EXIF ๋ฐฉํฅ ํ๊ทธ ์ ๊ฑฐ
from PIL import Image, ImageOps
im = Image.open("file.jpg")
im = ImageOps.exif_transpose(im)
https://stackoverflow.com/questions/4228530/pil-thumbnail-is-rotating-my-image
https://pillow.readthedocs.io/en/latest/reference/ImageOps.html#PIL.ImageOps.exif_transpose
https://yjs-program.tistory.com/272
https://github.com/python-pillow/Pillow/issues/4703#issuecomment-645219973
728x90