I'm working on an open source project and we have put our logo and color information together as HTML+CSS. The goal is to configure CI to render the HTML+CSS to varius size PNG and Webp files (for Android, web UI favicon, etc.) to better fit design into the typical development flow. I'm looking for a command-line utility that takes HTML and CSS in and puts an image out. (preferably open source, but if it runs on Linux, even through Wine, it will work for this)
Unfortunately the best option I've found for getting a rendered image (ie: png, webp, etc.) of it is by taking a screenshot of the web browser with the HTML file opened, but this isn't easily automated.
There are add-ons that claim to take screenshots but they change the colors significantly in the generated image from their original appearance and Pandoc also seems incapable of this.
It's an odd request for sure, but it would help keep binary files away from git (which is awesome). And, since none of us are really graphic design people, it's nice to use something that's text-based and doesn't require an expensive editor like something from Adobe.