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
HEIF/HEIC support #1105
Comments
Hello, please see https://github.com/jcupitt/libvips/issues/671 |
Hi @lovell, I've just noticed GitHub issues are no longer accessible under PS Thanks for your amazing work on Sharp! |
@chris-kobrzak |
@lovell They already made a new issue addressing only some issues with autorotate. Seems like libvips is now compatible with HEIC. libvips/libvips#1247 |
The forthcoming libvips v8.8.0 will add support for libheif. There will probably be a few changes required in sharp to expose the ability to read and write this format. More importantly, the precompiled binaries provided by sharp will not include libheif so you'll need to compile libvips from source and install it globally. (When the patent-free AVIF format is added to libheif then this might change.) |
It seems like libvips v8.8.0 is out. We're wondering if you're planning support for HEIF in the near future? By the way, we love and appreciate Sharp. Thank you! |
any progress on this? |
Requires a custom, globally-installed libvips compiled with libheif
Commit b737d46 adds (highly) experimental support for reading and writing HEIF images. It will require use with a custom, globally-installed libvips that has itself been compiled with support for libheif. The prebuilt binaries provided by sharp will not include libheif (and will never include HEVC-related logic whilst it is patent-encumbered). |
maybe it's worth to make a guide or at least provide some links |
sharp v0.23.0 is now available. This will require use of sharp with a custom installation of libvips compiled with support for libheif etc. The prebuilt binaries will not include any support for HEIC. https://libvips.github.io/libvips/install.html#building-libvips-from-a-source-tarball |
@lovell Do you have a feel for how lack of heic support is affecting the web dev world? I find it really surprising / confusing / unsurprising that Apple has basically thrown a wrench into every website's image upload portal and there doesn't seem to be a great, robust solution. Have you noticed any common workarounds like simply notifying the user that they need to convert the heic image to a still before uploading? I can't believe that Apple also is ignoring the allowed image type in the browser file inputs and forcing heic into input fields that were only supposed to include jpeg. Are devs up in arms at apple over this? Thanks for your work on this! |
@ajhool Apple are a founding member of AOM so are well-placed to switch from HEIC to the royalty-free AVIF and prevent their customers from experiencing the problems you describe. |
I installed libvips on macOS with Thank you! EDIT: Posted to SO https://stackoverflow.com/questions/61903049/how-can-i-use-a-globally-installed-libvips-with-sharp-on-macos. |
@dminkovsky The output of |
I don't know if this is technically possible at this moment, it would be nice if
sharp
would one day support HEIF format which is now a default image format on latest iPhones.References:
The text was updated successfully, but these errors were encountered: