Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HEIC image attachments uploaded via iPhone improperly get a .jpg extension #184

Open
mikewilburn opened this issue Apr 9, 2019 · 0 comments
Labels
Type - Bug Something isn't working

Comments

@mikewilburn
Copy link
Contributor

Background

iPhones have a setting which permit camera photos from being saved either in high efficiency format (HEIC) or as a JPEG.

image
(Note: HEIC is the file format name Apple has chosen for the HEIF standard)

If an HEIC image is chosen to be uploaded as an attachment, the app is falsely assigning it a .jpg extension.

Implications

This permits the otherwise unsupported attachment file type to be uploaded under the guise of a JPEG image, which can cause issues when these attachments are opened either on Windows or in a web browser. Windows, Chrome, and Safari have all proved unable to render this image type.

Repro steps

  • take a picture with the camera format setting set to HEIC (this setting first emerged on iOS 11, I believe)
  • open the data collection app and attach this image to a record in the web map
  • save the edits and notice the image has been assigned a .jpg extension
  • open the web map in a browser and visit the same record to which this image was attached
  • identify the record and attempt to open the image by clicking on it in the list of attachments in the popup that appears
  • notice that the image cannot be rendered in the new tab that launches
    • Safari: image
    • Chrome: image

Note: Using a compatible Windows application that can access these attachments, this is the message that appears when trying to render image attachments:
image

@mikewilburn mikewilburn added the Type - Bug Something isn't working label Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type - Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant