[Scummvm-cvs-logs] CVS: web/screenshots mkthumb.sh,NONE,1.1

Max Horn fingolfin at users.sourceforge.net
Mon Feb 16 10:35:08 CET 2004


Update of /cvsroot/scummvm/web/screenshots
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1159

Added Files:
	mkthumb.sh 
Log Message:
little script which auto generates thumbs, using ImageMagick's convert tool, and gif2png

--- NEW FILE: mkthumb.sh ---
#!/bin/sh

# Scale the image to be 256 pixels wide, and use 256 colors.
# As target format we use GIF, to enforce an 8bit image (for some strange
# unknown reasons, ImageMagick sometimes produces 24bit output if we
# directly convert to PNG).
convert big_scummvm_$1.png -dither -resize 256 -colors 256 tmp_$1.gif

# Convert the resulting GIF to PNG, removing unused palette entries on the way.
gif2png -O tmp_$1.gif

# Finish by cleaning up
rm tmp_$1.gif
mv tmp_$1.png scummvm_$1.png





More information about the Scummvm-git-logs mailing list