I've played around with another datamatrix generator like https://github.com/boombuler/barcode (golang).
That generator generates datamatrixes where the dimensions are not determined
by module size or margin.
Unfortunately dmtxread cannot read them: it exits with status 1, and no error.
Other readers like https://online-barcode-reader.inliteresearch.com/ can read it.
dmtxread does work if I produce a datamatrix with the "expected" dimensions, i.e. the dimensions
dmtwrite would produce if it were to write the same input text.
My golang code that produces png (stdout!) that dmtxread can read:
package main
import (
"image/png"
"os"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/datamatrix"
"fmt"
)
func main() {
// Create the barcode
code, c_err := datamatrix.Encode("hello")
if c_err != nil {
fmt.Println(os.Stderr,"error: %s",c_err)
os.Exit(1)
}
//without this line, dmtxread fails to read it
code,_ = barcode.Scale(code,80,80)
// encode the barcode as png
png.Encode(os.Stdout, code)
}
As stated: withouth scaling statement, dmtxread fails to read it.
Any idea?
See here my resulting png:

I've played around with another datamatrix generator like https://github.com/boombuler/barcode (golang).
That generator generates datamatrixes where the dimensions are not determined
by module size or margin.
Unfortunately
dmtxreadcannot read them: it exits with status 1, and no error.Other readers like https://online-barcode-reader.inliteresearch.com/ can read it.
dmtxread does work if I produce a datamatrix with the "expected" dimensions, i.e. the dimensions
dmtwrite would produce if it were to write the same input text.
My golang code that produces png (stdout!) that dmtxread can read:
As stated: withouth scaling statement, dmtxread fails to read it.
Any idea?
See here my resulting png: