From 4c167f556bd1ec233e139d5dead82832b6bf3e8d Mon Sep 17 00:00:00 2001 From: Abimael Martell <1450169+abimaelmartell@users.noreply.github.com> Date: Thu, 17 Sep 2026 10:44:28 -0700 Subject: [PATCH 1/2] feat(parse): accept raster image uploads The API OCRs PNG, JPEG, JPEG 2000, TIFF, GIF, BMP, WebP and AVIF uploads as one-page documents, so the parse command's extension allowlist and content-type hints now include them. --- src/commands/parse.ts | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/commands/parse.ts b/src/commands/parse.ts index 4aa832fd9f..8478e62dd9 100644 --- a/src/commands/parse.ts +++ b/src/commands/parse.ts @@ -3,7 +3,9 @@ * * Uploads a local file to the Firecrawl /v2/parse endpoint and returns the * parsed document in the requested format(s). Supported file types: - * .html, .htm, .pdf, .docx, .doc, .odt, .rtf, .xlsx, .xls + * .html, .htm, .pdf, .docx, .doc, .odt, .rtf, .xlsx, .xls, and raster + * images (.png, .jpg, .jpeg, .jp2, .tif, .tiff, .gif, .bmp, .webp, .avif), + * which the API OCRs as one-page documents. */ import * as fs from 'fs'; @@ -28,6 +30,17 @@ const SUPPORTED_EXTENSIONS = new Set([ '.rtf', '.xlsx', '.xls', + // Raster images, OCR'd by the API as one-page documents. + '.png', + '.jpg', + '.jpeg', + '.jp2', + '.tif', + '.tiff', + '.gif', + '.bmp', + '.webp', + '.avif', ]); /** @@ -45,6 +58,16 @@ const CONTENT_TYPE_BY_EXT: Record = { '.rtf': 'application/rtf', '.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', '.xls': 'application/vnd.ms-excel', + '.png': 'image/png', + '.jpg': 'image/jpeg', + '.jpeg': 'image/jpeg', + '.jp2': 'image/jp2', + '.tif': 'image/tiff', + '.tiff': 'image/tiff', + '.gif': 'image/gif', + '.bmp': 'image/bmp', + '.webp': 'image/webp', + '.avif': 'image/avif', }; function outputTiming( From f0741231b29ece05c43f1b63643cc347d391bf09 Mon Sep 17 00:00:00 2001 From: Abimael Martell <1450169+abimaelmartell@users.noreply.github.com> Date: Thu, 17 Sep 2026 10:59:57 -0700 Subject: [PATCH 2/2] docs(parse): list raster image formats in the parse help text --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ecb1ba8244..3af738504d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -894,7 +894,9 @@ Examples: $ firecrawl parse ./report.pdf -Q "What is the total revenue?" $ firecrawl parse ./report.pdf --json --pretty -o report.json -Supported file types: .html, .htm, .pdf, .docx, .doc, .odt, .rtf, .xlsx, .xls +Supported file types: .html, .htm, .pdf, .docx, .doc, .odt, .rtf, .xlsx, .xls, + and raster images (.png, .jpg, .jpeg, .jp2, .tif, .tiff, .gif, .bmp, .webp, .avif) + which are OCR'd as one-page documents Max upload size: 50 MB ` )