Skip to content
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

Adding HEIC support #140

Closed
daneren2005 opened this issue Feb 20, 2019 · 6 comments
Closed

Adding HEIC support #140

daneren2005 opened this issue Feb 20, 2019 · 6 comments

Comments

@daneren2005
Copy link

We have users that are wanting to be able to use .HEIC files. Most edge case image formats we are able to just tell users no, but since Apple has thrown their weight being heic files it is becoming more difficult. iOS 11 saves everything in this format I believe.

It looks like libvips just added support very recently: libvips/libvips#671. It is now in the latest version 8.8.0: https://github.com/libvips/libvips/blob/1a836052385c220ad32f9ce0c9a3363f1f919ad6/ChangeLog#L26. Are you able to add HEIC files to the list of supported source files?

@DarthSim
Copy link
Member

I have successfully implemented HEIF config decoder (need one for a format detection and dimensions checking). As soon as libvips 8.8.0 is released imgproxy will get HEIC support.

@daneren2005
Copy link
Author

Ack I didn't realize 8.8 wasn't already out. Well thank you I look forward to that being added!

@DarthSim
Copy link
Member

HI,

v2.3 includes HEIC support. Note that imgproxy converts HEIC to JPEG by default since web browsers do not support it yet. You can save images to HEIC by explicitly specifying heic format.

@daneren2005
Copy link
Author

Sweet that sounds like what I wanted anyways. Thank you for all you do with this project it is awesome!

@bcojan
Copy link

bcojan commented Aug 9, 2023

Hello @DarthSim, I'm trying to use imgproxy to resize&save images in HEIC for my iOS app

I'm using the following URL (with format:heic), but the service is logging this error Resulting image format is not supported: heic

https://example.domain/insecure/resize:fill:100:100/format:heic/g:sm/plain/gs://infltr-dev.appspot.com/testresize/landscape.jpg

did you manage to save images in heic format?

@DarthSim
Copy link
Member

DarthSim commented Aug 9, 2023

Hey @bcojan!

We dropped HEIC support as a resulting format as x265 is licensed under GPL-3. However, there is a BSD-3 licensed Kvazaar encoder, and they are working on adding its support to libheif, so imgproxy may get back full HEIC support in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants