Closed carstenstann closed 2 years ago
Thank you @carstenstann for your detailed bug report and the suggested solution. I modified your solution a tiny bit. Is your issue solved with the latest version?
Hi @mfg92, 2be808e solved the issue on my end. Thanks for implementing the fix!
Thanks for the amazing shortcode! It's exactly what I was attempting to build for my site, but better. I found a small bug and have a suggestion below.
Inside of the gallery.html the following snippet controls the display image exif data. The problem is that placeholder text such as the 'mm', 'f/', 'sec', and 'ISO' either preceding or following their respective tags is displayed regardless of whether the tag itself is available in the metadata or not. This problem only occurs if
showExif=true
and no metadata is available for a given image.This results in the following exif display, for images w/o available metadata ('QSS-32_32' is from the description):
A simple solution is to wrap each tag's lookup inside a
with
statement:Wrapping tag lookups inside
with
statements only displays them if they are available, which results in the following display of the same image above (again note that 'QSS-32_32' is from the description):