Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect custom media dimensions #1148

Open
timelmer-uw opened this issue Jan 29, 2025 · 0 comments
Open

Incorrect custom media dimensions #1148

timelmer-uw opened this issue Jan 29, 2025 · 0 comments

Comments

@timelmer-uw
Copy link

Describe the bug
CUPS passes incorrect dimensions to driver when custom media is specified (foomatic driver).

To Reproduce
Steps to reproduce the behavior:

  1. Install printer-driver-ptouch.

  2. Connect continuous tape printer (e.g. Brother PT-D600 [driver not currently included]).

  3. Generate an image via ImageMagick or similar:

    magick -size 300x60 -fill black label:"I am Groot" -rotate 90 tmp.png
    
  4. Print image with specific non-page size dimensions as described by https://www.cups.org/doc/options.html and lpoptions output:

    lp -d <name of printer> -o media=Custom.6x30mm tmp.png
    
  5. Print fails with message "Page width (448mm) exceeds 255mm)".

Expected behavior
File is printed at specified dimensions.

Screenshots
If applicable, add screenshots to help explain your problem.

System Information:

  • OS and its version: Fedora 41
  • Application: lp
  • CUPS version: 2.4.11

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant