fixing 1528851 for option -xraw
This commit is contained in:
parent
5067cad7e7
commit
0985414453
@ -1,12 +1,17 @@
|
||||
diff -up hplip-3.17.11/scan.py.jpeg-compression hplip-3.17.11/scan.py
|
||||
--- hplip-3.17.11/scan.py.jpeg-compression 2018-01-02 15:14:58.289267589 +0100
|
||||
+++ hplip-3.17.11/scan.py 2018-01-02 15:18:04.039892506 +0100
|
||||
@@ -1079,6 +1079,8 @@ try:
|
||||
--- hplip-3.17.11/scan.py.jpeg-compression 2018-01-08 09:26:42.547072815 +0100
|
||||
+++ hplip-3.17.11/scan.py 2018-01-08 09:29:39.753604411 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/python3
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# (c) Copyright 2003-2015 HP Development Company, L.P.
|
||||
@@ -1079,6 +1079,7 @@ try:
|
||||
log.info("Saving to file %s" % output)
|
||||
|
||||
try:
|
||||
+ if scanner_compression == 'JPEG':
|
||||
+ im = im.convert("RGB")
|
||||
+ im = im.convert("RGB")
|
||||
im.save(output)
|
||||
except IOError as e:
|
||||
log.error("Error saving file: %s (I/O)" % e)
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
Summary: HP Linux Imaging and Printing Project
|
||||
Name: hplip
|
||||
Version: 3.17.11
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2+ and MIT and BSD
|
||||
|
||||
Url: https://developers.hp.com/hp-linux-imaging-and-printing
|
||||
@ -521,6 +521,9 @@ update-desktop-database &> /dev/null ||:
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
||||
* Mon Jan 08 2018 Zdenek Dohnal <zdohnal@redhat.com> - 3.17.11-3
|
||||
- fixing 1528851 for option -xraw
|
||||
|
||||
* Tue Jan 02 2018 Zdenek Dohnal <zdohnal@redhat.com> - 3.17.11-2
|
||||
- 1528851 - Unable to scan and save jpg with color with hp-scan
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user