Recent posts

#81
The "exiftool" Application / Re: Strawberry Perl Update
Last post by Phil Harvey - March 19, 2025, 11:48:41 AM
I can't answer that either.

- Phil
#82
Newbies / Re: How to access -filetype fr...
Last post by wzorn - March 19, 2025, 11:45:40 AM
Perfect!  Thank you very much.
#83
Metadata / Re: OMDS has released new came...
Last post by Phil Harvey - March 19, 2025, 11:44:00 AM
Hi Herb,

Thanks!

- Phil
#84
Newbies / Re: How to access -filetype fr...
Last post by StarGeek - March 19, 2025, 11:35:24 AM
Use the -listf option.
#85
Newbies / Re: How to access -filetype fr...
Last post by wzorn - March 19, 2025, 11:26:17 AM
I figured it out.    Yes, I'm trying to do it through python.  It looks like what I needed is File:FileType or File:FileTypeExtension.

Is a list of possible values for those tags somewhere?
#86
Newbies / Re: How to access -filetype fr...
Last post by StarGeek - March 19, 2025, 11:14:31 AM
Are you asking for how to figure out a file type using Python, or how to figure it out running exiftool?

With exiftool, you can check the FileType tag (see the Extra Tags page)
C:\>exiftool -G1 -a -s -filetype Y:\!temp\x\y\Green-Crystal.jpg
[File]          FileType                        : PNG

You can correct the extension with the FileTypeExtension tag
C:\>exiftool -G1 -a -s -FileTypeExtension Y:\!temp\x\y\Green-Crystal.jpg
[File]          FileTypeExtension               : png

C:\>exiftool -progress "-Filename<%f.$FileTypeExtension" Y:\!temp\x\y\Green-Crystal.jpg
======== Y:/!temp/x/y/Green-Crystal.jpg [1/1]
'Y:/!temp/x/y/Green-Crystal.jpg' --> 'Y:/!temp/x/y/Green-Crystal.png'
    1 image files updated

A pure Python way to do so would be outside the scope of this forum.
#87
Newbies / How to access -filetype from P...
Last post by wzorn - March 19, 2025, 11:06:38 AM
This should be an easy question, but I'm scratching my head.  I'm using python to process some image files and I've run across the case where the exiftool will not write metadata to the file because the extension is .jpg, but the filetype (in the metadata) is .png.  So, my approach is to read the filetype metadata and validate that the extensions are correct on my files.

I think I keep looking in the right places I just don't see what I'm looking for.  I think what I need is the [GROUP:]TAG name for it.
#88
The "exiftool" Application / Re: Strawberry Perl Update
Last post by aerk - March 19, 2025, 10:23:51 AM
I do not know how that impacts ExifTool so it is very difficult for me to answer.
#89
The "exiftool" Application / Re: Problem with Timezone?
Last post by accforexif - March 19, 2025, 10:20:23 AM
Quote from: StarGeek on March 19, 2025, 12:43:27 AMUsing your original command and adding the -api QuickTimeUTC should work.

Example on my system, -07:00 time zone
C:\>exiftool -P -overwrite_original -api QuickTimeUTC "-filemodifydate<filename" "-createdate<filename" "-FileCreateDate<filename" Y:\!temp\x\y\2025-03-16-19-08-04.mp4
    1 image files updated

C:\>exiftool -time:all -G1 -a -s Y:\!temp\x\y\2025-03-16-19-08-04.mp4
[System]        FileModifyDate                  : 2025:03:16 19:08:04-07:00
[System]        FileAccessDate                  : 2025:03:16 19:08:04-07:00
[System]        FileCreateDate                  : 2025:03:16 19:08:04-07:00
[QuickTime]     CreateDate                      : 2025:03:17 02:08:04
[QuickTime]     ModifyDate                      : 0000:00:00 00:00:00
<snip...>

The FileModifyDate is set to the exact time from the filename. The Quicktime:CreateDate is set to the UTC time, 7 hours ahead of my local time.

If I use the -api TimeZone option to temporarily set the time to KST (which would be done as KST-9 on Windows, but I think would be Asia/Seoul on Mac/Linux), I get the correct UTC time for +09:00 time zone

C:\>exiftool -P -overwrite_original -api timezone=KST-9 -api QuickTimeUTC "-filemodifydate<filename" "-createdate<filename" "-FileCreateDate<filename" Y:\!temp\x\y\2025-03-16-19-08-04.mp4
    1 image files updated

C:\>exiftool -time:all -G1 -a -s Y:\!temp\x\y\2025-03-16-19-08-04.mp4
[System]        FileModifyDate                  : 2025:03:16 03:08:04-07:00
[System]        FileAccessDate                  : 2025:03:16 03:08:04-07:00
[System]        FileCreateDate                  : 2025:03:16 03:08:04-07:00
[QuickTime]     CreateDate                      : 2025:03:16 10:08:04
[QuickTime]     ModifyDate                      : 0000:00:00 00:00:00
<snip...>

Running the -Time:all command with the -api timezone=KST-9 and -api QuickTimeUTC shows the correct results for your time zone. The file system time stamps are further adjusted
C:\>exiftool -time:all -G1 -a -s -api timezone=KST-9 -api QuickTimeUTC Y:\!temp\x\y\2025-03-16-19-08-04.mp4
[System]        FileModifyDate                  : 2025:03:16 19:08:04+09:00
[System]        FileAccessDate                  : 2025:03:19 13:29:48+09:00
[System]        FileCreateDate                  : 2025:03:16 19:08:04+09:00
[QuickTime]     CreateDate                      : 2025:03:16 19:08:04+09:00
[QuickTime]     ModifyDate                      : 0000:00:00 00:00:00
<snip...>
finally it works! it didn't work because i used -api quicktimeutc with " ". thank you!
#90
Metadata / OMDS has released new camera O...
Last post by herb - March 19, 2025, 08:15:51 AM
Hello,

OM Digital Solution has released its latest camera body: OM-3
It's CameraType2 is: S0123

Best regards
herb