Hi,

So i require the new apple file format to be supported. I installed Image Magic on my server and every is working. I even installed Image Magic with heic support. Now when i click image formats, there's another option on the bottom that says FORMAT LIST. When i click that, this is what is says.

Supported image formats returned by executing 'convert -list format'. Note: these are the formats supported by the installed ImageMagick executable, not by the toolkit.

heic is one of the formats in that list.

My question is, is there a way to enable this or is it a limitation of the module? I attached an image of what i'm talking about

CommentFileSizeAuthor
heic.png183.56 KBtaonac
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

taonac created an issue. See original summary.

taonac’s picture

OK i found the problem. The problem is there is no browser out there including Safari that supports apple's .heic file. No browser recognises it as an image. So even though the server or drupal might have codecs to recognise .heic, if the browsers don't know it's an image, then they won't select it through the image uploader.

So nothing is wrong with the module. So i guess this can be closed now

mondrake’s picture

Yes, browsers do not support that - not even Apple's Safari. https://caniuse.com/#feat=heif

Still, if the ImageMagick binaries can process .heic files, maybe you can upload them in a Image field and use the 'Convert' image effect in an image style to convert to web-ready image format like png or jpeg:

1) go to Configuration->System->MIME Types->File extensions
2) look for the heic file extension, you see it's associated to the image/heif MIME type
3) go to Configuration->Media->Image Toolkit->Image Formats
4) add the following to the Enable/disable image formats textarea

HEIC:
  mime_type: image/heif

5) ad an image style with an effect to converto to, say, PNG
6) adjust your Image field to allow heic heif extensions
7) adjust you field displays to use your image style

... should work.

mondrake’s picture

Related issues: +#3206264: Release 8.x-3.2

In #3206264: Release 8.x-3.2, I am adding HEIC to the formats in config, albeit disabled.

mondrake’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.