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

case "$QUALITY" in
	draft)	RESOLUTION=360x90
		params="Quality=360x90sw,InkType=CMYK,ImageType=0,Dither=VeryFast" ;;
	low)	RESOLUTION=180x180
		params="Quality=180sw,InkType=CMYK,ImageType=0,Dither=Fast" ;;
	medium)	RESOLUTION=360x360
		[ "$SWEEP" = uni ] && sweep=uni || sweep=
		params="Quality=360sw$sweep,InkType=CMYK,ImageType=1" ;;
	high)	RESOLUTION=720x720
		[ "$SWEEP" = uni ] && sweep=uni || sweep=
		params="Quality=720sw$sweep,InkType=PhotoCMYK,ImageType=1" ;;
	photo)	RESOLUTION=1440x720
		[ "$SWEEP" = uni ] && sweep=uni || sweep=
		params="Quality=1440x720sw$sweep,InkType=PhotoCMYK,ImageType=2" ;;
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=Coated" ;;
	glossy)		params="$params,MediaType=GlossyPaper" ;;
	premium)	params="$params,MediaType=GlossyPhoto" ;;
	trans)		params="$params,MediaType=Transparency" ;;
	plain)		params="$params,MediaType=Plain" ;;
esac

GS_FEATURES="$GS_FEATURES -sIjsParams='$params' -sDeviceManufacturer=EPSON"
