andrey-ushakov / esc_pos_utils

Basic Flutter/Dart classes for ESC/POS printing
BSD 3-Clause "New" or "Revised" License
140 stars 303 forks source link

I can't print images #125

Open santosbj opened 8 months ago

santosbj commented 8 months ago

Hi, i have a problem printing images,

image

Even, after reducing quality, the result is the same.

This is my code.

image

Any idea?...

Thanks for your help.

Abubakarshaikh commented 8 months ago

What is the Bluetooth Version of your thermal printer device?

santosbj commented 8 months ago

Hi, the problem is not Bluetooth device, it's sdk!. When use: sdk: '>=2.12.0 <3.0.0' Everything works great, but, when use:

sdk: '>=2.19.3 <3.0.0'

It happens.

santosbj commented 8 months ago

By now, I got solution, using a fork of your project:

https://pub.dev/packages/flutter_esc_pos_utils

islamroshan commented 8 months ago

Hello Everyone!

I am also struggling for couple of days to fix this issue and after losing 2-3 printer rolls I still wasn't able to fix it.

if someone had a solution, please share. thanks

WhatsApp Image 2023-11-09 at 11 00 43 AM WhatsApp Image 2023-11-09 at 4 25 47 AM

Abubakarshaikh commented 7 months ago

Your printer should have Bluetooth 4.0 or support BLE.

islamroshan commented 7 months ago

The issue was resolved for me by downgrading the esc_pos_utils_plus package version to 2.0.1+6 in my pubspec.ymal file.

AhmedTawfiqM commented 6 months ago

@santosbj i use 2 packages to print an image flutter_esc_pos_utils: ^1.0.0 flutter_blue_plus: ^1.30.3

but problem is still that is decoded in Papers please tell me about how u solved the problem ? my email: ahmed.tawffiiq@gmail.com linkedin: https://www.linkedin.com/in/ahmed-tawfiiq/

Cannon99 commented 6 months ago

I solved this using https://pub.dev/packages/flutter_esc_pos_utils_v2.