imagetoraster cuts height in half (CUPS 1.1.18)

Brion Finlay none at nospam.net
Fri Jan 21 14:25:01 PST 2005


Michael Sweet wrote:
> Brion Finlay wrote:
> 
>> I am trying to print an image (GIF or PNG) to a CUPS printer.  The 
>> image is 300 pixels by 420 pixels at 200 dpi.
>>
>> My PPD for my printer specifies a page size of 312x425 points (it's a 
>> small printer) and an imageable area of 294x413 points.  At 200dpi, 
>> that should give me about 830 dots x 1166 dots.
>>
>> When I send my image through cups, it goes through the imagetoraster 
>> filter, it cuts the height in half.  cupsWidth=828 which is 
>> acceptable, but cupsHeight=573, which is approximately half of the 
>> 1166 dots that I should have.
> 
>  > ...
> 
> What HWResolution values are coming through to your raster filter?
> 

I don't see anything in the logs for this job (Job 3, the PNG image). 
What should I look for?  For a previous postscript job, I see this:
D [20/Jan/2005:16:08:20 +0000] [Job 2] PageSize = [ 312 425 ], 
HWResolution = [ 203 203 ]

For Job 3, the closest thing I see is this:
D [20/Jan/2005:16:18:11 +0000] [Job 3] Page = 312x425; 0,0 to 294,413
D [20/Jan/2005:16:18:11 +0000] [Job 3] Searching for profile "200dpi/"...
(... Cache tile stuff excerpted here ...)
D [20/Jan/2005:16:18:11 +0000] [Job 3] Before scaling: xppi=198, 
yppi=198, zoom=0.00

The PPD file defines the following:
(these lines are excerpted from the rest of the PPD)
*PaperDimension Letter/US Letter:       "312 425"

*ImageableArea Letter/US Letter:        "0 0 294 413"

*DefaultResolution: 200dpi
*Resolution 200dpi/200 DPI: "<</HWResolution[203.2 203.2]/cupsColorOrder 
0/cupsColorSpace 3>>setpagedevice"






More information about the cups mailing list