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
Renderer options are overriden #16
Comments
I have pushed a fix for this. See #17 |
Hello. Thanks for your answer. I generate barcodes via Twig. Like this: Your push didn't solve that problem. Barcodes is still 2233x649 size. Size is dynamic if I remove 50 and 51 lines and this is what i want to get. Is here any other way to make dynamic size barcodes? |
I fixed the overwritten renderOptions eg. {{ mopa_barcode_url('code128', '123456789', {'barcodeOptions': {}, 'rendererOptions': {width:392, height:62}}) }} I didn't touch anything else. |
I would like to have dynamic size images. I don't want to set an image size in rendererOptions. |
I'm not the maintainer of this bundle, I just forked it and made a pull request :) |
I found the solution without hardcode: 'rendererOptions': {height:0,width:0} |
Hello. Generated barcodes are very big. I found an issue, that in Model/BarcodeService.php
at line 50 here is hardcoded options. It works perfectly, when i comment this line.
Could you fix this bundle?
https://github.com/phiamo/MopaBarcodeBundle/blob/master/Model/BarcodeService.php
Line 50: $rendererOptions = array('width' => 2233, 'height'=>649);
The text was updated successfully, but these errors were encountered: