GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.06k stars 407 forks source link

[Bug]: Post Featured image is not responsive #1241

Closed briff closed 8 months ago

briff commented 9 months ago

Operating system

Windows 11

Publii version

0.42.1

Post editor

WYSIWYG editor

Bug description

When I create a new post (with the default Simple theme) the featured image is used as is, not the responsive (-xl) version.

Steps to reproduce

No response

Relevant log output

No response

bobmitro commented 9 months ago

I didn't notice it in the Simple theme, you don't provide any examples, so I can't address your problem.

atomGit commented 8 months ago

it happens in the Simple theme (=< 2.7.0.0) with or without responsive images being enabled - if you create a post and add a large featured image, then view it in a browser with dev tools and responsive design mode enabled, the image stops resizing at around 1280px in width, though this may depend on the image size used

briff commented 8 months ago
  1. I created a site using the Simple theme.
  2. Posts have their individual featured images.
  3. The theme hero image is correctly downloaded from the responsive folder like: media/website/responsive/songbird-8348139_1920-md.webp
  4. However, other posts featued image ignore both the webp setting and the responsive setting, they just download from: media/posts/1/glacier-8329668_1920.jpg

All the files are correctly generated to /responsive/.webp, but they are not used from individual post pages.

bobmitro commented 8 months ago

@briff The attached rendered files say nothing. Please attach a full site backup on the forum in private mode, as this repository is for the Publii app only.