I wish to get at the description properties such as Title , Tags , Rating, Subject. I can get hold of some information via EXIF set
convert dsc_0016.jpg -print "Properties__%[EXIF:Date*]" fred
and I can get the comment via
convert dsc_0016.jpg -print "Properties__%[comment]" fred
how do I get at the others
They are available in tools such as DigiKam which is a linux tool which runs on windows, so I suspect I just not finding the correct spell.
--
Cheers Ian Mac
Running ImageMagick 7.0.7-8 Q16 x64 2017-10-14 on a wondows 7 platform.
Using Window Description Properties
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Using Window Description Properties
IM can read any metadata stored in an image file as an EXIF tag or IPTC. See http://www.imagemagick.org/script/escape.php
digiKam stores extra metadata in its own database. (See https://docs.kde.org/trunk5/en/extragea ... p-database .) ImageMagick does not access this database.
digiKam stores extra metadata in its own database. (See https://docs.kde.org/trunk5/en/extragea ... p-database .) ImageMagick does not access this database.
snibgo's IM pages: im.snibgo.com
Re: Using Window Description Properties
When I was looking around for photo cataloging software that is what put me off most of them. I like the data in the photo so it is transferable. I used to use Microsoft Pro Photo Tools to embed my data but it no longer works on Windows 10digiKam stores extra metadata in its own database.
What are you doing with the data?
Out of interest convert is using a 6 version of IM. To use the 7 version you need to use magick which has more methods of working with data than V6.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Using Window Description Properties
Yes, I see what you mean.Bonzo wrote:When I was looking around for photo cataloging software that is what put me off most of them.
The problem is that if we want to find all photos in a collection that were taken with a certain lens and contain a certain subject, taken at around some time of day, there are basically two ways software can find those photos. The first is to read through the metadata of thousands (or hundreds of thousands) of image files. This may take many minutes or hours.
The second way is to use a database, which will find the images in a second or two. But we become tied into that cataloging software, even if it is open source. Switching to different software is a pain.
My own "solution" is a text file. Typically it is a single line of text per directory (one directory per day of photography) with an overall description of images. I can quickly scan the file by eye, or use grep or similar. This points me to a directory, and Windows Explorer shows me the images.
snibgo's IM pages: im.snibgo.com
Re: Using Window Description Properties
That was my thoughts as well.The second way is to use a database, which will find the images in a second or two. But we become tied into that cataloging software, even if it is open source. Switching to different software is a pain.
I used to pass all my photos through the Microsoft software and add the tags and location etc. Then I used Lightroom which will read the tags I inserted into the image. As I say the Microsoft tool no longer works and there are very few pieces of software that will add data to a RAW file as the file type was not designed for that; which seems very short sighted.
In Lightroom I can convert to the dng format and then insert the tags but it is a bit of a painfull process as I can not seem to be able to edit multiple photos at once.
Re: Using Window Description Properties
Thank you for the pointers, I've mainly cracked obtaining the information I required
S:\171222>convert dsc_0016.jpg -print "Copyright__%[IPTC:2:116]" fred
Copyright__© I.D.McCarthy
S:\171222>convert dsc_0016.jpg -print "Keywords__%[IPTC:2:25]" fred
Keywords__Canal;Rochdale Canal
S:\171222>convert dsc_0016.jpg -print "Title__%[IPTC:2:5]" fred
Title__Approaching West Summit.
S:\171222>convert dsc_0016.jpg -print "Caption__%[IPTC:2:120]" fred
Caption__Move Pan from Walsden to Littleborough, With Ian Kelshaw, Richard Nichols, and Ian Wacko Jackson.
S:\171222>convert dsc_0016.jpg -print "GPS Height__%[exif:GPSAltitude]" fred
GPS Height__235535/1000
S:\171222>convert dsc_0016.jpg -print "GPS Lat__%[exif:GPSLatitude]" fred
GPS Lat__53/1, 39/1, 57868/1000
S:\171222>convert dsc_0016.jpg -print "GPS Long__%[exif:GPSLongitude]" fred
GPS Long__2/1, 4/1, 54312/1000
S:\171222>convert dsc_0016.jpg -print "Date & Time Taken__%[exif:datetime]" fred
Date & Time Taken__2017:12:21 11:36:22
I then found the comment property with
S:\171222>convert dsc_0016.jpg -print "Properties__%[EXIF:Win*]" fred
Properties__exif:WinXP-Comments=82, 0, 97, 0, 110, 0, 100, 0, 111, 0, 109, 0, 32
, 0, 99, 0, 111, 0, 109, 0, 109, 0, 101, 0, 110, 0, 116, 0, 115, 0, 0, 0
interestingly the other properties are not there and its displayed in a form I would have to convert, but its possible however
The one I have not yet cracked is the description: Rating.
from another entry "Need help modifying Image specific attributes such as Rating "
https://www.imagemagick.org/discourse-s ... hp?t=19077
I read that
S:\171222>convert dsc_0016.jpg -print "Rating__%[xmp:rating]" fred
should work, but it doesn't, so I'm now at a loss
I've done a
convert dsc_0016.jpg -verbose info:-
and that does not show any entry with rating
Have i found a bug or two?
S:\171222>convert dsc_0016.jpg -print "Copyright__%[IPTC:2:116]" fred
Copyright__© I.D.McCarthy
S:\171222>convert dsc_0016.jpg -print "Keywords__%[IPTC:2:25]" fred
Keywords__Canal;Rochdale Canal
S:\171222>convert dsc_0016.jpg -print "Title__%[IPTC:2:5]" fred
Title__Approaching West Summit.
S:\171222>convert dsc_0016.jpg -print "Caption__%[IPTC:2:120]" fred
Caption__Move Pan from Walsden to Littleborough, With Ian Kelshaw, Richard Nichols, and Ian Wacko Jackson.
S:\171222>convert dsc_0016.jpg -print "GPS Height__%[exif:GPSAltitude]" fred
GPS Height__235535/1000
S:\171222>convert dsc_0016.jpg -print "GPS Lat__%[exif:GPSLatitude]" fred
GPS Lat__53/1, 39/1, 57868/1000
S:\171222>convert dsc_0016.jpg -print "GPS Long__%[exif:GPSLongitude]" fred
GPS Long__2/1, 4/1, 54312/1000
S:\171222>convert dsc_0016.jpg -print "Date & Time Taken__%[exif:datetime]" fred
Date & Time Taken__2017:12:21 11:36:22
I then found the comment property with
S:\171222>convert dsc_0016.jpg -print "Properties__%[EXIF:Win*]" fred
Properties__exif:WinXP-Comments=82, 0, 97, 0, 110, 0, 100, 0, 111, 0, 109, 0, 32
, 0, 99, 0, 111, 0, 109, 0, 109, 0, 101, 0, 110, 0, 116, 0, 115, 0, 0, 0
interestingly the other properties are not there and its displayed in a form I would have to convert, but its possible however
The one I have not yet cracked is the description: Rating.
from another entry "Need help modifying Image specific attributes such as Rating "
https://www.imagemagick.org/discourse-s ... hp?t=19077
I read that
S:\171222>convert dsc_0016.jpg -print "Rating__%[xmp:rating]" fred
should work, but it doesn't, so I'm now at a loss
I've done a
convert dsc_0016.jpg -verbose info:-
and that does not show any entry with rating
Have i found a bug or two?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Using Window Description Properties
It works for me. For example, in Windows (file properties) I set the rating of r2.tiff to 3. Then:
Code: Select all
f:\web\im\test>%IM%identify -quiet -format "%[xmp:*]" r2.tiff
xmp:Rating=3
snibgo's IM pages: im.snibgo.com
Re: Using Window Description Properties
I have placed the file i'm having problems with here -
https://www.dropbox.com/s/7l8pne97x4jux ... 6.JPG?dl=0
if I examine it with exiftool the rating is 2 which is also similar to what I see with Windows ie two stars in properties.
however using Version: ImageMagick 7.0.7-8 Q16 x64 2017-10-14
with the spell
identify -format "%[*]" dsc_0016.jpg
it does not display any rating in the listing which it outputs
Just what am I getting wrong?
--
Cheers Ian Mac
https://www.dropbox.com/s/7l8pne97x4jux ... 6.JPG?dl=0
if I examine it with exiftool the rating is 2 which is also similar to what I see with Windows ie two stars in properties.
however using Version: ImageMagick 7.0.7-8 Q16 x64 2017-10-14
with the spell
identify -format "%[*]" dsc_0016.jpg
it does not display any rating in the listing which it outputs
Just what am I getting wrong?
--
Cheers Ian Mac
Re: Using Window Description Properties
I assume rating is not in the EXIF or IPTC data.