[Eisfair] sane - Erfolgserlebnis und Frage

Detlef Paschke schabau at t-online.de
Sa Apr 18 19:27:05 CEST 2015


Am 18.04.2015 um 17:26 schrieb Stefan Puschek:

Hallo Stefan,


> also <image> nach ps und dann ps nach pcl3 mit ghostscript - das wäre eine 
> Möglichkeit...

also für meinen Samsung CLP-620ND der glaube ich wie dein Brother HL5140
PCL 6 unterstützt mache ich es folgendermaßen.

SCANFILE="/tmp/scan.tiff"
TMPFILE="/tmp/tmp.tiff"
LOCKFILE="/tmp/copy.lock"
GAMMA="1.0"
CONTRAST="20"

echo "button 4 has been pressed on $2"
		scanimage --format tiff --mode Gray --resolution 150 -l 0 -t 0 -x
210mm -y 297mm > $SCANFILE
		convert -gamma $GAMMA -brightness-contrast $CONTRAST -auto-level
$SCANFILE $TMPFILE
		rm -f $SCANFILE
		tiff2ps -z -w 8.27 -h 11.69 $TMPFILE -O /tmp/printfile
		rm -f $TMPFILE
		gs -q -sDEVICE=lj5gray -sOutputFile=\|"lpr -Prepr1" -dPARANOIDSAFER
-dDEVICEWIDTHPOINTS=595 \
		-dDEVICEHEIGHTPOINTS=842 -dNOPAUSE -- /tmp/printfile -c quit
		rm -f /tmp/printfile


Klappt schon seit Jahren ohne Probleme so, auch schon zu Zeiten als das
Sane-Paket noch gar nicht scanbuttond mit dabei hatte.

> Groetjes
> Stefan

Viele Grüße
Detlef Paschke

-- 
registered Fli4l-User #00000209
Das "Zitat des Augenblicks" gibt es nur auf
http://www.schabau.goip.de


Mehr Informationen über die Mailingliste Eisfair