Package: fbi
Version: 2.09-1+b1
Followup-For: Bug #780649

Dear Maintainer,

Since the upstream already has color fixed, here is the antialiasing patch 
without that part.

Ben

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i586)

Kernel: Linux 3.16.0-4-586
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages fbi depends on:
ii  ghostscript      9.06~dfsg-2
ii  libc6            2.19-15
ii  libcurl3-gnutls  7.38.0-4
ii  libexif12        0.6.21-2
ii  libfontconfig1   2.11.0-6.3
ii  libfreetype6     2.5.2-3
ii  libgif4          4.1.6-11
ii  libjpeg62-turbo  1:1.3.1-11+deb7u1
ii  libpng12-0       1.2.50-2+b2
ii  libtiff5         4.0.3-12.1
ii  zlib1g           1:1.2.8.dfsg-2+b1

fbi recommends no packages.

Versions of packages fbi suggests:
pn  imagemagick  <none>

-- no debconf information
--- fbgs.orig	2012-02-22 09:13:36.000000000 -0800
+++ fbgs	2015-03-14 09:26:53.589793238 -0700
@@ -14,6 +14,7 @@
 # parse options
 fbiopts=""
 gsopts=""
+antialias="-dTextAlphaBits=4 -dGraphicsAlphaBits=4"
 passwd=""
 device="tiffpack"
 opt=1
@@ -24,6 +25,7 @@
 
 usage: fbgs [fbgs options] [fbi options] file
 
+   -A    --no-antialias      do not antialias (faster rendering)
    -b    --bell              emit a beep when the document is ready
    -h    --help              print this help text
    -p    --password <arg>    a <password> passed to the PDF
@@ -41,6 +43,15 @@
 while test "$opt" = "1"; do
 	case "$1" in
 		# fbgs options
+		-A | --no-antialias)
+			antialias=""
+			shift
+			;;
+		--antialias)
+			# Needless since this is the default, but just in case.
+			antialias="-dTextAlphaBits=4 -dGraphicsAlphaBits=4"
+			shift
+			;;
 		-b | --bell)
 			bell="on"
 			shift
@@ -61,6 +72,10 @@
 			gsopts="$gsopts -dLastPage=$2"
 			shift; shift
 			;;
+		-M | --monochrome)
+			device="tiffpack"
+			shift
+			;;
 		-c | --color)
 			device="png16m"
 			shift
@@ -116,7 +131,7 @@
 gs	-dSAFER -dNOPAUSE -dBATCH			\
 	-sPDFPassword="$password"			\
 	-sDEVICE=${device} -sOutputFile=$DIR/ps%03d.tiff \
-	$gsopts						\
+	$antialias $gsopts				\
 	"$1"
 
 # tell the user we are done :-)

Reply via email to