-
DescriptionWindows 11 I'm trying to display a listing of many .jpg files in a .qmd 'chapter' of a book project but it fails to show the image previews. I've spent all day trying to search for examples such as https://github.com/mvuorre/quarto-gallery/ with no resolution. I created a reprex using a new Quarto Project (it creates a minimal book project). All I modified was the into.qmd file with following and added a galleries folder at root with 4.jpg files: ---
title: "Test Gallery"
listing:
contents: "galleries/*.jpg"
type: grid
fields: [image, filename, title]
sort: "date desc"
categories: false
sort-ui: true
filter-ui: true
---
This is a new Quarto project (book) created from markdown as a reprex.
''''
I always get this regardless of using just 400 pixel image size, playing with image-height options, etc.

One other side issue I'd like to solve is that even when my image contains a Title in the metadata verified with Windows Explorer, this never translates to the title field. Is there anyway to pull this in?
Thanks so much for any help here.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Unfortunately, that's not reproducible as it lacks many pieces. See the following thread: Also, it seems your post is not well formatted. Finally, if you include screenshot, be sure to add alternative text to ensure the image is accessible to all users. You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
The issue is that you are giving a list of images which you expect to be used for different fields of your listing.
In your case, you did not set
title
orimage
.Either do as demonstrated (custom EJS listing) in the links shared previously or provide a full specification of your listing.