Today in “computers are cursed”:
I’m using pdf2cairo to generate a PNG preview of a PDF file.
PNG preview looks fine.
That PDF+PNG pair gets uploaded to a remote asset management system.
Remote system takes the PNG and generates its own previews from that.
These previews contain artifacts/garbled pixels. This behaviour is consistent, the same PNG always generates the same artifacts, and only in areas that are transparent.
Wanna guess what I had to do to fix this?
1/2