Get the image number

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
cedk
Posts: 16
Joined: 2010-11-23T05:36:22-07:00
Authentication code: 8675308

Get the image number

Post by cedk »

Hello,

I gonna buy a camera and I want to be sure of how many pitcures was taken. I've read that 'identify' could return it. The page http://www.imagemagick.org/script/identify.php says
The information returned includes the image number ...
.
But I can find it in the command return, even with "-verbose".
Could you help me ?

Thanks
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Get the image number

Post by snibgo »

I don't know what that "image number" is. If you want to know the number of photos that camera has taken, the file may contain a "ShutterCount" field, which exiftool can tell you:

Code: Select all

f:\web\im>exiftool -ShutterCount aga_2996.nef

Shutter Count                   : 3152
snibgo's IM pages: im.snibgo.com
cedk
Posts: 16
Joined: 2010-11-23T05:36:22-07:00
Authentication code: 8675308

Re: Get the image number

Post by cedk »

Thnaks, that's exactly what I was looking for :-) !
I thought that IM could answer me... but it's OK
Regards
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Get the image number

Post by snibgo »

Quite possibly you can also get it from ImageMagick, with some strange incantation. But for metadata that isn't directly concerned with images, I prefer exiftool.
snibgo's IM pages: im.snibgo.com
Post Reply