Skip to content

Commit ed9ef70

Browse files
committed
update docs
1 parent b1d2701 commit ed9ef70

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

doc/web.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,17 @@ The following MagicScaler `ProcessImageSettings` values can be set from the quer
154154
| Sharpen | sharpen | bool |
155155
| HybridMode | hybrid | favorquality, favorspeed, turbo, off |
156156
| SaveFormat | format | jpg, jpeg, png, png8, gif, bmp, tiff |
157-
| JpegQuality | quality | int |
157+
| JpegQuality | quality<br />q | int |
158158
| JpegSubsampleMode | subsample | 420, 422, 444 |
159159
| MatteColor | bgcolor<br />bg | [CSS3 named color], [rgba hex values] |
160160
| Interpolation | filter | nearestneighbor, average, linear, quadratic, catrom, cubic, lanczos, spline36 |
161161
162+
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.
163+
164+
```
165+
<img src="photo.jpg?w=100" srcset="photo.jpg?w=100 1x, photo.jpg?w=100&dpr=2 2x" />
166+
```
167+
162168
## Advanced Topics
163169
164170
### Output Caching

readme.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,16 @@ See the [documentation page](doc/web.md) for more details.
6767

6868
Release History
6969
---------------
70-
#### WebRSize 0.3.1.0
71-
* Require MagicScaler 0.8.3 or later
72-
* Fix nuget config transform to place `configSections` as the first child of `configuration`
73-
74-
#### MagicScaler 0.8.3.0
75-
* Fixed image corruption (and possible access violation) when sharpening BGR/BGRA images in sRGB blending mode.
76-
* Use latest System.Buffers version for .NET Framework installations
70+
#### MagicScaler 0.8.4.0
71+
* Fixed an issue that caused sharpening to be a no-op when working with some pixel formats in sRGB blending mode.
72+
* Improved quality of scaling and sharpening with partially-transparent images.
73+
* Added [GitLink](https://github.com/GitTools/GitLink) to enable github source server support for debugging.
74+
75+
#### WebRSize 0.3.2.0
76+
* Fixed incorrect file extension for 404 images in the disk cache
77+
* Added exception handler for "Client Disconnected" errors when transmitting images from the HttpHandler
78+
* Added devicePixelRatio (dpr) setting to enable automatic size and quality adjustments for retina clients
79+
* Added "q" shortcut for quality setting
7780

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

0 commit comments

Comments
 (0)