I am using Jekyll 3.9 and am using exiftag as part of the tutorial at Using LightGallery in Jekyll without tedious configs without any problem for JPG images. It works great.
The album.html file loads the exif tags as follows:
{% for image in site.static_files %}
{% if image.path contains 'images/galleryv2' and image.path contains include.albumname %}
<a href="{{ image.path }}" data-sub-html="{% exiftag image_description, , {{ image.path }} %}" >
<img src="/thumbnails{{ image.path }}" />
</a>
{% endif %}
{% endfor %}
Note the {% exiftag image_description, , {{ image.path }} %} part: it works great.
However, I wonder how to use the same for PNG images? I am using a tool called SetEXIFData v9.2 (Marc's Place - SetEXIFData) via which I can confirm that I can include ImageDescription EXIFData to a PNG, just like to a JPG.
However, the {% exiftag image_description, , {{ image.path }} %} is not working for PNG images … it instead shows the image path.
How to make the caption work please for PNG images?
Additionally, I have a general question about plug-ins. I already added gem "exifr"
in my Gemfile. And so (after bundle install or bundle update) I can retreive an exifr-1.3.9 in my vendor/bundle/ruby/gems folder. In it I can see a lib/exifr/ folder with inside the following files: jpeg.rb and tiff.rb
In the same lib/ folder there is also an exifr.rb file.
So I wonder why the tutorial asks me to also install a seperate exiftag.rb file inside my Jekyll main directory’s _plugins folder?
How do these plugins in the _plugins folder relate to the installed gems in the vendor/bundle/ruby/ folder please?