thenickdude / webm-writer-js

JavaScript-based WebM video encoder for Google Chrome
272 stars 43 forks source link

support for alpha transparency #14

Closed ohs2033 closed 4 years ago

ohs2033 commented 4 years ago

Thanks for great library.

It seems that exporting video with alpha-transparency is not supported yet.

have any plan for supporting alpha transparency?

thanks.

thenickdude commented 4 years ago

Hi there,

I've added support for this now, but unfortunately due to the way that Chrome's WebP encoder works, the opacity of the resulting video get scaled down into the range 22-240, so the video can be neither fully-transparent nor fully-opaque :(. Apart from that it works nicely, check out the example in test/transparent/