getpelican / pelican-plugins

Collection of plugins for the Pelican static site generator
Other
1.38k stars 849 forks source link

[photos] `.gif` Files are skipped and are not created in output #1152

Open demonno opened 5 years ago

demonno commented 5 years ago

Photos folder:

Config:

PLUGIN_PATHS = ['plugins/']
PLUGINS = ['photos'']

# photos conf
PHOTO_LIBRARY = "photos"
PHOTO_EXIF_COPYRIGHT_AUTHOR = 'Author'

PHOTO_WATERMARK = True
PHOTO_WATERMARK_TEXT = "example.com"
PHOTO_EXIF_REMOVE_GPS = True 
PHOTO_EXIF_COPYRIGHT = "CC-BY-ND"

article.md

gallery: {photo}path/to/folder

Usage in template


{% for title, gallery in article.photo_gallery %}
    {% for name, photo, thumb, exif, caption in gallery %}
        <img src="{{ SITEURL }}/{{ photo }}">
    {% endfor %}
{% endfor %}

Rendered HTML:

<img src="/photos/path/to/folder/photo_1.jpg">
<img src="/photos/path/to/folder/photo_2.jpg">  // this is not found and  extension is change to `.jpg`
phibos commented 3 years ago

@demonno we have moved the photos plugin to a new location https://github.com/pelican-plugins/photos . Are you still interested in this feature?