Normalize image to JPEG before vision analysis (fixes HEIF/HEIC support) #46

Merged
ryan merged 1 commits from imessage-image-upload into main 2026-09-12 14:13:08 -04:00
Owner

analyze_user_image now runs input bytes through Pillow before base64-
encoding, converting HEIC/HEIF and any other non-JPEG format to JPEG.
pillow_heif is already registered at module load so HEIC opens cleanly.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

analyze_user_image now runs input bytes through Pillow before base64- encoding, converting HEIC/HEIF and any other non-JPEG format to JPEG. pillow_heif is already registered at module load so HEIC opens cleanly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ryan added 1 commit 2026-09-12 14:13:04 -04:00
analyze_user_image now runs input bytes through Pillow before base64-
encoding, converting HEIC/HEIF and any other non-JPEG format to JPEG.
pillow_heif is already registered at module load so HEIC opens cleanly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ryan merged commit a172a71a70 into main 2026-09-12 14:13:08 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ryan/simbarag#46