Difference between revisions of "Talk:Newbie Guide for People Patching Styles"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with "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, an...")
 
 
Line 7: Line 7:
 
         pngcrush -c 3 -bit_depth 8 -rem alla -brute out-nq8.png "$f" >/dev/null &&
 
         pngcrush -c 3 -bit_depth 8 -rem alla -brute out-nq8.png "$f" >/dev/null &&
 
         rm out.png out-nq8.png
 
         rm out.png out-nq8.png
donee</nowiki>
+
done</nowiki>

Latest revision as of 04:03, 16 April 2012

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