Copied to clipboard

Flag this post as spam?

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


  • John Hodgkinson 613 posts 355 karma points
    Jul 08, 2014 @ 14:38
    John Hodgkinson
    0

    exclude images?

    I'd like to have the ability to exclude certain local images from the uAdaptiveImage handler. How can I do that? many thanks!

  • John 6 posts 30 karma points
    Jul 08, 2014 @ 16:20
    John
    0

    Hi John,

    The handler is defined in the web.config with a path expression, which specifies the files to map to the handler. At the moment the path will be *.jpg etc. i.e. process all images, so what you could do is make it more specific by only including images in a specific sub-directory. Alternatively, you could create a sub-directory for the imags not to include, and add another web.config in that directory that resets the handler.

    Hope this helps,
    John

  • John Hodgkinson 613 posts 355 karma points
    Jul 08, 2014 @ 16:29
    John Hodgkinson
    0

    John - how do I specify which directories to use? i.e. I'd like to have uAI only use /media and /libraries only...

    My current web.config settings are:

    <add key="AdaptiveImages.ResolutionBreakpoints" value="1600, 960, 640, 320" />
    <add key="AdaptiveImages.CachePath" value="ai-cache" />
    <add key="AdaptiveImages.JpegQuality" value="80" />
    <add key="AdaptiveImages.WatchCache" value="true" />
    <add key="AdaptiveImages.BrowserCache" value="604800" />
    <add key="AdaptiveImages.MobileFirst" value="true" />
    <add key="AdaptiveImages.CookieName" value="resolution" />
    

    ....

      <add name="AdaptiveImagesGif" path="*.gif" verb="GET" type="AdaptiveImages.AdaptiveImageHandler" />
      <add name="AdaptiveImagesJpg" path="*.jpg" verb="GET" type="AdaptiveImages.AdaptiveImageHandler" />
      <add name="AdaptiveImagesPng" path="*.png" verb="GET" type="AdaptiveImages.AdaptiveImageHandler" />
    

    many thanks!

  • John Hodgkinson 613 posts 355 karma points
    Oct 28, 2014 @ 14:57
    John Hodgkinson
    0

    found an issue where images are used in the website and then also used for external newsletters... the above breakpoints work great for the website but for some reason when the images are used in the newsletters, the minimum size break point is used... i.e. 300 pixels is always used instead of a larger size and the image is then blocky...

  • John Hodgkinson 613 posts 355 karma points
    Oct 28, 2014 @ 15:06
    John Hodgkinson
    0

    is it possible to have an element on the that allows image references to be excluded by the handler?

  • John Hodgkinson 613 posts 355 karma points
    Oct 28, 2014 @ 15:30
    John Hodgkinson
    0

    also, is the source code available for this project? many thanks!

Please Sign in or register to post replies

Write your reply to:

Draft