Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap semacode for dmtx #120

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

ksylvest
Copy link
Contributor

@ksylvest ksylvest commented Oct 23, 2024

Context

#119

semacode has a lot of issues installing via the native extensions with newer build tools and isn't maintained. dmtx is a strictly ruby Data Matrix generator that might be a suitable replacement.

Testing

The format of the data matrix changed in the testing. To verify that the change worked generated a PNG / SVG and confirmed both still scan with an iOS barcode scanner. I'm a bit unclear on if further verification is required

require 'bundler/setup'
require 'barby'

require 'barby/outputter/cairo_outputter' 
require 'barby/outputter/html_outputter'
require 'barby/barcode/data_matrix'

barcode = Barby::DataMatrix.new('humbaba')
File.write('humbaba.svg', barcode.to_svg)
File.write('humbaba.png', barcode.to_png)

PNG

humbaba

SVG

humbaba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants