From 64748cca69c35fc1818574f6064ccee737f95edf Mon Sep 17 00:00:00 2001 From: hata6502 <7702653+hata6502@users.noreply.github.com> Date: Sat, 25 Oct 2025 19:50:12 +0900 Subject: [PATCH 1/2] Add GIF format to document --- docs/image-format.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/image-format.md b/docs/image-format.md index 8f72f8d1a..f1fe23810 100644 --- a/docs/image-format.md +++ b/docs/image-format.md @@ -2,7 +2,7 @@ The main Tesseract.js functions (ex. recognize, detect) take an `image` parameter. The image formats and data types supported are listed below. -Support Image Formats: **bmp, jpg, png, pbm, webp** +Support Image Formats: **bmp, jpg, png, pbm, webp, gif** For browser and Node, supported data types are: - string with base64 encoded image (fits `data:image\/([a-zA-Z]*);base64,([^"]*)` regexp) From 20b8c28a83e80368439eef2f74b1fcecd11a1b5c Mon Sep 17 00:00:00 2001 From: Balearica Date: Sat, 25 Oct 2025 10:13:07 -0700 Subject: [PATCH 2/2] Clarified change --- docs/image-format.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/image-format.md b/docs/image-format.md index f1fe23810..b647ed420 100644 --- a/docs/image-format.md +++ b/docs/image-format.md @@ -2,7 +2,7 @@ The main Tesseract.js functions (ex. recognize, detect) take an `image` parameter. The image formats and data types supported are listed below. -Support Image Formats: **bmp, jpg, png, pbm, webp, gif** +Support Image Formats: **bmp, jpg, png, pbm, webp, gif \[non-animated\]**. For browser and Node, supported data types are: - string with base64 encoded image (fits `data:image\/([a-zA-Z]*);base64,([^"]*)` regexp) @@ -15,4 +15,4 @@ For browser only, supported data types are: For Node only, supported data types are: - string containing a path to local image -Note: images must be a supported image format **and** a supported data type. For example, a buffer containing a png image is supported. A buffer containing raw pixel data is not supported. \ No newline at end of file +Note: images must be a supported image format **and** a supported data type. For example, a buffer containing a png image is supported. A buffer containing raw pixel data is not supported.