Closed roberto-arista closed 4 years ago
I agree. Not immediately sure what the best fix would be.
yeah, mp4 with H.264 codec does not support transparency... probably an other codec will...
I don't think that's the point: if you draw something in DB, the preview always shows a white background, but mp4 export shows a black background. If you draw something black (as in Roberto's example) you see it in the DB preview, but is invisible in the mp4 export as everything is black.
jpg does not support alpha, and gets an "automatic" white background in DB. With our selected mp4 codec, which indeed doesn't support alpha, this background color is black.
I think we should do something like this:
saveImage()
option, say preserveAlpha=True
.🎉
👋
if I run this code in drawbot
there is a difference between the mp4 background (black) and the canvases backgrounds in the app (white). I imagine it happens because the pdf canvases are transparent, not white, and transparent backgrounds are converted in black by ffmpeg. But that's counter intuitive for beginners, don't you think? If anyone exports a video with the default drawbot settings there is no visible output.