Skip to content

Instantly share code, notes, and snippets.

View josefanostylus's full-sized avatar
🎯
Focusing

josefanostylus

🎯
Focusing
View GitHub Profile
@josefanostylus
josefanostylus / thumbs.md
Created June 20, 2022 14:23 — forked from bengarrett/thumbs.md
Generate and optimise thumbnails using GraphicsMagick and pngquant

Generate and optimise thumbnails using GraphicsMagick and pngquant

Install

Install gm and pngquant.

apt-get install gm pngquant

Generate

Generate a thumbnail. You can replace -thumbnail with -resize for a clearer thumbnail that will result in a larger file size.