-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Generating multiple barcodes without reopening the gs subprocess? #145
Comments
Hi Dan I am afraid I can't really help with this. I don't actively use treepoem any more. Would you like to become a maintainer? Adam |
Ah, too bad! Yes, that would be useful… though it also means I'll have to figure out all the problems on my own 😂 |
I've invited you as a collaborator on GitHub. If you don't mind I'll still keep doing maintenance work like updating the requirements and doing releases, but other than that feel free to make code changes, I'll try make myself available to review PR's. But yes enjoy trying to make the optimization of a single ghostscript, it would be a big performance boost. |
I'm more actively maintaining treepoem now. I just merged #499 which removes using the PIL EPS plugin to run Ghostscript, so now treepoem is the only thing running Ghostscript. From here I think we may be able to move to a single process model. There may be some difficulty as the bounding box template and rendering postscript templates use different headers. |
I'm trying to figure out whether there's a reasonable way to generate multiple barcode images without reopening the
gs
subprocess and reinterpreting the BWIPP source — which are rather "heavyweight" and slow operations.It seems like this should be eminently possible. See below:
./multi_barcode.py
(run asmulti_barcode.py "bc1" "bc2" ...
.Problems I'm having:
eps2write
driver doesn't like switching output files.The text was updated successfully, but these errors were encountered: