[Resolved] Speed up EXIF extraction?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
NeilF

[Resolved] Speed up EXIF extraction?

Post by NeilF »

Is there a way to speed up EXIF extraction?

If I currently do:-
identify -ping -format "%[exif:*]" <file>

The response is quite slow, seemingly in proportion to the image size.

Is there a way of getting the EXIF tags quicker?
Last edited by NeilF on 2010-08-23T06:59:42-07:00, edited 1 time in total.
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: Speed up EXIF extraction?

Post by Drarakel »

With identify, you have to specify "-ping" after the "-format" option, to be quicker:

Code: Select all

identify -format "%[exif:*]" -ping <file>
And you could also use that - for JPG files:

Code: Select all

identify -define jpeg:size=64x64 -format "%[exif:*]" <file>
It probably won't be as quick as with "-ping" and it's not needed in your example, but it may be useful if you want other image properties (where "-ping" might not be appropriate).
NeilF

Re: Speed up EXIF extraction?

Post by NeilF »

Drarakel wrote:With identify, you have to specify "-ping" after the "-format" option, to be quicker:

Code: Select all

identify -format "%[exif:*]" -ping <file>
And you could also use that - for JPG files:

Code: Select all

identify -define jpeg:size=64x64 -format "%[exif:*]" <file>
It probably won't be as quick as with "-ping" and it's not needed in your example, but it may be useful if you want other image properties (where "-ping" might not be appropriate).
What a WORLD of difference! Adding the -ping in the right place makes if multiple times faster!!! THANKS!!!
Post Reply