No description or website provided.
C#
Latest commit f64a5b5 Mar 22, 2016 @davemcdermid Merge pull request #4 from entith/master
Filters and default to raw image
Permalink
Failed to load latest commit information.
Properties
.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
License.md
Readme.md Added a Readme file Dec 20, 2011
Sample.Web.config

Readme.md

This is a C# .NET port of the PHP adapative-images script http://adaptive-images.com/.

Installation

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>