Images and OCR guide
Resize, crop, convert and compress images, and recognise text in images and scanned pages: options, limits and common errors.
How the image tools work
The image tools and OCR run in your browser. Images are decoded and re-encoded on your device and nothing is uploaded. The image tools are listed at /tools/images, and the combined editor at /images lets you crop, resize, apply effects and export several images in one place. Each entry gives the tool id, which is also its operation id in the API and its tool name in a workflow task. See the capability catalog for every option with its type.
PDF tools are described in PDF tools. The tools below are the ones with their own routes and API ids; the /images editor offers more controls in one place.
Shared limits and messages
| Limit | Value | Notes |
|---|---|---|
| Pixels per image | 100 megapixels (about 10000 by 10000) | A larger image is refused because a canvas could run out of memory. |
| Formats read | png, jpg, jpeg, webp, gif, bmp, avif | SVG and TIFF are not accepted by the registry tools. See Data types and file formats. |
| Metadata | Removed on re-encode | EXIF and location data are not carried into the output. |
| Adding a file | 1 GB per file | Refused with “NAME is over the 1 GB limit.”. |
Browser needs: a current Chrome, Edge, Firefox or Safari. These tools draw on a canvas; where OffscreenCanvas is missing, the work runs on the main thread instead of a worker. AVIF output is offered only when the browser can encode it. Everything stays on your device.
Image tools
Convert image
image-convert at /tools/images/convert. Converts images between JPG, PNG, WebP and, where the browser can encode it, AVIF. Also listed under /tools/convert.
Input and output. One or more images in (png, jpg, jpeg, webp, gif, bmp, avif); one image per input out. The file name keeps its stem; when the format stays the same “-converted” is added.
Options (names as used by the API and in workflows).
format: jpeg (default), png, webp, or avif when the browser supports AVIF encoding.quality: default 90.background: colour used for transparent areas when the output cannot be transparent (default #ffffff).
Limits. Images over 100 megapixels (about 10000 by 10000) are refused. Re-encoding removes metadata (EXIF, location). Animated GIFs keep only the first frame.
Messages you can see. “NAME: couldn't decode this image.” “Cancelled”
Open it. Open Convert image in the browser; files stay on your device.
API and workflow. Call it as image-convert from window.eeshgarg.run (see the API reference) or add it to a workflow as the image-convert step on the Workflow board.
Example. Convert a folder of PNG screenshots to WebP at quality 80.
Compress image
image-compress at /tools/images/compress. Shrinks images by lossy re-encoding, by quality or to a target file size, and can cap the pixel size.
Input and output. One or more images in; WebP or JPG out, named with “-compressed” added. If the result would not be smaller the original file is kept unchanged.
Options (names as used by the API and in workflows).
format: webp (default) or jpeg.mode: quality (default) or size.quality: default 75.targetKB: target size in KB for size mode (default 200).targetValue, targetUnit: the same target typed as a number and a unit (unit default KB).maxWidth, maxHeight: pixel limits; 0 means no limit.background: colour for transparent areas (default #ffffff).
Limits. Lossy re-encode to JPG or WebP; removes metadata. Images over 100 megapixels are refused.
Messages you can see. “Target size: … (the size you typed could not be read)” “NAME: couldn't decode this image.”
Open it. Open Compress image in the browser; files stay on your device.
API and workflow. Call it as image-compress from window.eeshgarg.run (see the API reference) or add it to a workflow as the image-compress step on the Workflow board.
Example. Size mode with 200 KB to fit an upload limit.
Resize image
image-resize at /tools/images/resize. Changes pixel dimensions by percent, to fit within a box, or to an exact size.
Input and output. One or more images in; one image per input out, named with the new size, for example photo-800x600.jpg.
Options (names as used by the API and in workflows).
mode: percent (default), fit (Fit within) or exact.percent: scale, default 50 (the slider runs 5 to 200).width, height: pixels (default empty).lock: keep the aspect ratio (default on).last: which side you edited last (w or h).format: same (default), jpeg, png or webp.quality: default 90.background: default #ffffff.
Limits. Fit only shrinks, never enlarges. Re-encoding removes metadata. The result may not exceed 100 megapixels.
Messages you can see. “NAME: WIDTH×HEIGHT is too large (limit 100 megapixels).” “NAME: couldn't decode this image.”
Open it. Open Resize image in the browser; files stay on your device.
API and workflow. Call it as image-resize from window.eeshgarg.run (see the API reference) or add it to a workflow as the image-resize step on the Workflow board.
Example. Fit within 1600 by 1600 to prepare photos for a website.
Crop image
image-crop at /tools/images/crop. Crops one or more images with a draggable box, free or at a fixed ratio.
Input and output. Images in; images out. The output keeps the input format (PNG, JPG, WebP); other formats become PNG.
Limits. Re-encoding removes metadata.
Messages you can see. “Nothing to crop.”
Open it. Open Crop image in the browser; files stay on your device.
API and workflow. Call it as image-crop from window.eeshgarg.run (see the API reference) or add it to a workflow as the image-crop step on the Workflow board.
Example. Crop a product photo to 1:1 for a listing.
Images and PDF
Images to PDF
images-to-pdf at /tools/convert/images-to-pdf. Builds a PDF from images, one page per image. Also listed under /tools/pdf and /tools/images.
Input and output. One or more images (JPEG, PNG, WebP, GIF, BMP, AVIF) in; one PDF out, or one PDF per image when split is on.
Options (names as used by the API and in workflows).
pageSize: fit (default, the page matches the image), a4 or letter.orientation: auto (default), portrait or landscape; used with a4 and letter.margin: none (default), small or large.fit: contain (default) or cover.split: one PDF per image (default off).smaller: re-encode to a smaller file (default off).
Limits. An image over 100 megapixels is refused. A single page is limited to 14,400 points on a side (the practical limit of PDF viewers).
Messages you can see. “Add at least one image.” “Image is too large to convert (over 100 megapixels).” “NAME: unsupported image format. Use JPEG, PNG, WebP, GIF, BMP or AVIF.” “NAME: not a readable JPEG.” “No images could be converted.”
Open it. Open Images to PDF in the browser; files stay on your device.
API and workflow. Call it as images-to-pdf from window.eeshgarg.run (see the API reference) or add it to a workflow as the images-to-pdf step on the Workflow board.
Example. Drop six phone photos of a receipt and download one six-page PDF.
PDF to images
pdf-to-images at /tools/convert/pdf-to-images. Turns PDF pages into pictures (render), or pulls out the pictures stored in the PDF (extract). Also listed under /tools/pdf and /tools/images.
Input and output. One PDF in; one image per page or picture out, named NAME-page-01.jpg and so on (zero-padded).
Options (names as used by the API and in workflows).
mode: render (default) or extract.format: jpg (default), png or webp.dpi: 72, 150 (default) or 300 in the tool.quality: default 90 (the slider runs 40 to 100).pages: page ranges; empty means all.
Limits. Render mode skips a page that would exceed 50 megapixels at the chosen dpi. Extract mode converts CMYK to RGB with a simple formula, merges soft masks into PNG where the browser can decode the JPEG, and skips Lab, DeviceN, CCITT and JBIG2 images; use Render for those.
Messages you can see. “Add a PDF.” “No extractable images found on the selected pages.” “Every selected page is over 50 megapixels at N dpi. Try a lower resolution.”
Open it. Open PDF to images in the browser; files stay on your device.
API and workflow. Call it as pdf-to-images from window.eeshgarg.run (see the API reference) or add it to a workflow as the pdf-to-images step on the Workflow board.
Example. Render pages 1-3 at 150 dpi as PNG for a slide.
More image tools
These tools are on the Images tools page. Each entry lists what the tool accepts and produces, its options, its limits and the browser features it needs. They run on your device and do not upload files.
Panorama Stitcher
- Tool id
panorama- What it does
- Join 2 to 6 overlapping photos, taken left to right, into one wide panorama.
- Open it
/more/panorama- Input
- Photos in PNG, JPG, WebP, GIF, BMP or other raster formats the browser can read. HEIC and SVG are refused. An animated image uses its first frame.
- Output
- One PNG (panorama.png) or JPG (panorama.jpg). JPG quality runs from 40 to 100 (default 90). Metadata such as EXIF and GPS is not copied. Gaps between photos are transparent in a PNG and white in a JPG.
- Options
- Alignment: Automatic from image features (default) or Manual offsets. Model: Perspective (default) or Translation only. Smooth blend (on), Even out exposure (on) and Crop to largest filled rectangle (off). Manual offsets: overlap between neighbours 0 to 95 percent (default 30) fills the offsets, and each photo can be shifted right and down by hand. Photos can be moved earlier or later or removed.
- Behaviour
- Matching works on a copy at most 800 pixels on the long side and is not rotation or zoom invariant, so a tilt of more than about 15 degrees or a change of zoom can fail; use Manual offsets then. It is a flat projective warp, with no cylindrical or spherical projection, no lens correction and no seam finding, so moving subjects and near objects can show ghosting. Plain skies, water, walls and repeating patterns can fail to match; the tool names the pair that failed instead of guessing. The photo order is the left-to-right order.
- Limits
- 2 to 6 photos, each up to 40 MB and about 16.8 megapixels (16,777,216 pixels), and about 67.1 megapixels in total. A result over about 16.8 megapixels, or wider or taller than 32,767 pixels, is scaled down, but not below 25 percent. Manual offsets run from -100000 to 100000. Stitching stops after 180 seconds.
- Browser needs
- Web Workers and a canvas.
- Messages
- Messages name the photo or the pair, for example "Choose at least 2 photos.", "You can stitch at most 6 photos.", "NAME: the file is larger than the 40 MB limit." and "Photo 1 and Photo 2 could not be matched."
- API and workflow
- No workflow operation.
- Example
- Choose three photos of a skyline taken left to right with about 30 percent overlap, leave the defaults, and download the PNG.
- Local or network
- Everything runs on your device. No file is uploaded and no network request carries your files.
Image Upscaler
- Tool id
upscaler- What it does
- Make one image 2, 3 or 4 times larger with Lanczos or bicubic resampling and optional sharpening.
- Open it
/more/upscaler- Input
- One PNG, JPG, WebP, GIF or BMP image up to 64 MB. If several files are added, only the first is used. An animated image uses its first frame.
- Output
- A PNG, JPG or WebP named after the image with the factor added, for example photo-2x.png. WebP is offered only when the browser can save it. A comparison slider shows before and after.
- Options
- Scale 2x (default), 3x or 4x; a factor that would pass the output limit is turned off. Method Lanczos-3 (default, sharper, slight ringing) or Bicubic (softer). Sharpen 0 to 200 percent (default 0) with a radius of 1 to 3 pixels (default 1). Format PNG (default), JPG or WebP. Quality 10 to 100 (default 90) for JPG and WebP. Background colour for JPG (default white), because JPG has no transparency.
- Behaviour
- This is classical resampling, not AI. It makes an image larger and smoother but cannot add detail that is not there, and sharpening also adds halos and noise. Colours are converted to sRGB when the browser opens the image, and the colour profile and metadata (EXIF, ICC, XMP) are dropped on export.
- Limits
- The output is at most 16,777,216 pixels (16 megapixels) and 16,384 pixels on the longest side, so 2x works up to about 2048 by 2048 and 4x up to about 1000 by 1000. A source image is at most 8192 pixels on its longest side. An upscale stops after 60 seconds.
- Browser needs
- Web Workers and a canvas.
- Messages
- Messages name the limit and the largest factor that fits, such as "Largest factor for this image: 2x.", and "NAME: the file is larger than 64 MB, which is too big to upscale here."
- API and workflow
- No workflow operation.
- Example
- Open a 1000 by 750 logo, choose 4x with Lanczos-3 and a sharpen of 40, and download the PNG.
- Local or network
- Everything runs on your device. No file is uploaded and no network request carries your files.
Contact Sheet
- Tool id
contact-sheet- What it does
- Lay out thumbnails of many images and videos on printable pages, with captions.
- Open it
/more/contact-sheet- Input
- Images (PNG, JPEG, WebP, GIF with its first frame only, BMP and AVIF as far as the browser can decode them) and videos the browser can play. HEIC and SVG are not supported.
- Output
- A PDF (contact-sheet.pdf), or PNG pages (contact-sheet.png, or contact-sheet.zip when there are several pages).
- Options
- Sort by Added order (default), Name (natural), Date modified or Size. Page size A4 (default), A3, Letter or Legal; Portrait (default) or Landscape. Columns 1 to 10 (default 4). Margin 5 to 30 mm (default 12). Gap 0 to 10 mm (default 3). Thumbnail shape 4:3 (default), 1:1 or 16:9. Caption size 6 to 12 points (default 8). PNG resolution 96, 150 (default) or 200 dpi. Frames per video 1 to 12 (default 1). Captions: Name, Size and Date modified (on by default) and Pixel size (off).
- Behaviour
- Each video adds one thumbnail per chosen frame, taken from the browser's own player, so each frame is the nearest decodable frame to the requested time. Dates are each file's last-modified time in UTC; browsers do not expose a creation date and EXIF capture dates are not read. Thumbnails are capped at 1024 pixels on the long side and stored as JPEG, and original files are not embedded. PDF captions use Noto Sans, and characters it cannot draw print as a question mark with a warning. Long names are shortened with an ellipsis on the sheet.
- Limits
- Up to 200 files, 200 thumbnails and 50 pages. An image up to 500 MB and 100 megapixels, a video up to 4 GB. A PNG page is at most 25 megapixels. Reading a file stops after 30 seconds.
- Browser needs
- Web Workers, a canvas and a video player that can play your files.
- Messages
- Messages name the file or the limit, for example "At most 200 files per sheet. Remove some and try again." and "This would need N pages and the limit is 50. Use more columns or a larger page, or remove files."
- API and workflow
- No workflow operation.
- Example
- Add many photos, choose A4 landscape with 5 columns and file name captions, and download the PDF.
- Local or network
- Everything runs on your device. No file is uploaded and no network request carries your files.
Color Blindness Simulator
- Tool id
cvd-simulator- What it does
- Show how a colour or an image looks with protanopia, deuteranopia, tritanopia or achromatopsia.
- Open it
/more/cvd-simulator- Input
- A colour typed as a name or code (up to 100 characters) or picked with the colour picker, or one PNG, JPEG, WebP, GIF or BMP image up to 50 MB. HEIC, SVG and AVIF are refused. An animated GIF uses its first frame.
- Output
- A PNG of the simulated image, named after the image and the type, for example photo-protanopia.png.
- Options
- Type: Protanopia (default), Deuteranopia, Tritanopia or Achromatopsia. Severity 0 to 100 percent in steps of 10 (default 100). Show all four simulations at once. A colour also shows its difference from the original as a CIEDE2000 value.
- Behaviour
- This is a model-based approximation (Machado et al. 2009) on a standard sRGB screen. It is not a diagnosis, and real perception varies between people and screens. For the first three types, 100 percent is full dichromacy. Achromatopsia is a luminance model, and its severity is a blend toward grey. Transparency is kept as it is. Images are processed as a display-sized copy, so the download is that size.
- Limits
- The longest side of the processed copy is at most 1600 pixels. An image over 25 megapixels is refused from its file header before decoding.
- Browser needs
- Web Workers and a canvas.
- Messages
- Messages name the file or the limit, for example "NAME is larger than 50 MB, which is the limit here." A colour that is not understood shows a message and the last colour that worked stays on screen.
- API and workflow
- No workflow operation.
- Example
- Open a chart screenshot, choose Deuteranopia at 100 percent, and check that its series are still told apart.
- Local or network
- Everything runs on your device. No file is uploaded and no network request carries your files.
OCR: make scans searchable
OCR is local. The recognition engine and its English data are files served by this site and loaded the first time you run OCR; they are not fetched from another server, and your scans never leave the device. The first run therefore takes longer while the engine loads. OCR runs on the page itself (not in the background worker pool), so the page may feel busy on a long scan.
OCR
ocr at /tools/pdf/ocr. Recognises text in scanned PDFs and in images and adds an invisible text layer, so the file becomes searchable and selectable. Also listed under /tools/convert.
Input and output. Either one PDF, or one or more images (not both), in. Output is a searchable PDF named NAME-ocr.pdf, which keeps the original pages or images; optional extra files are NAME-ocr.txt (plain text), a word-position TSV and an hOCR file (.hocr).
Options (names as used by the API and in workflows).
onlyMissing: skip pages that already have text (default on; applies to PDFs).dpi: 200 (faster), 300 (default) or 400 (small text) in the tool; the pixel count of a page is also capped, so very large pages are read at a lower resolution.pages: page ranges for a PDF; empty means all.text: also download a .txt (default off).markLow: mark low-confidence words as [?word] in the text (default off).highlightLow: outline words below 60 percent confidence in red (default off).tsv: also download word positions as a TSV (default off).hocr: also download hOCR with word positions (default off).deskew: straighten tilted scans before reading (default off).cleanMode: none (default), grey-contrast (greyscale and more contrast) or bw (black and white, automatic threshold).rectified: images whose corrected photo from the four-corner tool should be read instead (default empty).
Limits. English only. Accuracy depends on scan quality; confidence is the engine's own estimate. An image over 120 megapixels is refused. The clean-up step is skipped, with a note, for an image over 16 megapixels. The language list in the tool is fixed to English.
Messages you can see. “Add a PDF or an image first.” “Use one PDF, or any number of images, not both.” “NAME isn't a supported image.” “NAME couldn't be decoded. It may be damaged.” “NAME is too large (over 120 megapixels).” “Every page already has text; nothing to recognise.” “No text was found. Try a higher resolution or a clearer scan.”
Open it. Open OCR in the browser; files stay on your device.
API and workflow. Call it as ocr from window.eeshgarg.run (see the API reference) or add it to a workflow as the ocr step on the Workflow board.
Example. Add scan.pdf, leave the defaults and download scan-ocr.pdf, then search it for a name.
OCR extras
- Clean up scan before reading. Opens a before and after preview. Choose None, Greyscale and more contrast, or Black and white with an automatic threshold.
- Straighten (deskew). Corrects tilt before reading; the tool shows the tilt it detected.
- Correct a photo from four corners. For a photo of a page, mark the four corners and the page is flattened and used for reading.
- Word positions. Download a TSV or an hOCR file next to the PDF.
- Low-confidence words. Outline them in the PDF, or mark them as [?word] in the text.
If OCR finds nothing, the tool says “No text was found. Try a higher resolution or a clearer scan.”
API and workflows
Use window.eeshgarg.runTool(id, files, options) with an id from this page, or a workflow task whose config.tool is the id. Options are merged over the defaults listed in each entry, and unknown option names throw. Results are returned as files.
const out = await window.eeshgarg.runTool("image-resize", [file], { mode: "fit", width: 1600, height: 1600 });
const ocr = await window.eeshgarg.runTool("ocr", [scanPdf], { text: true });
// ocr.files holds NAME-ocr.pdf and NAME-ocr.txtSee the API reference, the Workflow API and Workflow semantics, the command line, and every id and option in the capability catalog.
Works with
Images go to PDF through Images to PDF and back through PDF to Images; OCR turns a scan into a searchable PDF that the PDF tools can merge, compress or protect next. Resized or converted images can go to /images or /convert. Each tool id (for example image-resize and ocr) is also its workflow task name and API call. Every result has a Send to menu next to Download that opens the next tool with the files already loaded, and a small + Workflow control that queues the tool as a task block in the Workflow hub (see Workflows). Related tools sit at the bottom of each tool page.