From a586f033766167c0a77ec7eb44c2991c94c23a86 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Fri, 11 Apr 2025 22:20:37 +0800 Subject: [PATCH] scanner: Fix frame image_data_url --- scanner/pages/frame/frame.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scanner/pages/frame/frame.js b/scanner/pages/frame/frame.js index 825cac0..df27d65 100644 --- a/scanner/pages/frame/frame.js +++ b/scanner/pages/frame/frame.js @@ -122,7 +122,10 @@ Page({ uploading: true, }); const url = `https://themblem.com/api/v5/frame/${session_id}/${frame_id}`; - const image_data_url = data_url_from_frame(res.width, res.height, res.data); + var uca1 = new Uint8ClampedArray(res.data); + var uca = new Uint8ClampedArray(uca1); + + const image_data_url = data_url_from_frame(res.width, res.height, uca); wx.request({ url, method: "POST",