Skip to content

perf(barcode): use elaphe library to generate barcodes #90

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

Open
wants to merge 3 commits into
base: 8.0
Choose a base branch
from

Conversation

fedexin40
Copy link

elaphe gives us the ability to use a lot of barcode types that's why this is a proposal of using it
instead of the others libraries

elaphe gives us the ability to use a lot of barcode types that's why we are proposing using it
instead of the others libraries
@fedexin40 fedexin40 changed the title perf(barcode): use a better python library to generate barcodes perf(barcode): use elaphe library to generate barcodes Aug 23, 2016
@lukebranch
Copy link

lukebranch commented Aug 24, 2016

@fedexin40 ,

This looks like it would be a great addition to the Aeroo reports toolkit, nice work!

I'd also suggest opening a PR against the current (unofficial) version 9 fork here as well:

https://github.com/Yenthe666/Aeroo

as i'm sure @Yenthe666 would like to take a look as well.

@sraps , if you have time would you mind taking a look at this PR? It is quite a small PR to review and It would open up a huge range of other barcode options including the list you see here (Features section):

http://bwipp.terryburton.co.uk/

You can find an online demo here:

http://the-burtons.xyz/barcode-generator/

@sraps
Copy link
Contributor

sraps commented Aug 24, 2016

Hi, folks!
Yes, I have been looking for a decent library to enhance bar-coding functionality in Aeroo. I was more looking for a vector oriented enhancement to enhance quality. Even started to prototype EAN 13 vector library, but due to lack of funding, it stalled. Though it looked promising because bar-codes then would be scalable, retaining perfect quality.

I will take a look and will merge PR, as soon as possible.

@lukebranch
Copy link

lukebranch commented Aug 24, 2016

@sraps ,

Excellent! Yes, the option for vector barcodes would be ideal I agree, although I believe elaphe supports EPS by default and then a conversion (using PIL) to non-vector formats.

I haven't done much research into the library yet, however being able to throw a vector barcode onto a PDF report from Aeroo would be very useful indeed, as it opens up a huge range of possibilities.

@lukebranch
Copy link

lukebranch commented Aug 24, 2016

@sraps ,

I've just checked using the online demo and output is indeed possible in vector (EPS format) if required.

In order to take a look just create a demo EAN13 barcode for example, and then find the URL, mine was:

tmp/1d5923a6285f427d26e44d0bc343485c854e8cc0/barcode.png

and add this to the complete URL for example:

http://the-burtons.xyz/barcode-generator/tmp/1d5923a6285f427d26e44d0bc343485c854e8cc0/barcode.png

To take a look at the vector output just change the file format to .eps like this:

http://the-burtons.xyz/barcode-generator/tmp/1d5923a6285f427d26e44d0bc343485c854e8cc0/barcode.eps

I've opened this in illustrator and it's definitely a vector output.

The official repo is here if you're interested:

https://github.com/whosaysni/elaphe

@sraps
Copy link
Contributor

sraps commented Aug 24, 2016

IMHO, there it could be done without saving to disc. In the worst scenario, it might need to overload some methods in the elaphe library.

federico added 2 commits August 24, 2016 12:09
add elaphe in __openerp__.py file as external python dependency
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.

3 participants