GithubHelp home page GithubHelp logo

Comments (10)

michaelrsweet avatar michaelrsweet commented on May 30, 2024

For these sorts of composite/combination labels you need to use a size that covers the full width and height of the label area. So maybe use oe_custom_1.75x0.875in and then provide an image that is padded accordingly.

I can also look at adding support for using the media-xxx-margin values to adjust the position of the rendered image within the label area.

from lprint.

jashephe avatar jashephe commented on May 30, 2024

Thanks so much for these suggestions! I tried using oe_custom_1.75x0.875in but got an error:

$ lprint -o media=oe_custom_1.75x0.875in -o media-source=alternate-roll labtag081_testpattern.png
lprint: Unable to print 'labtag081_testpattern.png' - Unsupported media-col collection value.

I did discover that I could specify the dimensions directly with e.g. media=1.75x0.875in, but I'm not sure how these dimensions relate to the physical dimensions of the printed label (see below for some tests). Initially, the orientation of the dimensions appeared to be wrong (landscape instead of portrait), and multiple labels were printed simultaneously. Even when I switched from landscape to portrait output, multiple labels were still printed, even when I used a short-side dimension of 0.5" which is measurably narrower than the short side of the label.


Both of the following gave the label shown below:

$ lprint -o media=1.5x0.875in -o orientation-requested=landscape -o media-source=alternate-roll labtag081_testpattern.png
$ lprint -o media=0.875x1.5in -o orientation-requested=landscape -o media-source=alternate-roll labtag081_testpattern.png

landscape
(all three labels printed at once)


Both of the following gave the label shown below:

$ lprint -o media=1.5x0.875in -o orientation-requested=portrait -o media-source=alternate-roll labtag081_testpattern.png
$ lprint -o media=0.875x1.5in -o orientation-requested=portrait -o media-source=alternate-roll labtag081_testpattern.png

portrait
(both labels printed at once)


I couldn't get it to just print just a single label, even when I went down to e.g.

lprint -o media=1.5x0.5in -o orientation-requested=portrait -o media-source=alternate-roll labtag081_testpattern.png

smaller
(both labels printed at once)


Edit: all of the above images are oriented so that the label that exited the label printer first is at the top of the image, and the label that exited the label printer last (i.e. closest to the cutting blade) is at the bottom.

from lprint.

michaelrsweet avatar michaelrsweet commented on May 30, 2024

Try measuring the width of the carrier backing and the distance between the holes - use that as the dimension of the label. (I was estimating 1.75x0.875 based on the description on the web site you provided...)

from lprint.

jashephe avatar jashephe commented on May 30, 2024

I've just gone ahead and measured to confirm, but those dimensions are more or less correct. I measure 1.875 in as the width of the carrier backing (from the left side of the roll to the right side of the roll), and 0.875 in between holes.

from lprint.

michaelrsweet avatar michaelrsweet commented on May 30, 2024

Hmm, I'll see if I can find anything applicable in the documentation I have...

from lprint.

jashephe avatar jashephe commented on May 30, 2024

Thank you! Interestingly, no matter if I give the dimensions as 1.875x0.875in or 0.875x1.875in, the width of the printed area seems to more or less stay the same — see below for more examples.

Both of the following gave the label shown below:

$ lprint -o media=1.875x0.875in -o orientation-requested=portrait -o media-source=alternate-roll labtag081_testpattern.png
$ lprint -o media=0.875x1.875in -o orientation-requested=portrait -o media-source=alternate-roll labtag081_testpattern.png

portrait2

Both of the following gave the label shown below:

$ lprint -o media=1.875x0.875in -o orientation-requested=landscape -o media-source=alternate-roll labtag081_testpattern.png
$ lprint -o media=0.875x1.875in -o orientation-requested=landscape -o media-source=alternate-roll labtag081_testpattern.png

landscape2

And again, thank you so much for already being so helpful; sorry to keep coming back with more issues.

from lprint.

jashephe avatar jashephe commented on May 30, 2024

Just wanted to share an update, if it helps narrow things down — it appears to just not be honoring the custom label dimensions. When I tried both -o media=0.1x0.1in -o orientation-requested=portrait and -o media=10x10in -o orientation-requested=portrait, the output was exactly the same as the image I posted previously for -o media=1.875x0.875in -o orientation-requested=portrait (and the same is true in the landscape orientation).

The label dimensions with which it is printing seem to match the default label oe_address-label_1.25x3.5in.

from lprint.

michaelrsweet avatar michaelrsweet commented on May 30, 2024

@jashephe I know it's been a long time, but the current code is now based on PAPPL and should be much more robust. But in particular you should configure the default media size to the dimensions of the whole label area (relatively easy to do through the web interface...)

from lprint.

jashephe avatar jashephe commented on May 30, 2024

Hi Michael, thank you for following up! I do still have that printer and those labels in my possession, so I will give it another go and report back here (although it may take me a few weeks to get around to it). Thanks again, really!

from lprint.

jashephe avatar jashephe commented on May 30, 2024

Hi Michael, even with fiddling around in the web interface, I was not able to get this to work. I also encountered one or two SIGSEGV crashes of the server while using the web interface, one for instance after clicking the "Print Test Page" button. Eventually, I got things into a state where I couldn't get the printer to print at all (although the jobs were reported in the web interface as "Completed"). I'm sure that mis-configuration on my part played a role, as I had limited time to play around. At this point, I don't have the time for detailed investigation, so I'm just going to close this issue so it isn't littering the tracker. If I have the chance to revisit this and encounter problems in a more formal attempt, I'll open new issues. Thank you again for all of your assistance, and for remaining so responsive!

from lprint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.