Skip to content

Conversation

@erikn69
Copy link

@erikn69 erikn69 commented Oct 6, 2025

I'm testing receipt-with-qrcode.bin, but I don't know if this is a BUG, ​​or this file has problems with the image

Before
image

After
image

@gilbertfl
Copy link
Owner

That's weird, that image is transparent so the background should not be black.

Before merging I will investigate to make sure it's not a rendering bug.

@erikn69
Copy link
Author

erikn69 commented Nov 7, 2025

I've tried this with all my images and it works for me. Is this a bug that's always been there, or is it something in my environment?

that image is transparent so the background should not be black.

It's in negative, not with a black background.

@gilbertfl
Copy link
Owner

I did a quick test and it shows black-on-white in Firefox, Chrome and Edge in Windows 11.

I have no idea what is different in your setup, but the problem seems to be in rendering the HTML, not in creating it from ESC/POS source.

@erikn69
Copy link
Author

erikn69 commented Nov 7, 2025

the problem seems to be in rendering the HTML, not in creating it from ESC/POS source.

  • Yes, but I don't think it has anything to do with the browsers. I've tried it on Windows 10 and Ubuntu and it works fine with this change
  • I noticed this problem when making the GD version of this GD fallback when no Imagick ext #13

What's the result you get, negative or normal version?

Did you try with receipt-with-qrcode.bin or with other images? Because it's specific to SelectBitImageModeCmd.php?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants