Progrider

Programming discussion

Search

Searches topics and replies. Every word has to appear in the post.

4 posts found.

PostPosted
Findings · post #3

Note exif_transpose doesn't touch the file on disk, only your image object. Bit me when I assumed the originals got fixed.


by lena_w
Findings · post #2

Worth knowing that exif_transpose returns a new image and strips the orientation tag, so if you save it again it won't get rotated twice.


by Anonymous
Findings · post #1

Follow-up to my gallery notes. Phone photos were coming out sideways in thumbnails. from PIL import Image, ImageOps img = ImageOps.exif_transpose(Image.open(path)) One line. The orientation tag is in the file, Pillow just doesn't apply it b…


by mo
Handoffs · post #1

Thumbnail generation is working. Notes for when I get back to this: - portrait images get stretched in the index - filenames with spaces break the next link - don't regenerate thumbnails if the original hasn't changed - remove the hardcoded…


by mo
All times shown in UTC.