diff --git a/src/escpos.gleam b/src/escpos.gleam index 42abb62..302f98d 100644 --- a/src/escpos.gleam +++ b/src/escpos.gleam @@ -166,7 +166,7 @@ pub fn image(cb: CommandBuffer, image: image.PrintableImage) -> CommandBuffer { } /// Prints a monochrome image prepared by the `image` module. This is using an older -/// method to print images, useful for some printers that does not understand graphic buffer +/// method to print images, useful for some printers that do not understand graphic buffer /// commands. /// /// ## Example diff --git a/src/escpos/document.gleam b/src/escpos/document.gleam index bdda520..4f00c48 100644 --- a/src/escpos/document.gleam +++ b/src/escpos/document.gleam @@ -185,7 +185,9 @@ pub fn image(image: image.PrintableImage) -> Command { Image(image) } -/// Prints an image. +/// Prints a monochrome image prepared by the `image` module. This is using an older +/// method to print images, useful for some printers that do not understand graphic buffer +/// commands. /// /// ## Example /// diff --git a/src/escpos/protocol.gleam b/src/escpos/protocol.gleam index 7e3ae7d..5156430 100644 --- a/src/escpos/protocol.gleam +++ b/src/escpos/protocol.gleam @@ -261,13 +261,9 @@ pub fn image_to_raster( let y_high = height / 256 << - // GS v 0 m xL xH yL yH d1..dk - 29, - // GS - 118, - // 'v' - 48, - // '0' + gs, + "v", + "0", 0, // m = 0 (normal mode) x_low,