So, favicons can be either PNG, GIF, ICO, or SVG. (I’m adding favicon support to my feed reader, and Imagick was acting all weird. I’m cheating, too, by using DuckDuckGo’s favicon service, which unfortunately does not return proper MIME types.)

(jan.boddez.net/notes/8757c0b08)

As such, I’m having Imagick read the image data (works for all but ICO), and if that fails, use `Imagick::setFormat(‘ico’)`. And it works! (Except for, well, emoji inside SVGs. A total edge case, I hope, but I’ve got a plan regardless.)

(jan.boddez.net/notes/6da961999)

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!