From ddd9556689af055355a07cf2766fe95eaed4e38e Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 2 Oct 2016 16:58:27 +0200 Subject: 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 --- src/jpeg-utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/jpeg-utils.h') diff --git a/src/jpeg-utils.h b/src/jpeg-utils.h index e23dee7..d0664c9 100644 --- a/src/jpeg-utils.h +++ b/src/jpeg-utils.h @@ -100,6 +100,7 @@ gboolean resize_image (const gchar *src, const gchar *dst, int quality, gboolean thumbnail, gboolean autorotate, + gboolean hidpi_strict_dimensions, ExifData *exif, gchar *resize_opts); -- cgit v1.2.3