01eac0e
diff -up hplip-3.14.6/scan.py.lineart hplip-3.14.6/scan.py
01eac0e
--- hplip-3.14.6/scan.py.lineart	2014-07-23 12:30:52.361517852 +0100
01eac0e
+++ hplip-3.14.6/scan.py	2014-07-23 12:32:17.052940000 +0100
01eac0e
@@ -977,8 +977,8 @@ try:
01eac0e
                         try:
01eac0e
                             pixels_per_line = bytes_per_line * 8          # Calculation of pixels_per_line for Lineart must be 8 time of bytes_per_line
01eac0e
                                                                           # Otherwise, scanned image will be corrupted (slanted)
01eac0e
-                            im = Image.frombuffer('RGBA', (pixels_per_line, lines), buffer.read(),
01eac0e
-                                'raw', 'RGBA', 0, 1).convert('L')
01eac0e
+                            im = Image.frombuffer('1', (pixels_per_line, lines), buffer.read(),
01eac0e
+                                'raw', '1', 0, 1).convert('L')
01eac0e
                         except ValueError:
01eac0e
                             log.error("Did not read enough data from scanner (I/O Error?)")
01eac0e
                             sys.exit(1)