Server-side EXIF GPS extraction on upload/photo and OCR endpoints #25
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes
Added PIL-based EXIF GPS extraction to server.py:
_extract_gps_from_bytes()helper reads GPSInfo IFD via PILget_ifd()/api/upload/photo: reads raw bytes first, extracts GPS before saving, returns{path, exif_gps}/api/ocr: extracts GPS from raw bytes before OCR processing, returns{machine_id, exif_gps, ...}exif_gpskey entirely_save_upload_bytes()helper added for pre-read byte buffersCommit:
7cf566a