# $ApsCVS: src/apsfilter/driver/gimp/pcl-1100,v 1.1.2.1 2002/10/27 22:05:23 andreas Exp $

case "$QUALITY" in
	draft)	RESOLUTION=150x150
		params="Quality=150dpi,ImageType=0,Dither=VeryFast" ;;
	low)	RESOLUTION=150x150
		params="Quality=150dpi,ImageType=0,Dither=Fast" ;;
	medium)	RESOLUTION=300x300
		params="Quality=300dpi,ImageType=1" ;;
	high)	if [ "$COLOR" = full ]; then
			RESOLUTION=300x300
			params="Quality=300dpi,ImageType=1"
		else
			RESOLUTION=600x600
			params="Quality=600mono,ImageType=1"
		fi ;;
	photo)	if [ "$COLOR" = full ]; then
			RESOLUTION=300x300
			params="Quality=300dpi,ImageType=2"
		else
			RESOLUTION=600x600
			params="Quality=600mono,ImageType=2"
		fi ;;
esac

case "$COLOR" in
	full)	GS_FEATURES="$GS_FEATURES -sProcessColorModel=DeviceRGB" ;;
	gray)	GS_FEATURES="$GS_FEATURES -sProcessColorModel=DeviceGray" ;;
	mono)	GS_FEATURES="$GS_FEATURES -sProcessColorModel=DeviceGray -dBitsPerSample=1" ;;
esac

case "$MEDIA" in
	coated)		params="$params,MediaType=Bond" ;;
	glossy)		params="$params,MediaType=GlossyPaper" ;;
	premium)	params="$params,MediaType=GlossyPro" ;;
	trans)		params="$params,MediaType=Transparency" ;;
	plain)		params="$params,MediaType=Plain" ;;
esac

GS_FEATURES="$GS_FEATURES -sIjsParams='$params' -sDeviceManufacturer=HEWLETT-PACKARD"
