Saving image strategy

GroupDocs.Markdown provides several strategies for handling images during conversion. Call setImageExportStrategy on DocumentConvertOptions to control the behavior:

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

Please refer to the following guides for detailed examples:

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.