ZTree.com  | ZEN  | About...  

 Index   Back

[OT] Tool for EXIF tag editing and removal ??   [OT]

By: Ian Binnie   Homepage   Sydney  
Date: Nov 14,2007 at 11:24
In Response to: [OT] Tool for EXIF tag editing and removal ?? (Bob Selby)

> Thanks looks worth a visit - but a GUI version would be better for what I
> want.

I was also going to suggest jhead, which I use from the ZTreeWin Application menu.
This lets you manipulate Exif, but not add/remove individual tags.

Have a look at:-
http://www.ztwiki.com/tiki-index.php?page=u_ZbarJpegExifView

Whatever you go DON'T use the XP Properties to change metadata.
This can totally screw up your structure - especially if you camera uses Motorola format TIFF.

Unfortunately the TIFF format has hard links, so it is not possible to edit Exif data, unless the size of each tag remains unchanged.

The only alternative is to read the tags, and reconstruct the data.
If you go down this path you need to have a knowledge of each tag, and to discard unknown tags e.g. Makernote

M$ tries to rewrite, but changes the order of tags, keeps tags it does not understand, and just to make things worse copies COM data to Exif Comments, but these are not formatted in accord with the Exif standard.

Level1
Picture (JPEG) Utility Menu

Level2
Listing of Picture Information Menu

Level3
Exif listing of Current JPG to Screen
:: Requires: jhead.exe
:: Source: http://www.sentex.ca/~mwandel/jhead/
#ZTTools\jhead.exe %1
pause

Level3
Exif listing of Current JPG to File
#ZTTools\jhead.exe %1 > %2:%3\%4.txt

Level3
Exif listing of Current JPG to File (Verbose)
#ZTTools\jhead.exe -v %1 > %2:%3\%4.txt

Level3
Exif listing of Tagged JPG to Screen
:: #ZTTag #ZTTemp\~ZTTag.bat -f#ZTTools\jhead.exe %1
CALL #ZTTemp\~ZTTag.bat
pause

Level3
Exif listing of Tagged JPG to File (Verbose)
:: #ZTTag #ZTTemp\~ZTTag.bat -f#ZTTools\jhead.exe -v %1 > %2:%3\%4.txt
CALL #ZTTemp\~ZTTag.bat

Level2@
File Time Menu

Level3
Set Current/Tagged JPG time to Exif header time
SET ZTTagged=False
:: #ZTIfTagged SET ZTTagged=True
IF [%%ZTTagged%%]==[False] GOTO NoTag
:: #ZTTag #ZTTemp\~ZTTag.bat -f#ZTTools\jhead.exe -ft %1
CALL #ZTTemp\~ZTTag.bat
GOTO End
:NoTag
#ZTTools\jhead.exe -ft %1
:End

Level3
Set ALL JPG time to what is stored in the Exif header
:: Requires: jhead.exe
:: Source: http://www.sentex.ca/~mwandel/jhead/
#ZTTools\jhead.exe -ft *.jpg

Level3
Adjust time stored in the Exif header
:: Requires: jhead.exe
:: Source: http://www.sentex.ca/~mwandel/jhead/
:: #ZTSet EXIF_TIME "Enter Time Correction e.g. -9 (or -9:00) for Britian :"
#ZTTools\jhead.exe -ta%EXIF_TIME% %1

Level3
Adjust Current/Tagged JPG time stored in the Exif header
:: Requires: jhead.exe
:: Source: http://www.sentex.ca/~mwandel/jhead/
:: #ZTSet EXIF_TIME "Enter Time Correction e.g. -9 (or -9:00) for Britian:"
SET ZTTagged=False
:: #ZTIfTagged SET ZTTagged=True
IF [%%ZTTagged%%]==[False] GOTO NoTag
:: #ZTTag #ZTTemp\~ZTTag.bat -f#ZTTools\jhead.exe -ta%EXIF_TIME% %1
:: #ZTTag #ZTTemp\~ZTTag.bat -a -f#ZTTools\jhead.exe -ft %1
CALL #ZTTemp\~ZTTag.bat
DEL #ZTTemp\~ZTTag.bat
GOTO End
:NoTag
#ZTTools\jhead.exe -ta%EXIF_TIME% %1
#ZTTools\jhead.exe -ft %1
:End

Level3
Adjust date stored in the Exif header
:: Requires: jhead.exe
:: Source: http://www.sentex.ca/~mwandel/jhead/
:: #ZTSet EXIF_TIME "Enter Date Correction new_date-old_date e.g. 2007:01:15-2006:01:15"
#ZTTools\jhead.exe -da%EXIF_TIME% %1

Level3
Adjust Current/Tagged JPG date stored in the Exif header
:: Requires: jhead.exe
:: Source: http://www.sentex.ca/~mwandel/jhead/
:: #ZTSet EXIF_TIME "Enter Date Correction new_date-old_date e.g. 2007:01:15-2006:01:15"
SET ZTTagged=False
:: #ZTIfTagged SET ZTTagged=True
IF [%%ZTTagged%%]==[False] GOTO NoTag
:: #ZTTag #ZTTemp\~ZTTag.bat -f#ZTTools\jhead.exe -da%EXIF_TIME% %1
:: #ZTTag #ZTTemp\~ZTTag.bat -a -f#ZTTools\jhead.exe -ft %1
CALL #ZTTemp\~ZTTag.bat
DEL #ZTTemp\~ZTTag.bat
GOTO End
:NoTag
#ZTTools\jhead.exe -da%EXIF_TIME% %1
#ZTTools\jhead.exe -ft %1
:End

Level2@
Comments Menu

Level3
Set Comment for Current/Tagged JPG/s
:: #ZTSet EXIF_COM "Enter Comment:"
SET ZTTagged=False
:: #ZTIfTagged SET ZTTagged=True
IF [%%ZTTagged%%]==[False] GOTO NoTag
:: #ZTTag #ZTTemp\~ZTTag.bat -f#ZTTools\jhead.exe -cl "%EXIF_COM%" %1
:: #ZTTag #ZTTemp\~ZTTag.bat -a -f#ZTTools\jhead.exe -ft %1
CALL #ZTTemp\~ZTTag.bat
DEL #ZTTemp\~ZTTag.bat
GOTO End
:NoTag
#ZTTools\jhead.exe -cl "%EXIF_COM%" %1
#ZTTools\jhead.exe -ft %1
:End

627 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 73 users online (0 registered, 73 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 8:43 am UTC  |  Hits:62,398,680  (13,466 Today )
RSS Feed