Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-20 Thread Thomas Schmitt
Hi, Max Nikulin wrote: > I admit "dithering" may be incorrect term, [...] > Consider 2 squares having size of 2.5×2.5 pixels. Non-even sizes and fuzzy > lines variants: > █████ > ██████ > ████ ██ >██ ██ >█████ > Second variant might have sense if an

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-20 Thread Max Nikulin
On 20/03/2024 01:51, Thomas Schmitt wrote: Max Nikulin wrote: When vector graphics, that does not match device resolution, is rasterized, the result is either non-even sizes of similar elements or fuzzy lines due to dithering. Nitpicking: "Dithering" in raster graphics is emulation of color r

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-19 Thread Thomas Schmitt
Hi, Max Nikulin wrote: > When vector graphics, that does not match device resolution, is rasterized, > the result is either non-even sizes of similar elements or fuzzy lines due > to dithering. Nitpicking: "Dithering" in raster graphics is emulation of color resolution at the expense of space re

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-19 Thread Max Nikulin
On 13/03/2024 12:25, hw wrote: On Mon, 2024-03-11 at 23:45 +0700, Max Nikulin wrote: It seems you expect some number that you can use for any QR code. There is no size that fits for all codes. It's because you said: "I believed that 300dpi is high enough resolution for QR-codes of reasonable s

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-14 Thread jeremy ardley
On 14/3/24 17:47, jeremy ardley wrote: For reference on a 203 DPI (8 dots per mm) printer, a GS1-128 barcode takes up 12 modules per character. The minimum size of a module is 1 pixel so 1 character is 12 pixels wide or 1.2mm on a 203 dpi printer. Assuming a 40 character barcode at 1 pixel p

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-14 Thread jeremy ardley
On 14/3/24 06:59, hw wrote: Manufacturers can provide CUPS drivers as well, but the barcode application is usually only windows. In my case I had to write my own CUPS driver as the manufacturer does not provide one. How did you do that? It is simply a C program that gets given some paramete

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-13 Thread hw
On Wed, 2024-03-13 at 03:50 +0800, jeremy ardley wrote: > On 12/3/24 21:21, hw wrote: > > > > Even if they did that, it would be totally useless because it won't be > > able to automatically print labels from databases. > > The manufacturer applications  usually allow you to print a list from a

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-13 Thread Max Nikulin
On 13/03/2024 02:50, jeremy ardley wrote: Getting back to pixel registration, the latex CUPS route is very unlikely to work well. TeX with MetaFont fonts worked well with low resolution dot matrix printers. Rasterized fonts may be generated for specified resolution. It should be still possibl

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-13 Thread Florent Rougon
Florent Rougon wrote: > - printer matrix alignment if printer resolution is low (more > difficult; maybe try with some very small horizontal and veritical > shifts to see if it helps...). Thinking about it more, this is probably hopeless unless printer resolution is *extremely* low. Ty

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-13 Thread Florent Rougon
hw wrote: >> That is quite likely: the pst- prefix means this is PSTricks, which is >> an oldish way of doing vector graphics with LaTeX. I tend to avoid >> PSTricks these days as it is generally awkward to use in PDF contexts, >> although there are various workarounds that often allow to do so.

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-12 Thread hw
On Mon, 2024-03-11 at 23:45 +0700, Max Nikulin wrote: > On 11/03/2024 08:06, hw wrote: > > On Sun, 2024-03-10 at 09:50 +0700, Max Nikulin wrote: > > > On 10/03/2024 04:41, hw wrote: > > > > \psbarcode{textblah foo}{height=0.6 width=0.6 eclevel=L}{qrcode} > > > > > > > > That works for 600dpi laser

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-12 Thread hw
On Mon, 2024-03-11 at 11:58 +0100, Florent Rougon wrote: > Hi, > > I haven't read the whole thread (sorry) but thought this might help. > > hw wrote: > > > When I zoom in on QR-codes in a PDF viewer, they don't get blurry. > > Perhaps the pst-barcode package uses vector graphics? > > That is q

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-12 Thread jeremy ardley
On 12/3/24 21:21, hw wrote: Even if they did that, it would be totally useless because it won't be able to automatically print labels from databases. The manufacturer applications  usually allow you to print a list from a spreadsheet or text file. It is possible to use document generatio

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-12 Thread hw
On Mon, 2024-03-11 at 09:57 +0800, jeremy ardley wrote: > On 11/3/24 07:34, hw wrote: > > Do you think that thermal transfer printers with 203dpi would be > > better suited to print QR codes than the 300dpi multi-mode printers? > > > > I'm not fond of thermal transfer at all. Usually what is bein

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-11 Thread Max Nikulin
On 11/03/2024 08:06, hw wrote: On Sun, 2024-03-10 at 09:50 +0700, Max Nikulin wrote: On 10/03/2024 04:41, hw wrote: \psbarcode{textblah foo}{height=0.6 width=0.6 eclevel=L}{qrcode} That works for 600dpi laser printers. When you print the QR-code with a 300dpi label printer you can't reliably

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-11 Thread Florent Rougon
Hi, I haven't read the whole thread (sorry) but thought this might help. hw wrote: > When I zoom in on QR-codes in a PDF viewer, they don't get blurry. > Perhaps the pst-barcode package uses vector graphics? That is quite likely: the pst- prefix means this is PSTricks, which is an oldish way o

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-10 Thread jeremy ardley
On 11/3/24 07:34, hw wrote: Do you think that thermal transfer printers with 203dpi would be better suited to print QR codes than the 300dpi multi-mode printers? I'm not fond of thermal transfer at all. Usually what is being printed that way fades rather quickly over time and is more slightly

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-10 Thread hw
On Sun, 2024-03-10 at 09:50 +0700, Max Nikulin wrote: > On 10/03/2024 04:41, hw wrote: > > \psbarcode{textblah foo}{height=0.6 width=0.6 eclevel=L}{qrcode} > > > > That works for 600dpi laser printers. When you print the QR-code with > > a 300dpi label printer you can't reliably scan it, not even

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-10 Thread hw
On Sun, 2024-03-10 at 07:56 +0800, jeremy ardley wrote: > On 10/3/24 05:41, hw wrote: > > The QR-codes are sharp and easily scanable when printed in 600dpi. > > With the label printer you can't really tell if they're sharp or not. > > As  mentioned in my previous post, thermal label printers are 2

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-10 Thread hw
On Sun, 2024-03-10 at 10:21 +0700, Max Nikulin wrote: > On 10/03/2024 03:48, jeremy ardley wrote: > > > > Standard thermal label printers are 203DPI (8 dots per mm). > > Thanks, this number suits better to my expectation. I just trusted hw > earlier. I should clarify: The printer the OP pointe

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-10 Thread jeremy ardley
On 10/3/24 15:39, Max Nikulin wrote: From your earlier message I count approximately 1000px for 5in (125 mm) barcode. If it is 1:1 to ~200dpi then it is incompatible with 300dpi printers, so it may be a reason why your proposal to the post office was rejected. If it is 500 black or white line

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-09 Thread Max Nikulin
On 10/03/2024 10:51, jeremy ardley wrote: I have far less problems with the QR code (in my case data_matrix code) than with the barcode. The pixel elements of the QR code are much larger than the lines in a barcode so there is much less chance for pixel ambiguity. From your earlier message

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-09 Thread jeremy ardley
On 10/3/24 11:21, Max Nikulin wrote: Is the QR image a raster one? I am unsure concerning its printer dots per QR pixel ratio. Let's take e.g. 4 as a value inconvenient for direct scaling from 300dpi to 203dpi. I expect that upscaling it by 3 and downscaling the result by 4 with disabled sm

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-09 Thread Max Nikulin
On 10/03/2024 03:48, jeremy ardley wrote: Standard thermal label printers are 203DPI (8 dots per mm). Thanks, this number suits better to my expectation. I just trusted hw earlier. I have asked the postal service to generate labels at 203dpi which will print just fine at 600 dpi and so wor

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-09 Thread Max Nikulin
On 10/03/2024 04:41, hw wrote: \psbarcode{textblah foo}{height=0.6 width=0.6 eclevel=L}{qrcode} That works for 600dpi laser printers. When you print the QR-code with a 300dpi label printer you can't reliably scan it, not even when you make the QR-code 1x1" in size. Perhaps that's not a reasona

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-09 Thread jeremy ardley
On 10/3/24 05:41, hw wrote: The QR-codes are sharp and easily scanable when printed in 600dpi. With the label printer you can't really tell if they're sharp or not. As  mentioned in my previous post, thermal label printers are 203dpi, *not the 300 that the OP quoted.* you can read the OP s

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-09 Thread hw
On Sat, 2024-03-09 at 23:20 +0700, Max Nikulin wrote: > On 09/03/2024 19:08, hw wrote: > > On Fri, 2024-03-08 at 23:21 +0700, Max Nikulin wrote: > > > On 08/03/2024 12:35, hw wrote: > > > > On Thu, 2024-03-07 at 23:15 -0500, Jeffrey Walton wrote: > > > > > > > > > > I have a USB thermal printer fo

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-09 Thread jeremy ardley
On 10/3/24 00:20, Max Nikulin wrote: Looking at a QR code likely having ~75 pixels per inch I find it unreasonably small for delivery labels. I am in doubts if its redundancy is high enough to reliably recognize it if it would be scratched during delivery. Another limitation may be stabilit

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

2024-03-09 Thread Max Nikulin
On 09/03/2024 19:08, hw wrote: On Fri, 2024-03-08 at 23:21 +0700, Max Nikulin wrote: On 08/03/2024 12:35, hw wrote: On Thu, 2024-03-07 at 23:15 -0500, Jeffrey Walton wrote: I have a USB thermal printer for the shipping labels, . This printer has

printing QR-codes on labels with 300dpi label printers with LaTeX (was: libbusiness-us-usps-webtools-perl and USPS Ground Advantage shipping)

2024-03-09 Thread hw
On Fri, 2024-03-08 at 23:21 +0700, Max Nikulin wrote: > On 08/03/2024 12:35, hw wrote: > > On Thu, 2024-03-07 at 23:15 -0500, Jeffrey Walton wrote: > > > > > > I have a USB thermal printer for the shipping labels, > > > . > > > > This printer has only