From 0c3b218886342e44275b087c41faf3b6a2b7f664 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 13 May 2019 22:16:28 +0200 Subject: jpeg-utils: Port to gexiv2 The gexiv2 library is just a GObject wrapper around exiv2 library. It's a healthy project that continually keeps up with exiv2 API changes. Adopted by e.g. GIMP there's certain guarantee of future maintenance. This allows us to get rid of C++ code, making it more readable and predictable. --- src/jpeg-utils.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/jpeg-utils.h') diff --git a/src/jpeg-utils.h b/src/jpeg-utils.h index 767320a..b73576b 100644 --- a/src/jpeg-utils.h +++ b/src/jpeg-utils.h @@ -28,6 +28,7 @@ G_BEGIN_DECLS #define CROP_SIMPLE_SHAVE_AMOUNT 0 /* percent */ /* EXIF data known keys */ +/* Exiv2 Tag Reference can be found at http://exiv2.org/metadata.html */ #define EXIF_APERTURE "Exif.Photo.FNumber" #define EXIF_CAMERA_MODEL "Exif.Image.Model" #define EXIF_DATETIME "Exif.Photo.DateTimeOriginal" @@ -99,12 +100,12 @@ gboolean exif_has_key (ExifData *exif, const gchar *key); */ gboolean resize_image (const gchar *src, const gchar *dst, unsigned long size_x, unsigned long size_y, - int quality, - gboolean thumbnail, - gboolean autorotate, - gboolean hidpi_strict_dimensions, - ExifData *exif, - gchar *resize_opts); + int quality, + gboolean thumbnail, + gboolean autorotate, + gboolean hidpi_strict_dimensions, + ExifData *exif, + gchar *resize_opts); /* * get_image_sizes: retrieve image dimensions @@ -118,7 +119,7 @@ void get_image_sizes (const gchar *img, * calculate_sizes: calculate maximal image sizes within specified limits keeping aspect ratio */ void calculate_sizes (const unsigned long max_width, const unsigned long max_height, - unsigned long *width, unsigned long *height); + unsigned long *width, unsigned long *height); /* * modify_exif: - strip thumbnail stored in EXIF table -- cgit v1.2.3