Bug in responsive images?
- This topic has 6 replies, 2 voices, and was last updated 4 weeks ago by .
- AuthorPosts
- February 1, 2021 at 7:58 pm#5100
rtissler
I am using the simple theme and included a full-with image, see https://nuesse.robin-marketing.com/pistazien/ in the middle of the page. It shows that even at resolutions of 1600, the 769px (m) Version is shown, instead of the xl Version. I do not see any mistakes in the config.json file for the correct selection of image sizes. Do you have any suggestion how to solve this issue?
Thx
RamonFebruary 2, 2021 at 6:57 am#5101Bob
SupportShow the code snippet from the config.json file, exactly the “contentImages” part with thumbnails settings.
Also, try to regenerate thumbnails.--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!February 2, 2021 at 7:03 am#5103rtissler
"files": { "ignoreAssets": ["scss", ".DS_Store"], "assetsPath": "assets", "partialsPath": "partials", "responsiveImages": { "contentImages": { "sizes": "(max-width: 48em) 100vw, 768px", "dimensions": { "xs": { "width": 300, "height": "auto" }, "sm": { "width": 480, "height": "auto" }, "md": { "width": 768, "height": "auto" }, "lg": { "width": 1024, "height": "auto" }, "xl": { "width": 1360, "height": "auto" }, "2xl": { "width": 1600, "height": "auto" } } },
February 2, 2021 at 7:06 am#5104Bob
SupportIt’s’ correct, admittedly we can change the sizes to (max-width: 1600px) 100vw, 1600px; but in this case it shouldn’t matter.
Have you regenerated your thumbnails?
Does it happen when you upload a new photo to a post or only with already uploaded ones?--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!February 2, 2021 at 7:24 am#5105rtissler
I reproduced it again on: https://www.fenchel.org/pistazien/. Yes, integrated a new image (different name) of 1800px, regenerated thumbnails and synchronized. Again no full width image shown … any guess whats wrong?
February 2, 2021 at 7:34 am#5106Bob
SupportI don’t know, this is HTML syntax generated by my Simple site installation:
file:///.../Documents/Publii/sites/simple/preview/media/posts/7/responsive/kernenergie-werbung2-xs.jpg 300w, file:///.../Documents/Publii/sites/simple/preview/media/posts/7/responsive/kernenergie-werbung2-sm.jpg 480w, file:///.../Documents/Publii/sites/simple/preview/media/posts/7/responsive/kernenergie-werbung2-md.jpg 768w, file:///.../Documents/Publii/sites/simple/preview/media/posts/7/responsive/kernenergie-werbung2-lg.jpg 1024w, file:///.../Documents/Publii/sites/simple/preview/media/posts/7/responsive/kernenergie-werbung2-xl.jpg 1360w, file:///.../Documents/Publii/sites/simple/preview/media/posts/7/responsive/kernenergie-werbung2-2xl.jpg 1600w
in your case, it ends on 768w.
Attach your site backup (PM) I will try to check what’s wrong with that in a free time.
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!February 3, 2021 at 4:40 pm#5115rtissler
This reply has been set as private. - AuthorPosts
- You must be logged in to reply to this topic.