Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'd like to have the ability to exclude certain local images from the uAdaptiveImage handler. How can I do that? many thanks!
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 - 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" />
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...
is it possible to have an element on the that allows image references to be excluded by the handler?
also, is the source code available for this project? many thanks!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted