Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Does someone already used image_resize_image (tools/image.py) in order print some picture inside some pdf? (Quotation for exemple?).
I am using it and I am not so satisfy about the quality of the picture. The image_resize_image makes my picture blurred.
I would like to know some tips to have better quality.
Thank you a lot,
Here my code:
if base64_source: image_stream = io.BytesIO(base64_source.decode(encoding)) image = Image.open(image_stream) if image.size > image.size : return_dict[shape_name] = image_resize_image_medium(base64_source, size=(160,None),avoid_if_small=avoid_resize_medium) else: return_dict[shape_name] = image_resize_image_medium(base64_source, size=(None,160),avoid_if_small=avoid_resize_medium)
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/26/15, 5:37 AM|
|Seen: 1171 times|
|Last updated: 8/2/16, 4:07 AM|