#!/bin/sh


	# There are really no white stripes but it wastes color
giftopnm girldemo.gif |\
	pnmscale -xscale 4 -yscale 4 |\
	pnmsmooth |\
	pnmgamma 10 |\
	ppmdither -dim 4 -red 2 -green 2 -blue 2 |\
	pnmtoprt -d necp6_color -o 360x360dpi\
		-o interlace_180 -o even=fff -o odd=fff >testcolor.360

	# A little bit less beautiful than the first example, but probably
	# the better compromise
giftopnm girldemo.gif |\
	pnmscale -xscale 4 -yscale 4 |\
	pnmsmooth |\
	pnmgamma 10 |\
	ppmdither -dim 4 -red 2 -green 2 -blue 2 |\
	pnmtoprt -d necp6_color -o 360x360dpi\
		-o interlace_180  >testcolor.360

	# Another compromise
giftopnm girldemo.gif |\
	pnmscale -xscale 4 -yscale 4 |\
	pnmsmooth |\
	pnmgamma 10 |\
	ppmdither -dim 4 -red 2 -green 2 -blue 2 |\
	pnmtoprt -d necp6_color -o 360x360dpi\
		-o interlace_180 -o even=f0f -o odd=0f0 >testcolor.360

	# A nice greyscale of the picture
giftopnm girldemo.gif |\
	pnmscale -xscale 4 -yscale 4 |\
	pnmsmooth |\
	pnmgamma 10 |\
	ppmtopgm |\
	pgmtopbm |\
	pnmtoprt -d necp6_mono -o 360x360dpi\
		-o interlace_360 >testmono.360

	# quick and dirty
	# probably there should be a lower gamma correction
giftopnm girldemo.gif |\
	pnmscale -xscale 4 -yscale 4 |\
	pnmsmooth |\
	pnmgamma 5 |\
	ppmdither -dim 4 -red 2 -green 2 -blue 2 |\
	pnmtoprt -d necp6_color -o 180x180dpi >testcolor.180

	# quick and dirty greyscale
	# probably there should be a lower gamma correction
giftopnm girldemo.gif |\
	pnmscale -xscale 4 -yscale 4 |\
	pnmsmooth |\
	pnmgamma 5 |\
	ppmtopgm |\
	pgmtopbm |\
	pnmtoprt -d necp6_mono -o 180x180dpi >testmono.180


	# Try this pipe only when you have much much memory (and time)
	# Otherwise step by step (data from one step: 12MB)
	# But try it, the result will be nice
	# Printing will need about 45 min
giftopnm girldemo.gif |\
	pnmscale -xscale 8 -yscale 8 |\
	pnmsmooth |\
	pnmgamma 10 |\
	ppmdither -dim 4 -red 2 -green 2 -blue 2 |\
	pnmtoprt -d necp6_color -o 360x360dpi\
		-o interlace_180 -o even=fff -o odd=fff >testcolor2.360

	# Try this pipe only when you have much much memory
	# Otherwise step by step
	# An nice result too
giftopnm girldemo.gif |\
	pnmscale -xscale 8 -yscale 8 |\
	pnmsmooth |\
	pnmgamma 10 |\
	ppmtopgm |\
	pgmtopbm |\
	pnmtoprt -d necp6_mono -o 360x360dpi\
		-o interlace_360 >testmono2.360

