]> mj.ucw.cz Git - libucw.git/commitdiff
fixed meaning of "image-tool -e" switch
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Sun, 10 Sep 2006 17:47:57 +0000 (19:47 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Sun, 10 Sep 2006 17:47:57 +0000 (19:47 +0200)
images/image-tool.c

index 66f368116dcc6e089e64da6322755172cc605e0e..1d4f68a0e45416e37c4ee8d510319b28655fe40f 100644 (file)
@@ -178,7 +178,8 @@ main(int argc, char **argv)
   io.fastbuf = bopen(input_file_name, O_RDONLY, 1 << 18);
   io.format = input_format ? : image_file_name_to_format(input_file_name);
 #ifdef CONFIG_IMAGES_EXIF
-  io.flags |= IMAGE_IO_WANT_EXIF;
+  if (exif)
+    io.flags |= IMAGE_IO_WANT_EXIF;
 #endif
   TRY(image_io_read_header(&io));
   if (!output_file_name)