Comment #1 on issue 572 by sro...@gmail.com: Add Data Matrix encoder
http://code.google.com/p/zxing/issues/detail?id=572
There is no DM encoder now. I can mark this as an enhancement and you're
welcome to write it. I don't think anyone plans to work on it otherwise.
For what purpose would a DM Encoder be used for this application?
I think that such a package (zXing, I mean) could acquire more value if a
complete set of Barcode encoders would be plugged in. Specially taking in
count that very few open source projects (probably just one) candidate
themselves to be a complete solution (encoding-decoding) for barcode
manipulation.
Thank in count that in Europe DM barcodes are prevailing over other kind of
2D barcodes.
DataMatrix production in Java is available over at Barcode4J
(http://barcode4j.sf.net). zxing is welcome to fork DM from my
implementation. After all, both projects use the same license.
Forking from Barcode4J sounds like a great solution. My personal wishlist
of contributions to make (to various FLOSS projects) includes this
enhancement.
I have implemented a DataMatrix encoded for zxing.
The algorithm mainly rely on the barcode4j implementation.
I have created a diff file with the modifications.
Attachments:
datamatrix_encoder.diff 127 KB
Unfortunately this DataMatrix encoder is not included in version ZXing-2.0.
Why?
Is it not finished?
When will it be added to a ZXing release? Do you plan to add the DataMatrix
encoder?
I have updated the datamatrix encoder in order to reflect the ZXing changes.
Here is the new diff included.
I don't have the right to commit to the project to add it, but if someone
wan't to commit it, feel free to do it.
Attachments:
datamatrix_encoder.diff 121 KB
Comment #9 on issue 572 by srowen: Add Data Matrix encoder
http://code.google.com/p/zxing/issues/detail?id=572
I didn't see this patch. Jeremias (above) is the developer of barcode4j and
I think I'd ask the same question he might: why copy the encoder into this
project? on the one hand, sure, it makes a more complete set here, but it
also forks work on the encoder. Someone at Google contributed a modified
PDF417 encoder from barcode4j here, and there were just barely some reasons
that it made sense to make a modified copy. I suppose I'm slightly
reluctant to add just a copy... but I suppose I'd let others comment and
would want to think about it.
As far as I am concerned, if you are already using zxing for QRCode encoding
you don't wan't to add a whole new lib to your project just to add
Datamatrix compatbility. But you are right if you start a new project you
can use the barcode4j.