The way to do this is discussed on the exiv2 forum: 
http://dev.exiv2.org/boards/3/topics/901
You combine the separate options

For example:  ~/image.tests$ exiv2 -qpa blank.jpg

Results in no output, but:

~/image.tests$ exiv2 -q pa blank.jpg 
pa: Failed to open the file
blank.jpg            File name       : blank.jpg
blank.jpg            File size       : 4691 Bytes
blank.jpg            MIME type       : image/jpeg
blank.jpg            Image size      : 229 x 83
blank.jpg: No Exif data found in the file


** Changed in: exiv2 (Ubuntu)
       Status: New => Invalid

** Changed in: exiv2 (Ubuntu)
     Assignee: (unassigned) => Alan Pater (alan-pater)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to exiv2 in Ubuntu.
https://bugs.launchpad.net/bugs/1398251

Title:
  Options "-q" and "-Qm" not making quiet

Status in exiv2 package in Ubuntu:
  Invalid

Bug description:
  The option "-q" and "-Qm" should both suppress error messages.

  Both do not prevent the message "No Exif data found in the file", which 
  is shown on stderr when there are no such data:

  $ exiv2 -Qm pr test.jpg
  File name       : test.jpg
  File size       : 241565 Bytes
  MIME type       : image/jpeg
  Image size      : 2338 x 1654
  test.jpg: No Exif data found in the file

  (Same result for "exiv2 -q pr test.jpg")

  Option "-q" is described as "Silence  warnings  and  error messages from the 
Exiv2 library...". 
  Even though it's not obvious whether the message above is strictly from the 
library or from 
  the "exiv2" tool using the library, the description makes me expect the 
message would be suppressed.
  Option "-Qm" is setting the log level (of the tool, I suppose) to "mute" - 
which should clearly 
  suppress the message. 
  Also, the description notes "-Qm is equivalent to -q" - implying that "-q" 
should also mute.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/exiv2/+bug/1398251/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to