Sign in

Bug in responsive images?

  • This topic has 6 replies, 2 voices, and was last updated 6 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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
    Ramon

    #5101
    Bob

    Show 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!

    #5103
    rtissler
    "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"
    }
    }
    },

     

    #5104
    Bob

    It’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!

    #5105
    rtissler

    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?

    #5106
    Bob

    I 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!

    #5115
    rtissler
    This reply has been set as private.
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.