ImageMetaData (set/edit EXIF/IPTC/XMP-metadata and Comment of image files by Exiv2 lib) content plugin

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2tbeu
Sources link points to old version.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

fenix_productions wrote:Sources link points to old version.
Yes, I was too lazy for too few changes. Try again in a few minutes.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

I tried to define the new tag "CountryCode" with

Code: Select all

098=8|CountryCode|Iptc.Application2.CountryCode
in jpg-comment.ini.

First time TC crashed, now it seem to work.
Is the new definition OK?

BTW:
For testing I removed all entries for EXIF and XMP in INI-File and removed also "jpg-comment" from second token.


Peter
Last edited by Peter on 2012-02-01, 17:10 UTC, edited 2 times in total.
TC 10.xx / #266191
Win 10 x64
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

Peter wrote:First time TC crashed
What did you do? Can you reproduce and tell me all the steps and necessary information! OK, have just seen it.
Peter wrote:Is the new definition OK?
Yes, token looks alright.
Last edited by tbeu on 2012-02-01, 17:15 UTC, edited 1 time in total.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Completion:
How to handle the translations?
For "LocationName" I get "LocationName", for "Sublocation" I get "Stadtbereich" ..

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

Peter wrote:How to handle the translations?
You need to put a jpg-comment.lng next to your jpg-comment.ini.

Code: Select all

[deu]
CountryCode=Landeskürzel
LocationName=Ortsname
Sublocation=Stadtbereich
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

tbeu wrote:You need to put a jpg-comment.lng next to your jpg-comment.ini.
Thanks, I see.

To reproduce the former crash is not easy. Maybe it was an incident with other problems ...

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Here are strings which appear in English although there is a German language file (Some strings are defined with blanks in existing LNG ...)

Code: Select all

DateCreated=
TimeCreated=
Writer=
SpecialInstructions=
SuppCategory=
BylineTitle=
EditStatus=
FixtureId=
ObjectName=
LocationName=
ProvinceState=
CountryName=
TransmissionReference=
RecordVersion=
ImageType=
CountryCode=
But when I translate e.g. "DateCreated" I have problem to use this entry.

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

2Peter
Can you please send me your jpg-comment.lng and jpg-comment.ini.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Sent info.

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

I think I found the error. You must not have duplicates of translated entries in the language file, i.e. this is wrong

Code: Select all

Creation Date = Erstellungsdatum
DateCreated = Erstellungsdatum
. Translation map must be injective.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

German Umlaute

Post by *Peter »

Hello Thomas

I tried to use this definition:

Code: Select all

[attrplugin]
problem=jpg-comment.DateCreated := "" | jpg-comment.LocationName := "-- a ä o ö u ü A Ä O Ö U Ü --" | jpg-comment.SubLocation := "-- a ä o ö u ü A Ä O Ö U Ü --" | jpg-comment.Caption := "-- a ä o ö u ü A Ä O Ö U Ü --" | jpg-comment.Contact := "-- a ä o ö u ü A Ä O Ö U Ü --" | jpg-comment.Copyright := "-- a ä o ö u ü A Ä O Ö U Ü --" | jpg-comment.CountryName := "-- a ä o ö u ü A Ä O Ö U Ü --" | jpg-comment.CountryCode := "" | jpg-comment.Source := "-- a ä o ö u ü A Ä O Ö U Ü --" | jpg-comment.TransmissionReference := "-- a ä o ö u ü A Ä O Ö U Ü --" | jpg-comment.Headline := "-- a ä o ö u ü A Ä O Ö U Ü --" | jpg-comment.Subject := "-- a ä o ö u ü A Ä O Ö U Ü --"
It works fine to set and to display it in TC, but analysing it with Exiftool and with XnView shows problems:
- XnView is OK, but not "Caption" and "Copyroight"
- Exiftool(-k) has problems with all entries, but with the two mentioned entreis it has other problems.
- ExiftoolGUI is the same as XnView.

Please take a look behind it.

Thanks

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: German Umlaute

Post by *tbeu »

Thanks for testing. By chance I found a bug in the plugin which could lead to the run-time exception you observed earlier during test.
Peter wrote:- XnView is OK, but not "Caption" and "Copyright"
If you use ft_string option instead of ft_stringw option in jpg-comment.ini for "Caption" and "Copyright" XnView displays them correctly, too.

Code: Select all

074=8|Caption|Iptc.Application2.Caption
076=8|Copyright|Iptc.Application2.Copyright
Peter wrote:- Exiftool(-k) has problems with all entries, but with the two mentioned entries it has other problems.
If you run exiftool from command line with -L option (= Latin1 character set) the entries are corretly displayed. But not in command window which has problems with encodings.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Re: German Umlaute

Post by *Peter »

Thanks for your quick reply and solution.
tbeu wrote:.... By chance I found a bug in the plugin which could lead to the run-time exception you observed earlier during test.....
Will there be an update of plugin or is it only a small issue?
tbeu wrote:...If you use ft_string option instead of ft_stringw option in jpg-comment.ini for "Caption" and "Copyright" XnView displays them correctly, too.....
Thanks. So it seem to be a basic setting of Exiv2 and not an issue of XnView?
tbeu wrote:...If you run exiftool from command line with -L option (= Latin1 character set) the entries are corretly displayed. But not in command window which has problems with encodings.
With "command window" you mean the "exiftool(-k).exe"?

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: German Umlaute

Post by *tbeu »

Peter wrote:Will there be an update of plugin or is it only a small issue?
Yes and yes. It is not only this issue ...
Peter wrote:So it seem to be a basic setting of Exiv2 and not an issue of XnView?
No, it is matter of XnView which does not correctly display UTF-8 encoded IPTC metadata.
Peter wrote:With "command window" you mean the "exiftool(-k).exe"?
I checked with old exiftool.exe Vs. 8.0.6.0 on command line. Command window is window of Eingabeaufforderung.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Post Reply