zint / zint-gpl-only

Zint Barcode Generator
https://zint.org.uk/
GNU General Public License v3.0
525 stars 138 forks source link

--reverse only works with --notext, and then produces code WITH text #59

Closed swbr closed 2 years ago

swbr commented 7 years ago

Hello!

I'm using v2.4.2 on Windows10 on the command line.

Starting with zint.exe --barcode=20 --output="c:/my/file.png" -d "Zint is great" one gets a PNG with a Code128 barcode and a text string.

I saw the --reverse option and thought I can use it to generate a negative: zint.exe --barcode=20 --reverse --output="c:/my/file.png" -d "Zint is great" But this does not produce a PNG, nor any error message or return value !=0.

One could think that --reverse is not supported by Code128, but interestingly zint.exe --barcode=20 --reverse --notext --output="c:/my/file.png" -d "Zint is great" DOES generate an inverted PNG, but contrary to the parameter, it also contains the text string.

Further more, I tried this with QRcode, DataMatrix and Aztec. It seems none of them supports a text string in general, but the --reverse option only works together with --notext, otherwise no image is generated...

oehhar commented 7 years ago

Could you please file a bug report on sourceforge zint bug tracker.

Thanks, Harald

Am 31.03.2017 um 15:30 schrieb swbr:

Hello!

I'm using v2.4.2 on Windows10 on the command line.

Starting with |zint.exe --barcode=20 --output="c:/my/file.png" -d "Zint is great"| one gets a PNG with a Code128 barcode and a text string.

I saw the |--reverse| option and thought I can use it to generate a negative: |zint.exe --barcode=20 --reverse --output="c:/my/file.png" -d "Zint is great"| But this does not produce a PNG, nor any error message or return value !=0.

One could think that |--reverse| is not supported by Code128, but interestingly |zint.exe --barcode=20 --reverse --notext --output="c:/my/file.png" -d "Zint is great"| DOES generate an inverted PNG, but contrary to the parameter, it also contains the text string.

Further more, I tried this with QRcode, DataMatrix and Aztec. It seems none of them supports a text string in general, but the |--reverse| option only works together with |--notext|, otherwise no image is generated...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zint/zint/issues/59, or mute the thread https://github.com/notifications/unsubscribe-auth/AL1sLb-b1JrZsadrEuZr0BqODTrNsZJAks5rrQAGgaJpZM4Mvq8H.

-- ELMICRON Dr. Harald Oehlmann GmbH Koesener Str. 85 06618 Naumburg Germany Phone: +49 (0)3445 78112-0 Fax: +49 (0)3445 78112-19 www.Elmicron.de German legal references: Geschaeftsfuehrer: Dr. Harald Oehlmann, Jens Oehlmann UST Nr. / VAT ID No.: DE206105272 HRB 212803 Stendal

gitlost commented 2 years ago

This issue no longer appears to occur with the latest version on Zint so am closing. If the issue does persist, please open a ticket at https://sourceforge.net/p/zint/tickets/. Thanks for the feedback.