Nothing would give me greater joy than producing a reprex, but I do not know how to get there. I know one can render PNG and JPG files within the htmlwidgets framework, and then I suppose hypothetically style the image with included CSS, but is that is the best approach? The magick package might be a better alternative, but I do not have much experience with that package.
My plan was to add various effects to an image of a plot--shimmers, sparkles, glitters, shadows, distortions, etc. Fingers crossed that it would scale to Shiny.
Unfortunately I also don't have experience with the Magick package...
Af far as I understand, Shiny does create an image from a normal (non interactive) plot or ggplot. So you should be able to get its CSS tags and then modify it. I still don't fully understand the intent is here, so would it be possible to show what you want with just a regular png image and then later we can worry about the plot?