Phostoshop Layer Names, Layer Unicode Names and some data missing on large files

Started by Teo_, March 09, 2017, 07:04:43 AM

Previous topic - Next topic

Teo_

I'm processing a lot of .psd files and I have to extract Layer Unicode Names and other data.
I've found that I can't extract this data from images larger than about 190 MB.
Is it a bug?


Testing from macOS 10.12.3 and ExifTool version 10.46


This what happens resizing the same image:
$ exiftool -ver -FileName -FileSize -ImageSize -LayerUnicodeNames Test/ -r
10.46
======== Test/Test-file-resized-3000.psd
File Name                       : Test-file-resized-3000.psd
File Size                       : 38 MB
Image Size                      : 3000x2206
Layer Unicode Names             : Sfondo, </Layer group>, </Layer group>, Follicolo, Follicolo, Connettivo stromatico, Epitelio follicolare, Colloide, Lamina basale, IT, </Layer group>, Basal lamina, Follicle, Follicle, Connective tissue, Follicular epithelium, Colloid, EN, </Layer group>, Forma 5, Forma 6, Forma 7, Forma 8, Shapes, Definitions
======== Test/Test-file-resized-6500.psd
File Name                       : Test-file-resized-6500.psd
File Size                       : 175 MB
Image Size                      : 6500x4779
Layer Unicode Names             : Sfondo, </Layer group>, </Layer group>, Follicolo, Follicolo, Connettivo stromatico, Epitelio follicolare, Colloide, Lamina basale, IT, </Layer group>, Basal lamina, Follicle, Follicle, Connective tissue, Follicular epithelium, Colloid, EN, </Layer group>, Forma 5, Forma 6, Forma 7, Forma 8, Shapes, Definitions
======== Test/Test-file-resized-6800.psd
File Name                       : Test-file-resized-6800.psd
File Size                       : 191 MB
Image Size                      : 6800x5000
======== Test/Test-file-resized-7000.psd
File Name                       : Test-file-resized-7000.psd
File Size                       : 202 MB
Image Size                      : 7000x5147
======== Test/Test-file.psd
File Name                       : Test-file.psd
File Size                       : 250 MB
Image Size                      : 7836x5762
    1 directories scanned
    5 image files read

Phil Harvey

Thanks for this report.

I have arbitrarily set a limit of 100MB on the maximum size of Layer data that Exiftool will process.  This is to avoid using too much memory because ExifTool currently loads all of the layer data into memory.  I'll see about changing this to load only what is necessary.

- 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 ($).

Phil Harvey

OK, done.  ExifTool 10.47 (when released) will support arbitrarily large layers.

- 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 ($).

Teo_