-
Notifications
You must be signed in to change notification settings - Fork 150
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
base: 8.0
Are you sure you want to change the base?
Conversation
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
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: |
Hi, folks! I will take a look and will merge PR, as soon as possible. |
@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. |
@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: |
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. |
…brary is replacing the functio
add elaphe in __openerp__.py file as external python dependency
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