CUPS 1.4.6, HP PhotoSmart C7280, lpr, option media ignored

Martin Jacobs martin.jacobs at nexgo.de
Fri Jun 24 09:01:59 PDT 2011


Hi,

HP PhotoSmart C7280 has two input paper trays, one for "normal" sized paper sheets and one for 4"x6" photo paper sheets
(quality Glossy). Using Web CUPS' web front end, I did create a printer queue for printing photos.

lpoptions -p rembrandt-photo -l
PageSize/Media Size: Card3x5 Card3x5.FB Hagaki Hagaki.FB Hagaki.Duplex Photo4x6 *Photo4x6.FB A6 A6.FB A6.Duplex Photo5x7
Photo5x7.FB Card5x8 Card5x8.Duplex Oufuku Oufuku.FB Oufuku.Duplex A5 A5.FB A5.Duplex B5 B5.Duplex JB5 JB5.FB JB5.Duplex
Executive Executive.Duplex 16k 8x10 Letter Letter.FB Letter.Duplex A4 A4.FB A4.Duplex ExecutiveJIS FLSA Legal Legal.Duplex
CDDVD80 CDDVD120 EnvA2 EnvC6 EnvChou4 EnvMonarch EnvDL Env10 EnvChou3 EnvC5 EnvB5 Custom.WIDTHxHEIGHT
Duplex/Double-Sided Printing: DuplexNoTumble DuplexTumble *None
InputSlot/Media Source: Auto *PhotoTray Upper Lower Envelope LargeCapacity Manual MPTray CDDVDTray
ColorModel/Output Mode: CMYGray KGray *RGB
MediaType/Media Type: Automatic Plain *Glossy TransparencyFilm CDDVDMedia
OutputMode/Print Quality: Normal Draft Best *Photo FastDraft
OptionDuplex/Duplexer Installed: False *True

I've installed HPLIP 3.11.3a, PPD files are recreated after upgrading and labeld with version number 3.11.3a.


I learned from CUPS online documentation "Getting started - Command-Line Printing and Options" to use command line option -o media=... to select paper size, media type and paper tray. Following examples fail and do always print on printers default source (A4, normal paper):


How to reproduce:


1) Use ImageMagicks convert to create a small sample image:

convert -size 100x20 label:"This is text" label.png


2) Print that image:

lpr -P rembrandt-photo -o media=Photo4x6 label.png

>From error.log:
argv[5]="finishings=3 media=Photo4x6 number-up=1 job-uuid=urn:uuid:b62c5963-dc30-31b7-7ba7
-65cabdce2060 job-originating-host-name=localhost time-at-creation=1308930545 time-at-processing=1308930545 AP_D_InputSlot= PageSize
=Photo4x6"


lpr -P rembrandt-photo -o media=Photo4x6,PhotoTray label.png

>From error.log:
argv[5]="finishings=3 media=Photo4x6,PhotoTray number-up=1 job-uuid=urn:uuid:0e33c9c7-c3e7
-3ee1-6176-732a5ad03a62 job-originating-host-name=localhost time-at-creation=1308930665 time-at-processing=1308930665 AP_D_InputSlot
= PageSize=Photo4x6"


lpr -P rembrandt-photo -o media=Photo4x6,PhotoTray,Glossy label.png

>From error.log:
argv[5]="finishings=3 media=Photo4x6,PhotoTray,Glossy number-up=1 job-uuid=urn:uuid:766fc9
c2-0a8d-3afa-7cbe-c92d179a6039 job-originating-host-name=localhost time-at-creation=1308930892 time-at-processing=1308930892 AP_D_In
putSlot= PageSize=Photo4x6"


lpr -P rembrandt-photo -o media=Glossy label.png

finishings=3 media=Glossy number-up=1 job-uuid=urn:uuid:74fe9693-e00a-3f09-5fdf-b
a254aca629a job-originating-host-name=localhost time-at-creation=1308931098 time-at-processing=1308931098 AP_D_InputSlot="


These print processes are using filters imagetoraster and hpcups and as backend hp. Binary imagetoraster belongs to CUPS 1.4.6 and
hpcups and hp to package hplip 3.11.3a.


My impression: parsing option media into ints parts seems to fail. Only media size seems to be translated into PageSize.


Question: Is this a bug of lpr? Or documentation?

Any idea?

Thanks in advance.




More information about the cups mailing list