purduehackers / passport-issuing-office

🛂 Design your passport & register for passport assembly ceremonies.
https://passports.purduehackers.com
4 stars 3 forks source link

Prevent .heic #21

Closed MatthewStanciu closed 9 months ago

MatthewStanciu commented 9 months ago

The file input doesn't accept .heic, but somehow iOS safari bypasses that and allows users to upload photos from their photo library, which is in .heic format, and it causes the image cropping/processing to silently fail.

We should convert .heic to .png, but in the meantime let's just prevent .heic uploads.

MatthewStanciu commented 9 months ago

The issue isn't .heic; iOS appears to convert the images to jpeg. The issue is actually #23.