You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered:
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:
As stated: withouth scaling statement, dmtxread fails to read it.
Any idea?
See here my resulting png:
The text was updated successfully, but these errors were encountered: