From 8914bffe8527dc4348b1436281a89caaa5a88556 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 8 Aug 2022 18:24:03 -0700 Subject: [PATCH] debug --- package.json | 2 +- packages/client/src/components/media-caption.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 61b75528a8..d5873167eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "misskey", - "version": "12.118.1-calc.rc.4.10", + "version": "12.118.1-calc.rc.4.11", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/components/media-caption.vue b/packages/client/src/components/media-caption.vue index 7d6ac36b4b..2e6308cebb 100644 --- a/packages/client/src/components/media-caption.vue +++ b/packages/client/src/components/media-caption.vue @@ -154,8 +154,10 @@ export default defineComponent({ }); }; const img = document.getElementById('imgtocaption') as HTMLImageElement; + const b64 = getBase64FromUrl(img.src); + console.log(b64); Tesseract.recognize( - getBase64FromUrl(img.src), + b64, 'eng', { logger: m => console.log(m) }, ).then(({ data: { text } }) => {