From bbf3a86d59816886bab0c6095f23495f34ec1d6d Mon Sep 17 00:00:00 2001 From: Nathanael Jones Date: Sun, 7 Jul 2013 14:25:42 -0400 Subject: [PATCH 1/5] Update readme.md --- readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/readme.md b/readme.md index 851c062..fbb2ee1 100644 --- a/readme.md +++ b/readme.md @@ -11,8 +11,17 @@ SlimResponse looks through outgoing HTML for `` tags with a `slimmage` clas ```html + + +``` + +or for "slimmage=true" in any image URL + +```html + ``` + It then adds the appropriate markup to allow [slimmage.js](https://github.com/imazen/slimmage) to turn them into responsive images. From 64eb7cf8d94c0b0cf72d3ae1858dddaf62b8b713 Mon Sep 17 00:00:00 2001 From: Nathanael Jones Date: Sun, 7 Jul 2013 14:44:02 -0400 Subject: [PATCH 2/5] Update readme.md --- readme.md | 42 +++++++++++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index fbb2ee1..863a23f 100644 --- a/readme.md +++ b/readme.md @@ -28,16 +28,44 @@ It then adds the appropriate markup to allow [slimmage.js](https://github.com/im ### Requirements * ASP.Net 4.0 -* [ImageResizer](http://imageresizing.net) -* [slimmage.js](https://github.com/imazen/slimmage). - - +* [ImageResizer](http://imageresizing.net) must be [installed](http://imageresizing.net/docs/install) +* [slimmage.js](https://github.com/imazen/slimmage) must be included in your page's javascript. ### Spin it up quickly for a test! -* Use WebMatrix and fire it up on the "www"-folder, that's all! - +* Use WebMatrix or VisualStudio (Open Web Site) and fire it up on the "www"-folder, that's all! + +### Notes & Caveats + +* This parses all outgoing HTML. This may increase CPU usage slightly. +* Outgoing HTML is only modified if a responsive image is present. +* SlimResponse may mess up invalid HTML even further during parsing/serialization. +* If you're only using responsive images in limited situations, an HTML helper that spits out [slimmage markup](https://github.com/imazen/slimmage) may be more appropriate. + + +### Your web.config file must have both ImageResizer and SlimResponse installed + + + + + + + + + + + + + + + + + + + Thanks to [esn303](https://twitter.com/#!/esn303) for creating [ImageResizer.ResponsivePresets](https://github.com/mindrevolution/ImageResizer-ResponsivePresets) and being the inspiration behind this project. - This project is open to collaboration. **Fork. Push. Innovate.** + + + From 481f326500a3f3538d669719eb5463ba3fa55062 Mon Sep 17 00:00:00 2001 From: Nathanael Jones Date: Sun, 7 Jul 2013 14:45:28 -0400 Subject: [PATCH 3/5] Update readme.md --- readme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 863a23f..26d3b8f 100644 --- a/readme.md +++ b/readme.md @@ -40,10 +40,11 @@ It then adds the appropriate markup to allow [slimmage.js](https://github.com/im * Outgoing HTML is only modified if a responsive image is present. * SlimResponse may mess up invalid HTML even further during parsing/serialization. * If you're only using responsive images in limited situations, an HTML helper that spits out [slimmage markup](https://github.com/imazen/slimmage) may be more appropriate. - +* SlimResponse does not include the [slimmage.js](https://github.com/imazen/slimmage) javascript file, that's your responsibility. ### Your web.config file must have both ImageResizer and SlimResponse installed +```xml @@ -62,6 +63,7 @@ It then adds the appropriate markup to allow [slimmage.js](https://github.com/im +``` Thanks to [esn303](https://twitter.com/#!/esn303) for creating [ImageResizer.ResponsivePresets](https://github.com/mindrevolution/ImageResizer-ResponsivePresets) and being the inspiration behind this project. From 1eb0517eb080987cf1559448027227ffeda15598 Mon Sep 17 00:00:00 2001 From: Nathanael Jones Date: Sun, 7 Jul 2013 14:45:45 -0400 Subject: [PATCH 4/5] Update readme.md --- readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/readme.md b/readme.md index 26d3b8f..ff0267c 100644 --- a/readme.md +++ b/readme.md @@ -53,7 +53,6 @@ It then adds the appropriate markup to allow [slimmage.js](https://github.com/im - From de7e3def9e1aea0903a256d27c28da8e56637f38 Mon Sep 17 00:00:00 2001 From: Nathanael Jones Date: Sun, 7 Jul 2013 15:47:56 -0400 Subject: [PATCH 5/5] Update readme.md --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index ff0267c..9a1d817 100644 --- a/readme.md +++ b/readme.md @@ -4,6 +4,7 @@ Dual-licensed by Imazen under the [MIT](http://www.opensource.org/licenses/mit-license.php) and [Apache](http://www.apache.org/licenses/LICENSE-2.0.html) licenses. +`Install-Package Imazen.SlimResponse` ###What does it to?