Hi,
I'm having trouble printing a PNG image on an EPSON TM-T88V printer.
The following error appears, even though the file exists and displays correctly in the browser when accessed at:
http://localhost/pos/assets/img/header-logo.png.
Error Message:
Error: Cannot parse (FILE)
http://localhost/pos/assets/img/header-logo.png into a raw IMAGE command: Server returned HTTP response code: 403 for URL:
http://localhost/pos/assets/img/header-logo.png at WebSocket.<anonymous> (qz-tray.min.js?v=415105231:1:7508)
I suspect the issue is related to the following function:
function PrintCompanyLogo() {
var opts = {
language: 'ESCPOS',
dotDensity: 'double',
};
return [{ type: 'raw', format: 'image', flavor: 'file', data: '/pos/assets/img/header-logo.png', options: opts }];
}
This script is working fine on multiple machines, but is failing on one specific machine (Windows 10 Pro).
I've already checked permissions, security settings and windows defender. All seems to be fine and I'm running out of ideas.
Any suggestions would be greatly appreciated!
Thanks in advance.