Closed dc-vin closed 1 year ago
It's my fault, I did resize, and I should execute ImageOps.exif_transpose() img = Image.open(img_path) img = ImageOps.exif_transpose(img) img = img.resize(size=(int(img.width / resize_ratio), int(img.height / resize_ratio))) img.save(save_path, quality=100, optimize=True)
When executing the following code, the image will be rotated 90 degrees
CR2
Thumbnail
![image](https://user-images.githubusercontent.com/29142176/206962250-3495221a-33bf-4f91-8dc1-cb6c70c18069.png)
Changing to the following code will get the correct result