Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to enable rendering of original size as biggest size #18

Open
bavarianbytes opened this issue Jun 22, 2016 · 0 comments
Open

Option to enable rendering of original size as biggest size #18

bavarianbytes opened this issue Jun 22, 2016 · 0 comments

Comments

@bavarianbytes
Copy link

bavarianbytes commented Jun 22, 2016

I configure the size of images like this:

tt_content.textmedia.settings.responsive_image_rendering.sourceCollection {  
    xs {
        width = 320m
        srcset = 320w
        sizes = calc(100vw - 30px)
    }
    sm {
        width = 514m
        srcset = 514w
        sizes = (min-width: 544px) 514px
    }

    md {
        width = 738m
        srcset = 738w
        sizes = (min-width: 768px) 738px        
    }

    lg {
        width = 962m
        srcset = 962w
        sizes = (min-width: 992px) 962px        
    }

    xl {
        width = 1170m
        srcset = 1170w
        sizes = (min-width: 1200px) 1170px
    }

    xlretina {
        width = 2340m
        srcset = 2340w
        quality = 30
    }       
}

When i insert an image with maybe 1000px, all sizes below "xl" are rendered. But not the original size of the image. Therefore for example screenshots images are not rendered in their original size and appear blurred.
Wouldn't it be great to have an option to enable rendering in original size if it is smaller that the biggest defined size or maybe that a certain size (which a can set to my biggest defined size).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant