ohai.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A cozy, fast and secure Mastodon server where everyone is welcome. Run by the folks at ohai.is.

Administered by:

Server stats:

1.8K
active users

DCoder 🇱🇹❤🇺🇦

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