Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saucecontrol committed Jan 17, 2018
1 parent b1d2701 commit ed9ef70
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
8 changes: 7 additions & 1 deletion doc/web.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,17 @@ The following MagicScaler `ProcessImageSettings` values can be set from the quer
| Sharpen | sharpen | bool |
| HybridMode | hybrid | favorquality, favorspeed, turbo, off |
| SaveFormat | format | jpg, jpeg, png, png8, gif, bmp, tiff |
| JpegQuality | quality | int |
| JpegQuality | quality<br />q | int |
| JpegSubsampleMode | subsample | 420, 422, 444 |
| MatteColor | bgcolor<br />bg | [CSS3 named color], [rgba hex values] |
| Interpolation | filter | nearestneighbor, average, linear, quadratic, catrom, cubic, lanczos, spline36 |
Additionally, WebRSize supports a `devicepixelratio` (or `dpr`) query string parameter. This setting will automatically adjust both the size and quality settings for the target client. Using `srcset`, you can configure images with the same logical (CSS) size and have WebRSize take care of the rest. In this example, a retina device will receive a 200px wide image with a lower jpeg quality/subsampling to compensate and keep file sizes reasonable.
```
<img src="photo.jpg?w=100" srcset="photo.jpg?w=100 1x, photo.jpg?w=100&dpr=2 2x" />
```
## Advanced Topics
### Output Caching
Expand Down
17 changes: 10 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,16 @@ See the [documentation page](doc/web.md) for more details.

Release History
---------------
#### WebRSize 0.3.1.0
* Require MagicScaler 0.8.3 or later
* Fix nuget config transform to place `configSections` as the first child of `configuration`

#### MagicScaler 0.8.3.0
* Fixed image corruption (and possible access violation) when sharpening BGR/BGRA images in sRGB blending mode.
* Use latest System.Buffers version for .NET Framework installations
#### MagicScaler 0.8.4.0
* Fixed an issue that caused sharpening to be a no-op when working with some pixel formats in sRGB blending mode.
* Improved quality of scaling and sharpening with partially-transparent images.
* Added [GitLink](https://github.com/GitTools/GitLink) to enable github source server support for debugging.

#### WebRSize 0.3.2.0
* Fixed incorrect file extension for 404 images in the disk cache
* Added exception handler for "Client Disconnected" errors when transmitting images from the HttpHandler
* Added devicePixelRatio (dpr) setting to enable automatic size and quality adjustments for retina clients
* Added "q" shortcut for quality setting

See the [releases page](https://github.com/saucecontrol/PhotoSauce/releases) for previous updates.

Expand Down

0 comments on commit ed9ef70

Please sign in to comment.