Hello,
we have an issue with JPEG Attachments on Feature Services in Enterprise 11.2 not having a preview in Popups. It seems to be due to the REST API not being able to produce a smaller image preview when the "w" parameter is defined in the request (see https://developers.arcgis.com/rest/services-reference/enterprise/attachment-feature-service/). We have found this issue to be appearing with images from Samsung Phones, especially with Android 14. The REST API returns this error:
JFIF APP0 must be first marker after SOI
There are some old threads regarding this error message and they seem to hint towards the EXIF data of the images:
https://stackoverflow.com/questions/55150857/reading-jpeg-or-gif-metadata-with-javax-imageio
https://github.com/haraldk/TwelveMonkeys/issues/428
Interestingly, when we download an attachment where the preview doesn't work, save a copy of the image with the Windows default image viewer (and thereby modifying the EXIF data) and add the image as an attachment again, the preview works. We also don't have this problem with the original image added as an attachment to a feature layer in ArcGIS Online.
Has anyone had the same issue or can confirm it?
Thanks