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

Compiled JS potentially mishandeling alpha channel #875

Closed
stevenheffner opened this issue May 26, 2023 · 0 comments
Closed

Compiled JS potentially mishandeling alpha channel #875

stevenheffner opened this issue May 26, 2023 · 0 comments

Comments

@stevenheffner
Copy link

stevenheffner commented May 26, 2023

Given this heic file 👇

https://static.elias.ink/resource/Elasticsearch-Logo-Color-V.heic

Convert it in this app (png) 👇

https://catdad-experiments.github.io/heic-app/

And you will see the alpha channel disappear 🪄 and be replaced with black

I also see the same thing when I use this CLI

https://github.com/catdad-experiments/heic-cli

And this code sandbox 👇

https://codesandbox.io/s/heic-conversion-forked-4sm6mr

All these examples use the compiled JS. I cannot confirm the libheif version they are using but I can confirm I'm seeing the same thing locally using

https://github.com/catdad-experiments/libheif-js

And it's using v1.15.1

I have confirmed that installing and using this library directly has no issues converting the image to a PNG with the proper alpha channel

Any idea whats going on here?

@catdad @farindk

@stevenheffner stevenheffner changed the title Compiled JS potentially mishandeling handling of alpha channel Compiled JS potentially mishandeling of alpha channel May 26, 2023
@stevenheffner stevenheffner changed the title Compiled JS potentially mishandeling of alpha channel Compiled JS potentially mishandeling alpha channel May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant