Kagami / go-avif

:art: Go AVIF library
Creative Commons Zero v1.0 Universal
314 stars 22 forks source link

PNG conversion does not preserve transparency #10

Open cachila opened 3 years ago

cachila commented 3 years ago

I have tested the encoder with a few png images with transparency but in every case the resulting image lacks of transparency. Is there anything I'm missing?

Here are the images: mario artist

G2G2G2G commented 3 years ago

Yea it literally says it isn't supported right now https://github.com/Kagami/go-avif/blob/master/avif.go#L104

Also the issue is already mentioned here: https://github.com/Kagami/go-avif/issues/4

gauntface commented 2 years ago

Do you know what would be need to support alpha?

Is it a feature missing in this library or an issue with libaom-dev or a combination?

gauntface commented 2 years ago

Did a little digging and it seems like libaom doesn't support alpha: https://bugs.chromium.org/p/aomedia/issues/detail?id=2199&sort=-modified&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Modified&q=alpha&can=1

cmarabate commented 2 years ago

Any idea when will this be completed?

It it useless to me until this is fixed. But once it is fixed it will be incredible!

roffe commented 2 years ago

Got trapped in the transparency hole as well when implementing av1 in a image service I am writing

doggy8088 commented 1 year ago

Any progress?