0.1 - 15 March 2008: Initial proposal creation.
0.2 - 25 May 2008 : Correction and additions
0.3 - 13 July 2008: Add prototype and more description (wiki revision: 28)
<p>Looks interesting, is there a way to see the code already?</p>
<p>Also, do you think it would be possible to broaden the scope and use Zend_Image_Barcode_Writer to be able to add Zend_Image_Barcode_Reader later on? Just food for thoughts.</p>
<p>On your test page, you compare to the PEAR class - somehow the image (generated by the PEAR class) doesn't load though. This is more of personal, how is your class different from the PEAR class? Where do you see the advantages of using this code vs. the PEAR code (except from PHP5 and that it's part of the ZendFramework "package").</p>
<p>I don't have any SVN but I put a view of the current code on <a href="http://mikaelkael.fr/barcode/">the same page as the examples</a>.</p>
<p>I thought of no reader for the moment. What do you think? You provide an image to the reader and it returns the value of the barcode?</p>
<p>I have no problem on my local server with PEAR (code39), but effectively I will search.</p>
<p>I realize this code to accept more than the common barcode (code39, code128, interleaved 2 of 5). For example: Kix ("Royal Dutch TPG Post KIX 4-State Barcode") or Postnet ("United States Postal Service Postnet"). Extending the Abstract class must be as easy as possible, just a translation from the coding map (or charset) to an array. I handle exceptions with image error which is a particular barcode. And finally, you can provide an existing image (for example a logo with a blank space) and retrieve the image with the barcode inside. </p>
<p>Well, I think reading would be sweet. <ac:emoticon ac:name="smile" /></p>
<p>I am not sure how to do it on Windows for example, since a *_Reader would have to interface OCR tools I guess, but I am sure it's doable on Linux/Unix. I don't know much about dependencies on external tools/libs and the Zend Framework, maybe your Zend liason could enlighten us.</p>
<ac:macro ac:name="note"><ac:parameter ac:name="title">Zend Comments</ac:parameter><ac:rich-text-body>
<p>This proposal is approved for incubator development, provided that the following issues are addressed:</p>
<ul>
<li>That would be good to think about providing vector graphics drawing API to have possibility to draw barcodes into vector formats and make it suitable for Zend_Pdf component</li>
</ul>
</ac:rich-text-body></ac:macro>
<p>The component couldn't be provide as is. I have some rework to do. I need more informations on Zend_Image proposal and Zend_Pdf (2.0 evolution) to modify structure of the my code to respect Alex's comments.</p>
<p>I prefer working on my documentation proposal for 1.8.</p>
<p>The component has been rewritten according to Alex's comment. The component is divided in BarcodeObjects and Renderers. There are 2 renderer: Image and Pdf.</p>
<p>The new (and old one) component can be retrieve at svn://mikaelkael.dyndns.org/barcode</p>
<p>Unfortunatly, there are neither documentation nor tests for the moment thus the component couldn't be included in library.</p>
<p>Is the ability to render 2D barcodes in the future possible with the current implementation? Is there anything that should change in the current implementation to prevent BC breaks in the future when 2D barcodes will be implemented?</p>
<p>For instance, the concept of a bar height, bar thick width, bar thin width, or even a "bar" for that matter, are specific to linear barcodes only.</p>
<p>That's exactly why the component is always in incubation. I will commit the current component with all associated tests before the end of the week. Before any promotion to trunk, I want to have at least one 2D barcode adapter (typically QRCode or Datamatrix).</p>
<p>As I know, I can add 2D barcode without BC breaks.</p>
12 Comments
comments.show.hideMay 14, 2008
Wil Sinclair
<p>What needs to be done on this proposal before moving it on to community review?</p>
<p>,Wil</p>
Jul 13, 2008
Till Klampaeckel
<p>Looks interesting, is there a way to see the code already?</p>
<p>Also, do you think it would be possible to broaden the scope and use Zend_Image_Barcode_Writer to be able to add Zend_Image_Barcode_Reader later on? Just food for thoughts.</p>
<p>On your test page, you compare to the PEAR class - somehow the image (generated by the PEAR class) doesn't load though. This is more of personal, how is your class different from the PEAR class? Where do you see the advantages of using this code vs. the PEAR code (except from PHP5 and that it's part of the ZendFramework "package").</p>
<p>Thanks!</p>
Jul 14, 2008
Mickael Perraud
<p>Hi,</p>
<p>I don't have any SVN but I put a view of the current code on <a href="http://mikaelkael.fr/barcode/">the same page as the examples</a>.</p>
<p>I thought of no reader for the moment. What do you think? You provide an image to the reader and it returns the value of the barcode?</p>
<p>I have no problem on my local server with PEAR (code39), but effectively I will search.</p>
<p>I realize this code to accept more than the common barcode (code39, code128, interleaved 2 of 5). For example: Kix ("Royal Dutch TPG Post KIX 4-State Barcode") or Postnet ("United States Postal Service Postnet"). Extending the Abstract class must be as easy as possible, just a translation from the coding map (or charset) to an array. I handle exceptions with image error which is a particular barcode. And finally, you can provide an existing image (for example a logo with a blank space) and retrieve the image with the barcode inside. </p>
<p>Thanks</p>
Jul 14, 2008
Till Klampaeckel
<p>Well, I think reading would be sweet. <ac:emoticon ac:name="smile" /></p>
<p>I am not sure how to do it on Windows for example, since a *_Reader would have to interface OCR tools I guess, but I am sure it's doable on Linux/Unix. I don't know much about dependencies on external tools/libs and the Zend Framework, maybe your Zend liason could enlighten us.</p>
Oct 29, 2008
Alexander Veremyev
<ac:macro ac:name="note"><ac:parameter ac:name="title">Zend Comments</ac:parameter><ac:rich-text-body>
<p>This proposal is approved for incubator development, provided that the following issues are addressed:</p>
<ul>
<li>That would be good to think about providing vector graphics drawing API to have possibility to draw barcodes into vector formats and make it suitable for Zend_Pdf component</li>
</ul>
</ac:rich-text-body></ac:macro>
Mar 18, 2009
Wil Sinclair
<p>Do you guys plan to finish this for inclusion in 1.8?</p>
Apr 06, 2009
Mickael Perraud
<p>The component couldn't be provide as is. I have some rework to do. I need more informations on Zend_Image proposal and Zend_Pdf (2.0 evolution) to modify structure of the my code to respect Alex's comments.</p>
<p>I prefer working on my documentation proposal for 1.8.</p>
Aug 23, 2009
Mickael Perraud
<p>The component has been rewritten according to Alex's comment. The component is divided in BarcodeObjects and Renderers. There are 2 renderer: Image and Pdf.</p>
<p>The new (and old one) component can be retrieve at svn://mikaelkael.dyndns.org/barcode</p>
<p>Unfortunatly, there are neither documentation nor tests for the moment thus the component couldn't be included in library.</p>
Nov 05, 2009
Konr Ness
<p>Is the ability to render 2D barcodes in the future possible with the current implementation? Is there anything that should change in the current implementation to prevent BC breaks in the future when 2D barcodes will be implemented?</p>
<p>For instance, the concept of a bar height, bar thick width, bar thin width, or even a "bar" for that matter, are specific to linear barcodes only.</p>
<p>More info:
<a class="external-link" href="http://code.google.com/apis/chart/types.html#qrcodes">http://code.google.com/apis/chart/types.html#qrcodes</a>
<a class="external-link" href="http://en.wikipedia.org/wiki/Barcode#Matrix_.282D.29_barcodes">http://en.wikipedia.org/wiki/Barcode#Matrix_.282D.29_barcodes</a>
<a class="external-link" href="http://en.wikipedia.org/wiki/Semacode">http://en.wikipedia.org/wiki/Semacode</a>
<a class="external-link" href="http://en.wikipedia.org/wiki/High_Capacity_Color_Barcode">http://en.wikipedia.org/wiki/High_Capacity_Color_Barcode</a></p>
Nov 11, 2009
Mickael Perraud
<p>That's exactly why the component is always in incubation. I will commit the current component with all associated tests before the end of the week. Before any promotion to trunk, I want to have at least one 2D barcode adapter (typically QRCode or Datamatrix).</p>
<p>As I know, I can add 2D barcode without BC breaks.</p>
<p>There is also 'circular' code (<a class="external-link" href="http://en.wikipedia.org/wiki/MaxiCode">http://en.wikipedia.org/wiki/MaxiCode</a> or <a class="external-link" href="http://en.wikipedia.org/wiki/ShotCode">http://en.wikipedia.org/wiki/ShotCode</a>).</p>
Oct 06, 2010
Ota Mares
<p>Are there any news on the 2d barcodes? (preferably datamatrix)</p>
Oct 07, 2010
Mickael Perraud
<p>It's in progress but only for ZF2</p>