Skip to content

Enhancement: make compression property for heif output mandatory #3740

@markg85

Description

@markg85

Feature request

What are you trying to achieve?

Creating an HEIF thumbnail. It's surprisingly difficult!

When you searched for similar feature requests, what did you find that might be related?

There's a couple related issues like libvips (i have it), x265 (i have it) and aom ( i have it too). Still creating HEIF (or strictly HEIC) images isn't working at all.

What would you expect the API to look like?

...heif({ compression: 'hevc' }).toFile(...)
Should produce an image.
Without the compression flag, it creates an AVIF image (which is super confusing!).
With the compression flag it creates an empty file.

What alternatives have you considered?

So, i'm using these images in a mobile app.
I actually want JXL, but that support is very limited thanx to google blocking it.. so that's out of the question.
AVIF is fine too, but that support too is quite limited on mobile still.
Then HEIF is next. And that doesn't work in this library. So.. yay...

Please provide sample image(s) that help explain this feature

N/A, above should be clear.

With regard to HEIF support, could that please be hardened.
The mere fact that HEIF - by default, if you don't provide the compression flag - generates an AVIF image is extremely confusion. I'm sure there's a very good reason for doing this, but i don't see it. To me it seems like that feature shouldn't exist. Or spam the user with warnings that setup is chosen that will be confusion.

But other then that, clearly something isn't working yet there isn't a single error anywhere. It might nice to have a look at that and be a little error happy. :)

I'm using ArchLinux here and have no problem with HEIC images, that all works just fine.
Any clue on how to get this working?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions