wok diff sane-backends/stuff/tazpanel/sane.cgi @ rev 18252

Add some lang packages for tesseract-ocr
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 03 16:02:13 2015 +0200 (2015-08-03)
parents 1ed620c5ee23
children 903156784651
line diff
     1.1 --- a/sane-backends/stuff/tazpanel/sane.cgi	Wed Jul 29 17:07:24 2015 +0200
     1.2 +++ b/sane-backends/stuff/tazpanel/sane.cgi	Mon Aug 03 16:02:13 2015 +0200
     1.3 @@ -69,10 +69,11 @@
     1.4  function a(x) { return int(($x * $5)/ $7); }
     1.5  { printf "%dx%d+%d+%d -resize %dx%d",a(1),a(2),a(3),a(4),$6,int(($2*$6)/$1)}
     1.6  ')"
     1.7 +		suf="png"; [ "$1" ] && suf="pnm"
     1.8  		cat <<EOT
     1.9 -if convert -crop $c $mode $f /tmp/sane$$.png 2> /dev/null ; then
    1.10 -	cat /tmp/sane$$.png
    1.11 -	rm -f /tmp/sane$$.png
    1.12 +if convert -crop $c $mode $f /tmp/sane$$.$suf 2> /dev/null ; then
    1.13 +	cat /tmp/sane$$.$suf
    1.14 +	rm -f /tmp/sane$$.$suf
    1.15  else
    1.16  	cat $f
    1.17  fi