web_label_to_image 1.0.3 copy "web_label_to_image: ^1.0.3" to clipboard
web_label_to_image: ^1.0.3 copied to clipboard

A Flutter plugin to capture a web URL as a PNG image sized for thermal receipt printers (e.g., 384/576 dots) using platform WebView rendering.

web_uri_to_image #

Render a web URL to a PNG image sized for thermal receipt printers (ESC/POS).
Designed for stable printing: control width (in printer dots), scale, and render delay.

Why this package? #

Thermal printers expect a fixed pixel width (dots/line). Typical widths:

  • 58mm receipts: 384 dots
  • 80mm receipts: 576 dots

This plugin renders a web page at an exact width and returns PNG bytes you can feed into your ESC/POS image command pipeline.


Features #

  • Capture URLPNG bytes (Uint8List)
  • Specify target width in printer dots (e.g., 384/576)
  • Adjustable scale, delayMs, and timeoutMs
  • Optional transparent background (useful for some layouts)

How to use #

EasyLoading.show( status: 'Loading...', maskType: EasyLoadingMaskType.black, dismissOnTap: false, );

List images = <String>[];
String uri = '';
images = await WebLabelToImage.convert(
  uri: uri,
  duration: 1000,
  scale: 1,
  paperTypeName: "paperang", // paperang_lan
  orderIds: [//orderIds],
);

EasyLoading.dismiss();

// นำทางต่อ

Installation #

Add dependency:

flutter pub add web_uri_to_image
0
likes
145
points
265
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to capture a web URL as a PNG image sized for thermal receipt printers (e.g., 384/576 dots) using platform WebView rendering.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

dio, easy_logger, flutter, image, path, path_provider, plugin_platform_interface, puppeteer

More

Packages that depend on web_label_to_image

Packages that implement web_label_to_image