[cups.bugs] [HIGH] STR #1533: Direct printing of image files does not work
Till Kamppeter
till.kamppeter at gmx.net
Mon Apr 3 08:27:55 PDT 2006
[STR New]
I have taken the attached file worldmap.gif from the internet. I tried to
print it an HP PhotoSmart 2600 set up with the newest HPIJS driver (HPLIP
0.9.10) and the settings "PageSize=A4" and "scaling=100". I get a
GhostScript error message (error_log attached, job 12):
--------------------------------------------------------------------------
E [03/Apr/2006:17:34:58 +0200] [Job 10] renderer command: gs -q -dBATCH
-dPARANO
IDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs
-sDeviceManufacturer="H
EWLETT-PACKARD" -sDeviceModel="deskjet 5600" -dDEVICEWIDTHPOINTS=595
-dDEVICEHEI
GHTPOINTS=842 -dDuplex=false -r600
-sIjsParams=Quality:Quality=0,Quality:ColorMo
de=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7
-dIjsUseOutputFD -s
OutputFile=- -
E [03/Apr/2006:17:34:58 +0200] [Job 10] foomatic-gswrapper: gs '-dBATCH'
'-dPARA
NOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs'
'-sDeviceMan
ufacturer=HEWLETT-PACKARD' '-sDeviceModel=deskjet 5600'
'-dDEVICEWIDTHPOINTS=595
' '-dDEVICEHEIGHTPOINTS=842' '-dDuplex=false' '-r600'
'-sIjsParams=Quality:Quali
ty=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7
' '-dIjsUseOutputFD' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2
d [03/Apr/2006:17:34:59 +0200] cupsdUpdateCUPSBrowse: (170 bytes from
192.168.10
0.92) 100e 3
ipp://192.168.100.92:631/printers/hpfax_usb_Photosmart_2600_series
"Local Printer" "HP Photosmart_2600_series" "HPLIP Fax"
job-sheets=none,none lea
se-duration=300
d [03/Apr/2006:17:35:00 +0200] select_timeout: 6 seconds to send browse
update
d [03/Apr/2006:17:35:00 +0200] cupsdUpdateCUPSBrowse: (169 bytes from
192.168.10
0.92) 2901e 3 ipp://192.168.100.92:631/printers/HPPSmart2600 "" "HP
PhotoSmart 2
600" "HP PhotoSmart 2600 Foomatic/hpijs (recommended)"
job-sheets=none,none leas
e-duration=300
E [03/Apr/2006:17:35:00 +0200] [Job 10] Error: /undefined in --get--
E [03/Apr/2006:17:35:00 +0200] [Job 10] Operand stack:
E [03/Apr/2006:17:35:00 +0200] [Job 10] --dict:8/8(L)-- --dict:8/8(L)--
Imag
E [03/Apr/2006:17:35:00 +0200] [Job 10] Execution stack:
E [03/Apr/2006:17:35:00 +0200] [Job 10] %interp_exit .runexec2
--nostringval
-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval-- -
-nostringval-- --nostringval-- false 1 %stopped_push 1 3
%oparray_
pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop
..rune
xec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push
--nostringval-- 1 3 %oparray_pop --nostringval--
E [03/Apr/2006:17:35:00 +0200] [Job 10] Dictionary stack:
E [03/Apr/2006:17:35:00 +0200] [Job 10] --dict:1127/1686(ro)(G)--
--dict:1/20(
G)-- --dict:88/200(L)--
E [03/Apr/2006:17:35:00 +0200] [Job 10] Current allocation mode is local
E [03/Apr/2006:17:35:00 +0200] [Job 10] Last OS error: 2
E [03/Apr/2006:17:35:00 +0200] [Job 10] ESP Ghostscript 815.01:
Unrecoverable er
ror, exit code 1
E [03/Apr/2006:17:35:00 +0200] [Job 10] renderer return value: 1
--------------------------------------------------------------------------
To exclude the case of HPIJS having a bug I tried to run the imagetops
filter manually:
--------------------------------------------------------------------------
[root at majax c]# cat /home/test/Desktop/worldmap.gif |
/usr/lib/cups/filter/imagetops 1 2 3 4 'PageSize=A4 scaling=100' >
worldmap.ps
INFO: /usr/lib/cups/filter/imagetops 1 2 3 4 PageSize=A4 scaling=100
(null)
DEBUG: imagetoraster - copying to temp print file
"/root/tmp/4431458503f44"
DEBUG: Page = 595x842; 10,36 to 585,833
DEBUG: Before scaling: xppi=0, yppi=0, zoom=1.00
DEBUG: Before scaling: xprint=8.0, yprint=11.1
DEBUG: cupsImageGetXPPI(img) = 128, cupsImageGetYPPI(img) = 128, aspect =
1.000000
DEBUG: Portrait size is 7.99 x 4.80 inches
DEBUG: Landscape size is 11.07 x 6.64 inches
DEBUG: Auto orientation...
DEBUG: Using landscape orientation...
DEBUG: xpages = 1x11.07in, ypages = 1x6.64in
DEBUG: XPosition=0, YPosition=0, Orientation=1
DEBUG: xprint=11, yprint=7
DEBUG: PageLeft=10, PageRight=585, PageWidth=595
DEBUG: PageBottom=36, PageTop=833, PageLength=842
DEBUG: left=36.00, top=536.60
INFO: Printing page 1...
[root at majax c]# gs -sDEVICE=x11 worldmap.ps
ESP Ghostscript 815.01 (2005-09-22)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in --get--
Operand stack:
--dict:8/8(L)-- --dict:8/8(L)-- ImageType
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3
%oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2
--nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval-- 1 3 %oparray_pop --nostringval--
Dictionary stack:
--dict:1115/1686(ro)(G)-- --dict:0/20(G)-- --dict:84/200(L)--
Current allocation mode is local
Current file position is 1873
ESP Ghostscript 815.01: Unrecoverable error, exit code 1
[root at majax c]#
--------------------------------------------------------------------------
So this way I have the same result, also if I try again with the attached
worldmap.png file, which I generated with ImageMagick: "convert
worldmap.gif worldmap.png".
Displaying the images on the screen of printing them on the same printer
with FL-Photo 1.2 works fine.
CUPS version is 1.2 SVN rev 5361 and GhostScript is ESP GS 8.15 SVN rev
133.
Link: http://www.cups.org/str.php?L1533
Version: 1.2-current
More information about the cups-devel
mailing list