No description or website provided.
Latest commit f64a5b5 Mar 22, 2016 @davemcdermid Merge pull request #4 from entith/master
Filters and default to raw image
Failed to load latest commit information.
.gitignore Initial commit Dec 16, 2011
AdaptiveImageHandler.cs Added ability to specify what images to process or ignore with a rege… Mar 22, 2016
AdaptiveImages.csproj Default configuration values can now be overriden in .config file Dec 23, 2011
AdaptiveImages.sln Initial commit Dec 16, 2011 Added a Readme file Dec 20, 2011

This is a C# .NET port of the PHP adapative-images script


The project can be compiled to a DLL and dropped into any .NET 4 project. Alternatively, add this project to an existing solution. The project can also be compiled in .NET 3.5 compatibility if required.

Add the handler references from the sample.web.config to the web.config file for your website.

Add the following javascript to set a cookie with the screen resolution:

<script type="text/javascript">document.cookie = 'resolution=' + Math.max(screen.width, screen.height) + '; path=/';</script>