camcorder icon indicating copy to clipboard operation
camcorder copied to clipboard

`bg` argument to set non-transparent backgrounds

Open z3tt opened this issue 3 years ago • 4 comments

While re-rendering the vignette gif I noticed that pngs are saved with a trasnparent background, as now common with the ragg devices. It would be great to have a bg option as in those or (maybe keeping it more simple but not sure if easy to implement) to set the backround white in case it is transparent and leave it as it is otherwise.

z3tt avatar Aug 22 '22 14:08 z3tt

So the issue was present for a moment, but now there are no transparent backgronds anymore. Not sure what is going on, i was always working with the example code in the readme and did not touch the camcorder functions.

z3tt avatar Aug 22 '22 15:08 z3tt

Hmmm, that's so weird. We could add that option to gg_record if it isn't there, I think we do set background for the saving of the gif

thebioengineer avatar Aug 22 '22 16:08 thebioengineer

I just saw there is a background argument in gg_playback(). However, backgrounds are always black for me anyway. IMO would be better to set it for the saved plots themselves. First, one may want to use the static plots as well. Secondly, one could still have a background of different color in case image sizes switch within an animation.

z3tt avatar Aug 23 '22 10:08 z3tt

Btw, I was able to create a gif without a plot or panel background again (different Win machine, same camcorder version). diamonds

z3tt avatar Aug 23 '22 10:08 z3tt

corrected in #36

thebioengineer avatar Sep 25 '22 15:09 thebioengineer