Skip to content

Doesn't seem to work with {attach} images #95

@dvelik

Description

@dvelik

Hello!
I'm playing around with Pelican as a SSG for a blog site and trying to use image-process to optimise images and generate srcsets.
Each blog post is a "bundle" of a markdown page and several images that are stored locally in the same directory as the MD file.

content/blog/cat-post-1 -> cat-post.md, cat_fooling_around.jpg

Images are linked in markdown with {attach} directive as per Pelican docs, i.e.

![A funny cat picture]({attach}cat_fooling_around.jpg){: .process-image-large-photo }

When image-process tries to find cat_fooling_around.jpg image, it's looking in content folder (which is the source folder for blog files). However, it's using a path that is defined in ARTICLES_SAVE_AS setting of Pelican (i.e. /blog/2025/04/09/my-cat-post). This path does exist, but it's in the output folder, where generated site files are stored.

I'm not sure whether it's a bug or expected behaviour, but it seems that with using image process with {attach} is currently broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions