From 248a9af6ad668b6f09f79dda548721756fe11d79 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 4 Jan 2015 23:01:42 +0100 Subject: Introduce new "fixed" thumbnail crop mode This mode retains given aspect ratio and crops the area from inside of the source image. --- src/setup.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/setup.h') diff --git a/src/setup.h b/src/setup.h index 4678423..f49eb9a 100644 --- a/src/setup.h +++ b/src/setup.h @@ -86,6 +86,11 @@ typedef struct { gchar *footer; } TGallerySetup; +typedef enum { + CROP_STYLE_NORMAL = 0, + CROP_STYLE_SQUARED, + CROP_STYLE_FIXED +} TCropStyle; typedef struct { gchar *name; @@ -95,9 +100,11 @@ typedef struct { int portrait_width; int portrait_height; int square_size; + int crop_width; + int crop_height; int quality; gboolean no_resize; - gboolean squared_thumb; + TCropStyle thumb_crop_style; } TImageSize; typedef struct { -- cgit v1.2.3