From aeefd1959aad3b80a0fe02083edbd5ebfb09510b Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 18 Sep 2016 19:34:56 +0200 Subject: Introduce resizing thresholds This commit brings deeper changes to the image sizes concept. The goal was to allow more flexible input in resizing vs. supplied files mixed mode. Instead of hard flags the decision whether to resize or copy an image is now based on threshold. While not 100% universal, it brings more control regarding image size bounds. Also brings a level of tolerance for specific errors (off-by-one exports). Image sizes' rules are a bit simpler, hopefully easier to understand. A lot can be achieved by combination of thresholds. --- src/items.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/items.h') diff --git a/src/items.h b/src/items.h index 2d0df59..24a521f 100644 --- a/src/items.h +++ b/src/items.h @@ -126,6 +126,11 @@ void get_album_titles (const gchar *filename, gchar **title, gchar **description */ TGalleryType get_child_gallery_type (const gchar *filename); +/* + * dup_path_info: duplicate pathinfo data + */ +TPathInfo * dup_path_info (TPathInfo *path_info); + /* * free_path_info: free allocated pathinfo data */ -- cgit v1.2.3