hplip-jpeg-compression.patch 622 B

123456789101112131415161718
  1. diff -up hplip-3.17.11/scan.py.jpeg-compression hplip-3.17.11/scan.py
  2. --- hplip-3.17.11/scan.py.jpeg-compression 2018-01-08 09:26:42.547072815 +0100
  3. +++ hplip-3.17.11/scan.py 2018-01-08 09:29:39.753604411 +0100
  4. @@ -1,4 +1,4 @@
  5. -#!/usr/bin/env python
  6. +#!/usr/bin/python3
  7. # -*- coding: utf-8 -*-
  8. #
  9. # (c) Copyright 2003-2015 HP Development Company, L.P.
  10. @@ -1079,6 +1079,7 @@ try:
  11. log.info("Saving to file %s" % output)
  12. try:
  13. + im = im.convert("RGB")
  14. im.save(output)
  15. except IOError as e:
  16. log.error("Error saving file: %s (I/O)" % e)