Create a new ImageProcessor instance.
Optionaloptions: ImageProcessorOptionsConfiguration options for image downloading
Process markdown content: extract image URLs, download images, and replace CDN URLs with local relative paths.
Uses marker-based tracking to enable intelligent retry:
Only replaces CDN URLs with local paths on successful download. Failed images keep CDN URLs, making missing images visible in rendered markdown.
Markdown content from MarkdownTransformer
Absolute path to blog post directory where images should be saved
Processing result with updated markdown and statistics
ImageProcessor handles downloading images from Hashnode CDN and updating markdown references to use local file paths.
This processor:
Marker-Based Retry Strategy:
.downloaded-markers/directory in each blog post directory.markerfile (e.g.,uuid.png.marker).markerfile with error message (will retry).marker.403file (won't retry)Example