go-avif icon indicating copy to clipboard operation
go-avif copied to clipboard

PNG conversion does not preserve transparency

Open cachila opened this issue 3 years ago • 6 comments

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

cachila avatar Sep 24 '20 15:09 cachila

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

G2G2G2G avatar Feb 25 '21 04:02 G2G2G2G

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 avatar Nov 16 '21 04:11 gauntface

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

gauntface avatar Nov 18 '21 04:11 gauntface

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!

cmarabate avatar Apr 21 '22 17:04 cmarabate

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

roffe avatar May 18 '22 15:05 roffe

Any progress?

doggy8088 avatar Jan 18 '23 16:01 doggy8088