mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[IMP] Add missing tests for graphics ZPL2 feature
This commit is contained in:
committed by
Lois Rilo
parent
2b02938cd8
commit
15d8bf5100
@@ -121,8 +121,9 @@ class PrintingLabelZpl2(models.Model):
|
||||
zpl2.ARG_ROUNDING: component.rounding,
|
||||
})
|
||||
elif component.component_type == 'graphic':
|
||||
image = component.graphic_image or data
|
||||
pil_image = Image.open(io.BytesIO(
|
||||
base64.b64decode(component.graphic_image or data)))
|
||||
base64.b64decode(image)))
|
||||
if component.width and component.height:
|
||||
pil_image = pil_image.resize(
|
||||
(component.width, component.height))
|
||||
|
||||
Reference in New Issue
Block a user