Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Maton 387 posts 660 karma points
    Apr 09, 2012 @ 15:09
    Tom Maton
    0

    Alt images for different screen size

    Hi Doug,

    I'm looking at the documentation for ImageGen and looking at the AltBrowser & AltImage and looking at the link in the doc (http://msdn.microsoft.com/en-us/library/system.web.httpbrowsercapabilities.aspx) there is a ScreenPixelsWidth property.

    So was wondering if it is possible to have multiple AltBrowser & AltImage for different ScreenPixelsWidth so different browser widths load different sized images?

    Thanks,

    Tom

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Apr 09, 2012 @ 15:51
    Douglas Robar
    0

    I don't use the browsercaps feature directly like that so not as such. But there are options!

    Check out how Pete Duncanson handles responsive images with ImageGen though. He had a great presentation at the last UK Festival. The ImageGen stuff is near the end.

    http://umbracoukfestival.co.uk/speakers/#pete-duncanson

    cheers,
    doug. 

  • Carlos 338 posts 472 karma points
    Feb 21, 2013 @ 17:55
    Carlos
    0

    @Douglas,

    Was this talk on the videos?  Was it in the same talk that the uSiteBuilder talk was?

    Carlos

  • Carlos 338 posts 472 karma points
    Feb 21, 2013 @ 17:56
    Carlos
    0

    @Doug, 

    Did you ever find a solution to this technique?

    Carlos

  • Tom Maton 387 posts 660 karma points
    Feb 21, 2013 @ 18:08
    Tom Maton
    0

    Carlos,

    I've started to use this following technique and use imagegen for the image path.

    https://github.com/davemcdermid/AdaptiveImages

    Thanks,

    Tom

  • Carlos 338 posts 472 karma points
    Feb 21, 2013 @ 18:17
    Carlos
    0

    @Tom,

    Does this require the use of more than 1 image to be served up?

    This is kind of what I am trying to get away from, using multiple images to deal with the whole Retina display issue.

     

    Carlos

  • Dan White 206 posts 510 karma points c-trib
    Feb 21, 2013 @ 18:39
    Dan White
    0

    @Tom,

    Is there a way to you tell the script to ignore certain images? 

     

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Feb 21, 2013 @ 19:49
    Douglas Robar
    0

    @Carlos, @Tom, @Dan, Pete has made a nice blog post about responsive and ImageGen that builds on his talk at the UK Festival. Full blog post at http://offroadcode.com/blog/2013/1/31/mobile-friendly-images,-creating-responsiveadaptive-images-with-imagegen/

    Hope that's helpful!

    cheers,
    doug. 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies