2

It seems that heic images are increasingly popular way to store images (the default image format since ios 11, but browsers do not support them. Site visitors may attempt to upload an heic image from their phone to an image field, but the default file extension validation prevents that. If a site admin allows heic file extension for the field then the file can get uploaded, but is not displayed as an image because browsers don't support heic.

Drupal 7 has the Auto Upload Convert module which is not super popular, but attempts to solve this problem.

For Drupal 9+ I can't find a module or answer about how to solve the problem.

9
  • Maybe this comment can help: drupal.org/project/imagemagick/issues/3153624#comment-13722267
    – Jaypan
    Dec 20, 2022 at 16:13
  • You convert the image on display not on upload. There should be a 'Convert' Image Style effect in core. If not, get it from contrib.
    – leymannx
    Dec 20, 2022 at 18:54
  • First time I hear of "heic". It seems that heic images are increasingly popular way to store images. Yeah, no browser supports heic... so I have my doubts about your "increasingly popular" statement. I use webp, you should consider it if you haven't already.
    – No Sssweat
    Dec 21, 2022 at 1:54
  • 1
    @apaderno – Yeah, that's why I suggested convert on display via image style effect. (Not convert on upload. Store the original image, but display an image that's actually supported by browsers. Like WebP or what.)
    – leymannx
    Dec 21, 2022 at 17:22
  • 1
    @leymannx Converting the image when it's displayed is the way to go. (I apologize: I didn't read your first comment and I didn't understand your reply to the browsers don't support the image type argument.)
    – apaderno
    Dec 21, 2022 at 20:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.