Coder Social home page Coder Social logo

rdoeffinger / iec16022 Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 14.0 157 KB

DataMatrix 2D barcode generator

Home Page: http://rdoeffinger.github.io/

License: GNU General Public License v2.0

Shell 4.82% C 87.51% Makefile 2.63% M4 2.92% Roff 2.12%
datamatrix qrcode-generator

iec16022's People

Contributors

asdfuser avatar jimevins avatar jluebbe avatar mhei avatar rdoeffinger avatar scop avatar stefan-schmidt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

iec16022's Issues

GPLv3

Any chance you would license this under something besides GPL?

Barcode with newlines creates unreadable Stamp and Eps images

The comment %%BarcodeData cause Eps and Stamp images to be unreadable because the data is leaking out of comments boundaries

iec16022 -s 104x104 -f Eps -i <(printf "line1\nline2\nline3") | sed -n 2,7p
%%Creator: IEC16022 barcode/stamp generator
%%BarcodeData: line 1
line 2
line 3
%%BarcodeSize: 104x104
%%BarcodeFormat: ECC200

The barcode should be properly escaped or split over multiple lines, e.g.:

iec16022 -s 104x104 -f Eps -i <(printf "line1\nline2\nline3") | sed -n 2,5p
%%Creator: IEC16022 barcode/stamp generator
%%BarcodeData: line1\nline2\nline3
%%BarcodeSize: 104x104
%%BarcodeFormat: ECC200

Incorrect results

Some string or length produces incorrect results, eg. the substring ":62" gets then encoded as ":{62" near the end of data or data is truncated. Complete string is 63 chars long.

Cannot post the strings here because it may expose sensitive data.
If someone responses to this I will try to find a random test string.
Forcing the size can prevent the bug.

Update package meta data

  • the package release tarball 0.2.6 contains still the version 0.2.5 in configure.ac
  • maintainers e-mail address should be updated
  • man page also contains version tag 0.2.5
  • Changelog could be updated

Sorry to not create a PR, but I'm limited in time at the moment.

How to compile in macOS?

โžœ  iec16022 git:(master) ./configure
checking for a BSD-compatible install... /usr/local/opt/coreutils/libexec/gnubin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/opt/coreutils/libexec/gnubin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/ggrep
checking for egrep... /usr/local/bin/ggrep -E
checking for fgrep... /usr/local/bin/ggrep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin15.6.0 file names to x86_64-apple-darwin15.6.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin15.6.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/local/opt/coreutils/libexec/gnubin/dd
checking how to truncate binary pipes... /usr/local/opt/coreutils/libexec/gnubin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin15.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for main in -lpopt... yes
checking for main in -lz... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'

Windows PNG

Hello,

When running the command on Windows 10, it doesn't create valid PNG files.

iec16022-0.2.7.exe -c 12345678 --format=png --ecc=200 --outfile=dm.png

However when running the command with --format=eps that works and correctly generates the EPS file.

I've tried several variations of the options (different text, different sizes etc.) and none created a valid PNG I was able to view in any program.

Thanks

Publish mail address of signing public key of iec16022 at keys.openpgp.org?

Do you see a chance to publish the mail adress of the public key of key C61D16E59E2CD10C895838A40899A2B906D4D9C7, being used for signing iec16022 release tarballs, at keys.openpgp.org? This would allow Fedora to switch from the current binary GnuPG output blob (manually created) to the ASCII format provided there. Unfortunately keys.openpgp.org strips all user IDs unless the owner of the corresponding email address has allowed them to be published, thus keys.openpgp.org can't be used for the ASCII format right now.

Stripped characters from data in barcode

When I use the following command, I would expect the barcode to contain the full given string, but reading back the PNG, the two last characters are missing in the barcode. I tested this with my smartphone and an app and/or a standalone 2d barcode scanner.

./iec16022 -c "UEXPLR4-CBR3A3-001-TSK 13471 3216" -f png -o test.png

I tested other strings as well, but failed to find out what is special about the string above.

Function Characters?

Hello!

Sorry if this is the wrong place to ask this question. I would like to make a GS1 DataMatrix code, but it needs an FNC1 character to be encoded. Can I do this with iec16022?

Thanks!
Rex

Unchecked writes may cause corrupted output file

All calls to write(..) in image.c are unchecked which may cause corrupted output file when, for instance, the filesystem is full. Errors should be detected, reported and the incomplete file removed.

Change text version characters

Hello,

It could be interesting to have an option to choose the 0 and 1 characters for the text version.
I would prefer '0' and '1' than ' ' and '*' for example.

Thank you.

SONAME version should have been increased

With the removal of several functions in e299549, I think LT_VERSION_C should have been bumped before the release of 0.3.0 as documented in configure.ac.

I'm currently updating iec16022 in Debian and I'm a little reluctant to update it beyond 0.2.7 without further clarification of the SONAME version.

Windows binary does not output

Am I missing something here? The windows binary is not outputting anything at all. My command is:

FOR /F %%i IN (barcode.txt) DO iec16022.exe -s 20x20 -c %%i --ecc 200 -o %%i.png -f PNG
pause

I've also tried:

iec16022.exe -s 20x20 -c L-380-W1-1-1 --ecc 200 -o L-380-W1-1-1.png -f PNG

I've downloaded the binary from the releases section, the .exe file. Is this the correct binary for windows?

I'm running Windows 7 64bit on an i7-2600 CPU. I think i've seen that there was no testing done for 64bit, is that the case?

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.