cups ppi parameter should be a string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CUPS |
Fix Released
|
Unknown
|
|||
cups (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
cups-filters (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
cups encode.c treats parameter ppi as an integer, but it should be a string.
the image filter drivers expect the form ppi=300x600
to specify source image dpi for images where it is asymmetric.
I encountered this issue trying to print full-sized images without scaling on a dymo 450 label printer.
This bug causes images to print across 2 labels when trying to use the 300x600dpi graphics mode.
This should print a single label:
lpr -o ppi=300x600 -o scaling=0 -o PageSize=w167h288 -o PageRegion=w167h288 -o Resolution=
where the png is a 664*2224 image without any dpi metadata.
Instead the ppi option gets sanitized to 300, and the image gets printed across 2 labels.
Description: Ubuntu 20.04.2 LTS
Release: 20.04
cups:
Installed: 2.3.1-9ubuntu1.1
Candidate: 2.3.1-9ubuntu1.1
Version table:
*** 2.3.1-9ubuntu1.1 500
500 http://
500 http://
100 /var/lib/
2.3.1-9ubuntu1 500
500 http://
tags: | added: focal groovy |
Changed in cups: | |
status: | Unknown → New |
Changed in cups: | |
status: | New → Fix Released |
this patch lets the ppi setting be a string