From ced9539fef270fe133cb0ad6fc04c30bd5fa2dfe Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 7 Apr 2013 18:11:42 +0200 Subject: Add ability to specify thumbnail square crop hint In simple crop square mode it's sometimes viable to specify position of the square. This is vastly useful for portrait pictures so that you don't crop the head off the body. --- src/jpeg-utils.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/jpeg-utils.h') diff --git a/src/jpeg-utils.h b/src/jpeg-utils.h index 0e3cd1f..f8c9b6d 100644 --- a/src/jpeg-utils.h +++ b/src/jpeg-utils.h @@ -20,6 +20,7 @@ #include #include "setup.h" +#include "items.h" G_BEGIN_DECLS @@ -54,6 +55,8 @@ typedef struct { int timezone_shift; time_t fake_datetime; gchar *external_exif_data; + ThumbnailSquareType squared_thumbnail_type; + TCropHint thumbnail_crop_hint; } ExifData; @@ -87,8 +90,8 @@ gboolean resize_image (const gchar *src, const gchar *dst, unsigned long size_x, unsigned long size_y, int quality, gboolean thumbnail, - ThumbnailSquareType squared_thumbnail_type, - gboolean autorotate); + gboolean autorotate, + ExifData *exif); /* * get_image_sizes: retrieve image dimensions -- cgit v1.2.3