Openbravo Issue Tracking System - POS2
View Issue Details
0048764POS2POSpublic2022-03-10 16:472022-03-30 12:13
jmelin 
fermin_gascon 
urgentmajoralways
closedfixed 
5
 
 
No
0048764: JIRA 2750 - base64 image are printed widder than linked image
When printing using WebUSB and setting a base64 image in the template
Then the image is widder

Using a POS with an HP A799.

In BO, Select a till and choose to print using HW
Connect to the till and print a receipt with a logo that is inside the img folder of the HWM

Select the same till and switch to WebUSB mode.
Modify the template to print the base64 result of the previous image.
Connect to the till (refresh if necessary) and print the same order
After printing, you can see the image is widder than the previous one.
No tags attached.
jpg IMG_20220310_165444.jpg (4,884,312) 2022-03-11 09:42
https://issues.openbravo.com/file_download.php?file_id=16730&type=bug
jpg IMG_20220310_165543.jpg (4,893,520) 2022-03-11 09:42
https://issues.openbravo.com/file_download.php?file_id=16731&type=bug
? logo_Flunch.bmp (1,006) 2022-03-11 09:43
https://issues.openbravo.com/file_download.php?file_id=16732&type=bug
bmp

xml printreceipt.xml (23,103) 2022-03-11 09:43
https://issues.openbravo.com/file_download.php?file_id=16733&type=bug
jpeg processed-206f79d6-0dbb-40a5-8ffe-d7c3ed55c1b5_Vi33Io1f.jpeg (227,461) 2022-03-14 15:27
https://issues.openbravo.com/file_download.php?file_id=16747&type=bug
jpeg

? DitesNousCritiz.bmp (3,062) 2022-03-14 15:28
https://issues.openbravo.com/file_download.php?file_id=16748&type=bug
bmp
Issue History
2022-03-10 16:47jmelinNew Issue
2022-03-10 16:47jmelinAssigned To => Retail
2022-03-10 16:47jmelinTriggers an Emergency Pack => No
2022-03-11 09:36guilleaerAssigned ToRetail => Triage Platform Conn
2022-03-11 09:36guilleaerStatusnew => acknowledged
2022-03-11 09:42jmelinFile Added: IMG_20220310_165444.jpg
2022-03-11 09:42jmelinFile Added: IMG_20220310_165543.jpg
2022-03-11 09:43jmelinFile Added: logo_Flunch.bmp
2022-03-11 09:43jmelinFile Added: printreceipt.xml
2022-03-14 15:27jmelinFile Added: processed-206f79d6-0dbb-40a5-8ffe-d7c3ed55c1b5_Vi33Io1f.jpeg
2022-03-14 15:28jmelinNote Added: 0135697
2022-03-14 15:28jmelinFile Added: DitesNousCritiz.bmp
2022-03-14 15:29jmelinNote Edited: 0135697bug_revision_view_page.php?bugnote_id=0135697#r23775
2022-03-22 12:59adrianromeroAssigned ToTriage Platform Conn => fermin_gascon
2022-03-22 12:59adrianromeroStatusacknowledged => scheduled
2022-03-29 17:49hgbotNote Added: 0136139
2022-03-30 12:13hgbotResolutionopen => fixed
2022-03-30 12:13hgbotStatusscheduled => closed
2022-03-30 12:13hgbotNote Added: 0136155
2022-03-30 12:13hgbotFixed in Version => RR22Q2
2022-03-30 12:13hgbotNote Added: 0136156

Notes
(0135697)
jmelin   
2022-03-14 15:28   
(edited on: 2022-03-14 15:29)
In this image "processed-206f79d6-0dbb-40a5-8ffe-d7c3ed55c1b5_Vi33Io1f.jpeg", the first image is base64 encoded and the second is linked to “https://agapes-test.cloud.openbravo.com/openbravo/utility/ShowImageLogo?logo=yourcompanybig [^]”

original image "DitesNousCritiz.bmp" is (150px x 150px)

(0136139)
hgbot   
2022-03-29 17:49   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/755 [^]
(0136155)
hgbot   
2022-03-30 12:13   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/755 [^]
(0136156)
hgbot   
2022-03-30 12:13   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: a1f064af674a5dca1ce76b9cee8ab87c8bf80e56
Author: Fermín Gascón <fermin.gascon@openbravo.com>
Date: 30-03-2022 10:13:39
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/a1f064af674a5dca1ce76b9cee8ab87c8bf80e56 [^]

Fixed ISSUE-48764: Corrected format of printed images on hpa799
* Apply an aspect ratio factor to the image of 0.7

---
M web/org.openbravo.retail.posterminal/app/webprinter/escpos.js
M web/org.openbravo.retail.posterminal/app/webprinter/usbprinters/hpa799.js
M web/org.openbravo.retail.posterminal/app/webprinter/webprinter.js
---