Capturing WEBP on photos page?

Hey folks,

So I’m using Jim’s fantastic mnml theme, and I’ve been having an issue where I can’t see most of the images I post on my /photos page. After some research and talking it through with Jim I think it’s because my images are all WEBP.

You see, I cross-post from my main site to Micro.blog, and I have a routine that automatically changes any images I upload to 1200px wide (auto height) and WEBP to make them more web friendly. But it seems that the use of Params.image on the photo-grid partial for my theme means that only JPG and PNG are captured.

So my question is, what do I need to change in order for the /photos page to capture WEBP too?

Thanks,

Kev

You can’t make this change-- the way the photo grid page is working is using a special set of params set in the Micro.blog core code for what to include as images or photos in your front matter that collects those embeds into the post frontmatter. @manton would need to add support for webp. (For example, PNG are explicitly excluded because those tend to be screenshots)

Thanks Jason.

So I can’t create a custom version of the partial that doesn’t use the param that limits by image format?

Not easily-- I don’t think there’s another good way to find all images/uploads associated with your account. At least not one that I know. Maybe @sod has some ideas.

All good, we solved it. I updated the theme I’m using but it took a while to update the settings page. There’s an option to display all images there. I ticked that and we’re golden - everything is there.

1 Like