I'm able to print out my images on receipt paper, but the problem I faced is that the image is line by line which is a problem.
Below is my code
final ByteData data = await rootBundle.load('assets/logo1.png');
final Uint8List buffer= data.buffer.asUint8List();
final image = decodeImage(buffer);
bytes += generator.image(image);