You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mark Smith edited this page Jun 3, 2026
·
3 revisions
geekosaur and exor674 helped me update the preview picture script, with a little help from tamouse_ the other night with imagemagick settings. Requires imeagemagick, pngnq, and pngcrush (all of which should be available on DreamHacks now, I think)
#!/bin/bash
for f in *.png; do
convert -resize 150x114^ -gravity north -extent 150x114 -sharpen 25 +dither -type Palette "$f" png8:"out.png" &&
pngnq -n 256 -s 1 -f out.png &&
pngcrush -c 3 -bit_depth 8 -rem alla -brute out-nq8.png "$f" >/dev/null &&
rm out.png out-nq8.png
done