diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2016-10-02 16:58:27 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2016-10-02 17:32:43 +0200 |
| commit | ddd9556689af055355a07cf2766fe95eaed4e38e (patch) | |
| tree | b6de3e57a5cfbd0d855277c3b8c93f16549f0bf2 /src/block-parser.c | |
| parent | 56ff7bc45505b3e39b2f9be70e7bee3f80ec4f70 (diff) | |
| download | cataract-ddd9556689af055355a07cf2766fe95eaed4e38e.tar.xz | |
Add support for HiDPI images
This works by creating corresponding hidpi image sizes on startup and
letting the machinery generate high resolution images from the source
images (no way to use supplied images). However since browsers expect
exact image dimension multiples for the particular scale factor,
a reference image size (scale factor 1.0x) must be read first, then
cropped to match reference aspect ratio and resized to exact dimensions.
That way pixel-perfect results can be achieved for the chosen scale
factor.
TODO: the CSS background-image: image-set() tags are not supported
on Firefox.
TODO: try the 1.5x scale factor
Diffstat (limited to 'src/block-parser.c')
0 files changed, 0 insertions, 0 deletions
