facebookincubator/spectrum

is heif format supported?

Opened this issue · 1 comments

on iOS 11,the picture is heir format. is spectrum support heif?

Hi @chenzhibo,

Currently, Spectrum does not have an own plugin for reading or writing HEIF/HEIC images. This also applies on Android where recent versions added HEIF support. The current list of supported file formats is in our documentation: https://libspectrum.io/docs/supported_image_formats

In these cases it's still possible to decode those files on your own and then pass the decoded files to Spectrum to make use of MozJpeg for upload.

We think that having a plugin that fallbacks on the system decoder (e.g. for HEIF and other formats) would be a great idea. However, we currently don't have the bandwidth for implementing this. Nevertheless, I'd always be happy to support pull-requests for this.