From 95d49daa23400572aa6d7ecda4218f43729899ec Mon Sep 17 00:00:00 2001 From: Joscha Date: Fri, 29 Mar 2024 20:39:21 +0100 Subject: [PATCH] Make video play on iOS --- showbits-thermal-printer/src/drawer.rs | 5 +++++ showbits-thermal-printer/static/photo.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/showbits-thermal-printer/src/drawer.rs b/showbits-thermal-printer/src/drawer.rs index e00308f..de7b38f 100644 --- a/showbits-thermal-printer/src/drawer.rs +++ b/showbits-thermal-printer/src/drawer.rs @@ -165,6 +165,11 @@ impl Drawer { } fn on_photo(&mut self, mut image: RgbaImage, title: String) -> anyhow::Result<()> { + println!( + "Printing photo {title:?} ({}x{})", + image.width(), + image.height() + ); let mut tree = Tree::::new(WHITE); for pixel in image.pixels_mut() { diff --git a/showbits-thermal-printer/static/photo.html b/showbits-thermal-printer/static/photo.html index afcae97..da08994 100644 --- a/showbits-thermal-printer/static/photo.html +++ b/showbits-thermal-printer/static/photo.html @@ -147,7 +147,7 @@ - +