summaryrefslogtreecommitdiff
path: root/src/jpeg-utils.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2013-04-07 18:11:42 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2013-04-07 18:11:42 +0200
commitced9539fef270fe133cb0ad6fc04c30bd5fa2dfe (patch)
tree91e432faf1482e7adedcd0ea6e6942861325d7dc /src/jpeg-utils.h
parentd912f084ffbcae0ca4b8fdfb355d6bbd6a6d3506 (diff)
downloadcataract-ced9539fef270fe133cb0ad6fc04c30bd5fa2dfe.tar.xz
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.
Diffstat (limited to 'src/jpeg-utils.h')
-rw-r--r--src/jpeg-utils.h7
1 files changed, 5 insertions, 2 deletions
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 <glib.h>
#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