uninitialized value $fileType

Started by Malus, March 07, 2023, 05:21:45 AM

Previous topic - Next topic

Malus

Hi!

I'm using Exiftool.exe v12.57 packed by OLiver Betz along with PyExiftool. When running:

Exiftool -charset filename=utf8 -charset iptc=utf8 -m -q -api IgnoreTags=all -s2 -description -headline -title -subject -supplementalcategories -location -city -state -country -countrycode -imagedescription -caption-abstract -datetimeoriginal -xpcomment filename.ext
everything works fine with the file types .xmp, ,psb, .dng, .tif, .tiff and .jpg.

But with .psd files I get:

Quote'Use of uninitialized value $fileType in string eq at C:\\Program Files\\ExifTool\\exiftool_files/lib/Image/ExifTool/Photoshop.pm line 712.
Use of uninitialized value $fileType in string eq at
C:\\Program Files\\ExifTool\\exiftool_files/lib/Image/ExifTool/Photoshop.pm line 712.'

I haven't tried .psb files yet.


Thanks for reading, malus





Phil Harvey

#1
Hi Malus,

Very interesting.  FileType is not defined because you are ignoring all tags.

I'll patch this in the next release, but until then you can add -api requesttags=filetype to your command.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Malus

Hi Phil,

I found two more file types:

.psb files produce the same error message as .psd files.

For .dng file I get:
Quote'Use of uninitialized value in pattern match (m//) at C:\\Program Files\\ExifTool\\exiftool_files/lib/Image/ExifTool.pm line 7684.'
Your work around works well for all file types I use.


Thanks for reading, malus

Phil Harvey

Yes, thanks.  This will be fixed in the next release.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).