File: stcolor

package info (click to toggle)
apsfilter 7.2.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,544 kB
  • ctags: 61
  • sloc: sh: 457; ansic: 236; perl: 175; makefile: 157
file content (42 lines) | stat: -rw-r--r-- 1,262 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $ApsCVS: src/apsfilter/driver/stcolor,v 1.1 2001/11/17 15:21:55 andreas Exp $

case "$QUALITY" in
	draft)	RESOLUTION=180x180
		if [ "$COLOR" = full ]; then
			GS_FEATURES="$GS_FEATURES -sDithering=gscmyk"
		else
			GS_FEATURES="$GS_FEATURES -sDithering=gsmono"
		fi ;;
	low)	RESOLUTION=180x180
		if [ "$COLOR" = full ]; then
			GS_FEATURES="$GS_FEATURES -sDithering=fsrgb"
		else
			GS_FEATURES="$GS_FEATURES -sDithering=gsmono"
		fi ;;
	medium)	RESOLUTION=360x360
		if [ "$COLOR" = full ]; then
			GS_FEATURES="$GS_FEATURES -sDithering=fscmyk"
		else
			GS_FEATURES="$GS_FEATURES -sDithering=fsmono"
		fi ;;
	high)	RESOLUTION=720x360
		if [ "$COLOR" = full ]; then
			GS_FEATURES="$GS_FEATURES -sDithering=fscmyk -dMicroweave"
		else
			GS_FEATURES="$GS_FEATURES -sDithering=fsmono -dMicroweave"
		fi ;;
	photo)	RESOLUTION=720x720
		if [ "$COLOR" = full ]; then
			GS_FEATURES="$GS_FEATURES -sDithering=fscmyk -dMicroweave"
		else
			GS_FEATURES="$GS_FEATURES -sDithering=fsmono -dMicroweave"
		fi ;;
esac

[ "$SWEEP" = uni ] && GS_FEATURES="$GS_FEATURES -dUnidirectional"

case "$COLOR" in
	full)	GS_FEATURES="$GS_FEATURES -dBitsPerPixel=32" ;;
	gray)	GS_FEATURES="$GS_FEATURES -dBitsPerPixel=8" ;;
	mono)	GS_FEATURES="$GS_FEATURES -dBitsPerPixel=1" ;;
esac