Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0048764
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajoralways2022-03-10 16:472022-03-30 12:13
ReporterjmelinView Statuspublic 
Assigned Tofermin_gascon 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0048764: JIRA 2750 - base64 image are printed widder than linked image

DescriptionWhen printing using WebUSB and setting a base64 image in the template
Then the image is widder

Steps To ReproduceUsing 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.
TagsNo tags attached.
Attached Filesjpg file icon IMG_20220310_165444.jpg [^] (4,884,312 bytes) 2022-03-11 09:42
jpg file icon IMG_20220310_165543.jpg [^] (4,893,520 bytes) 2022-03-11 09:42
? file icon logo_Flunch.bmp [^] (1,006 bytes) 2022-03-11 09:43


xml file icon printreceipt.xml [^] (23,103 bytes) 2022-03-11 09:43
jpeg file icon processed-206f79d6-0dbb-40a5-8ffe-d7c3ed55c1b5_Vi33Io1f.jpeg [^] (227,461 bytes) 2022-03-14 15:27


? file icon DitesNousCritiz.bmp [^] (3,062 bytes) 2022-03-14 15:28

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0135697)
jmelin (reporter)
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 (developer)
2022-03-29 17:49

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/755 [^]
(0136155)
hgbot (developer)
2022-03-30 12:13

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/755 [^]
(0136156)
hgbot (developer)
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
---

- Issue History
Date Modified Username Field Change
2022-03-10 16:47 jmelin New Issue
2022-03-10 16:47 jmelin Assigned To => Retail
2022-03-10 16:47 jmelin Triggers an Emergency Pack => No
2022-03-11 09:36 guilleaer Assigned To Retail => Triage Platform Conn
2022-03-11 09:36 guilleaer Status new => acknowledged
2022-03-11 09:42 jmelin File Added: IMG_20220310_165444.jpg
2022-03-11 09:42 jmelin File Added: IMG_20220310_165543.jpg
2022-03-11 09:43 jmelin File Added: logo_Flunch.bmp
2022-03-11 09:43 jmelin File Added: printreceipt.xml
2022-03-14 15:27 jmelin File Added: processed-206f79d6-0dbb-40a5-8ffe-d7c3ed55c1b5_Vi33Io1f.jpeg
2022-03-14 15:28 jmelin Note Added: 0135697
2022-03-14 15:28 jmelin File Added: DitesNousCritiz.bmp
2022-03-14 15:29 jmelin Note Edited: 0135697 View Revisions
2022-03-22 12:59 adrianromero Assigned To Triage Platform Conn => fermin_gascon
2022-03-22 12:59 adrianromero Status acknowledged => scheduled
2022-03-29 17:49 hgbot Note Added: 0136139
2022-03-30 12:13 hgbot Resolution open => fixed
2022-03-30 12:13 hgbot Status scheduled => closed
2022-03-30 12:13 hgbot Note Added: 0136155
2022-03-30 12:13 hgbot Fixed in Version => RR22Q2
2022-03-30 12:13 hgbot Note Added: 0136156


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker