# Gallery module error message

**URL:** <https://discourse.gohugo.io/t/gallery-module-error-message/46307>\
**Category:** support\
**Tags:** modules, images\
**Created:** [September 20, 2023, 4:21am UTC](https://discourse.gohugo.io/t/gallery-module-error-message/46307 "2023-09-20T04:21:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![bobparsley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bobparsley/32/20372_2.png) [@bobparsley](https://discourse.gohugo.io/u/bobparsley)\
**Post date:** [September 20, 2023, 4:21am UTC](https://discourse.gohugo.io/t/gallery-module-error-message/46307/1 "2023-09-20T04:21:16Z")

</div>

Hi all, I am building my website with Hugo/wowchemy. In particular, I am trying to add an album to one of my pages. I followed the instructions [here](https://wowchemy.com/docs/content/writing-markdown-latex/#image-gallery) and that’s what my page says:

```auto
---
title: Photo album
summary: '' 
date: ''

reading_time: false # Show estimated reading time?
share: false # Show social sharing links?
profile: false # Show author profile?
comments: false # Show comments?

# Optional header image (relative to `assets/media/` folder).
header:
  caption: ""
  image: ""
---

{{< gallery album="<ALBUM-FOLDER>" >}}

```

However, I am getting the following message:

```auto
Error: error building site: "/Users/rp3650/Desktop/starter-hugo-academic-main/content/panini/index.md:20:1": failed to render shortcode "gallery": failed to process shortcode: "/Users/rp3650/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.8.1-0.20230812165002-59b648791d3f/layouts/shortcodes/gallery.html:34:17": execute of template failed: template: shortcodes/gallery.html:34:17: executing "shortcodes/gallery.html" at <.Fit>: error calling Fit: this method is only available for image resources

```

I tried to use the demo album of the template I cloned, and it works, so it’s a problem related to my images, rather than the actual. I have tried to change the format (jpeg to jpg/png) and reduce the size (\< 200 KB), but I still get the same error. Does anyone know what could be the source of the error?

Thanks!

---

_[View the full topic](https://discourse.gohugo.io/t/gallery-module-error-message/46307)._
