Skip to content
Edith

Docs

Command reference

ed grab file

Terminal
ed grab file PATH [--mode plain|breaks|line|table|code|barcode] [--copy] [--json]

Recognizes the text in a PNG, JPEG, HEIC, TIFF or GIF image. A relative path is resolved from the directory you run the command in. Prints the text; --copy also puts it on the clipboard. Without --mode the default mode from Text Grab settings is used. A missing file exits with a not found error and an image without text exits with an error. JSON output reports id, text, mode, lines, source, url, date and copied.

Terminal
ed grab file ~/Desktop/receipt.pnged grab file sheet.png --mode table --json