Recognize Text on images in your notes. Select the image and run the command. The recognized text will be appended to your image or will replace your image - depending on the command
| Command | Description |
|---|---|
| Replace selection | Replace your image with the recognized text. Recognize text based on the language defined in settings |
| Replace selection - custom language | Replace your image with the recognized text. Recognize text based on custom selection |
| Append selection | Append the recognized text to your image. Recognize text based on language defined in settings |
| Append selection - custom language | Append the recognized text to your image. Recognize text based on custom selection |
| Insert as alt text | Insert the recognized text as alt text to your image. Recognize text based on language defined in settings. Note: This will overwrite any existing alt text |
| Insert as alt text - custom language | Insert the recognized text as alt text to your image. Recognize text based on custom selection. Note: This will overwrite any existing alt text |

| Format | Example | Description |
|---|---|---|
| Obsidian Image | ![[example.png]] |
Obsidian image tag |
| Obsidian Image including size | ![[example.png|300]] |
Obsidian image tag including size. Size is preserved when using "Insert as alt text" |
| Markdown Image |  |
Markdown image tag |
| URL | https://www.example.com/example.png |
URL to an image |
| img Tag | <img src="https://www.example.com/example.png" /> |
Img tag with a valid src attribute |
main.js, manifest.jsonVaultFolder/.obsidian/plugins/obsidian-image-to-text-ocr/| Name | Description |
|---|---|
| Content language | Select language to recognize. Default is Englisch. If images contain special characters, changing the language may perform better results |
| Enable debug logging | If enabled, more will be logged in the console. |
This plugin uses tesseract.js to recognize text.