Saving image strategy

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Markdown MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-markdown -- dnx GroupDocs.Markdown.Mcp --yes
Folders, licensing and more →

GroupDocs.Markdown provides several strategies for handling images during conversion. Set the image_export_strategy property on ConvertOptions to control the behavior:

  • Base64 embedding – inline images as data URIs using ExportImagesAsBase64Strategy.
  • File system export – save images to a directory using ExportImagesToFileSystemStrategy. Use the images_relative_path property to control the relative path written into Markdown image links.
  • Skip images – omit all images from the output using SkipImagesStrategy.
  • Custom handler – pass a Python callable for full control over image saving, including renaming and custom storage via CustomImagesStrategy.

Please refer to the following guides for detailed examples: