From b0f18287239c3dba6165ecc986290b529512ca58 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 19 Jul 2025 22:55:10 +0200 Subject: [PATCH] Add rotate checkbox for image --- .../src/components/CDocumentImage.vue | 3 +++ showbits-thermal-printer/src/documents/image/mod.rs | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/showbits-thermal-printer-ui/src/components/CDocumentImage.vue b/showbits-thermal-printer-ui/src/components/CDocumentImage.vue index 1419ff5..ca9e4cd 100644 --- a/showbits-thermal-printer-ui/src/components/CDocumentImage.vue +++ b/showbits-thermal-printer-ui/src/components/CDocumentImage.vue @@ -10,6 +10,7 @@ const file = ref(); const title = ref(""); const caption = ref(""); const algo = ref("stucki"); +const rotate = ref(false); const bright = ref(true); const seamless = ref(false); const feed = ref(true); @@ -33,6 +34,7 @@ function onFormSubmit() { if (title.value) data.append("title", title.value); if (caption.value) data.append("caption", caption.value); data.append("algo", algo.value); + data.append("rotate", String(rotate.value)); data.append("bright", String(bright.value)); data.append("seamless", String(seamless.value)); data.append("feed", String(feed.value)); @@ -89,6 +91,7 @@ function onImageChange() {
+