diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2011-06-04 20:10:34 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2011-06-04 20:10:34 +0200 |
| commit | 67735dc85fc4a25dcc3e0b30420b3ad5a6ac1c9f (patch) | |
| tree | 91407fb189dd2a97283c844297d7b6dab0c19152 /src/jpeg-utils.h | |
| parent | ee24863518448604b5600ab1e426d818975a76bb (diff) | |
| download | cataract-67735dc85fc4a25dcc3e0b30420b3ad5a6ac1c9f.tar.xz | |
Autorotate images according to EXIF Orientation info
This comes with a cost of decoding full image when only getting image size.
Diffstat (limited to 'src/jpeg-utils.h')
| -rw-r--r-- | src/jpeg-utils.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
