From 63d61416e4f2d03cd71cd0504dbb35cd0f6982f5 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Thu, 30 Jul 2015 11:32:53 +0100 Subject: [PATCH] warn if autorot + no exif warn if you use the --rotate option to vipsthumbnail but vips has been built without libexif see https://github.com/jcupitt/libvips/issues/319 --- tools/vipsthumbnail.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/vipsthumbnail.c b/tools/vipsthumbnail.c index a29651c5..180ffaa8 100644 --- a/tools/vipsthumbnail.c +++ b/tools/vipsthumbnail.c @@ -68,6 +68,8 @@ * 9/5/15 * - use vips_resize() instead of our own code * - premultiply alpha + * 30/7/15 + * - warn if you autorot and there's no exif support */ #ifdef HAVE_CONFIG_H @@ -720,6 +722,14 @@ main( int argc, char **argv ) thumbnail_height = thumbnail_width; } + if( rotate_image ) { +#ifndef HAVE_EXIF + vips_warn( "vipsthumbnail", "%s", + _( "auto-rotate disabled: " + "libvips built without exif support" ) ); +#endif /*!HAVE_EXIF*/ + } + result = 0; for( i = 1; i < argc; i++ ) {