From 67735dc85fc4a25dcc3e0b30420b3ad5a6ac1c9f Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 4 Jun 2011 20:10:34 +0200 Subject: Autorotate images according to EXIF Orientation info This comes with a cost of decoding full image when only getting image size. --- src/jpeg-utils.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/jpeg-utils.h') diff --git a/src/jpeg-utils.h b/src/jpeg-utils.h index e5845bc..a682fd1 100644 --- a/src/jpeg-utils.h +++ b/src/jpeg-utils.h @@ -73,13 +73,15 @@ 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); + ThumbnailSquareType squared_thumbnail_type, + gboolean autorotate); /* * get_image_sizes: retrieve image dimensions */ void get_image_sizes (const gchar *img, - unsigned long *width, unsigned long *height); + unsigned long *width, unsigned long *height, + gboolean autorotate); /* * calculate_sizes: calculate maximal image sizes within specified limits keeping aspect ratio -- cgit v1.2.3