Upper Limit for a PSD File

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Upper Limit for a PSD File

Post by elisegev »

I have a PSD file, which is 58 MB big! I tried to use 'identify' to see what information I can get about this file, but the utility hangs. The test was done on both Windows and HP-UX with ImageMagick 6.2.4. Does anyone know what is the practical size limit of files to be handled by ImageMagick?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

We process multi-gigabyte images with ImageMagick frequently. Add -debug cache,coder to your command line to track where ImageMagick is hanging.
elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Post by elisegev »

After these lines 'identify' slows down:

08:50:43 0:31 29.550u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1055/Coder
reading image data for layers
08:50:43 0:31 29.550u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1063/Coder
reading data for layer 0
08:50:43 0:31 29.550u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1068/Coder
reading data for channel 0
08:50:43 0:31 29.550u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1094/Coder
layer data is RLE compressed
08:51:20 1:07 66.030u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1068/Coder
reading data for channel 1
08:51:20 1:07 66.030u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1094/Coder
layer data is RLE compressed
08:51:58 1:45 104.060u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1068/Code
r
reading data for channel 2
08:51:58 1:45 104.060u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1094/Code
r
layer data is RLE compressed
08:52:36 2:23 142.120u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1068/Code
r
reading data for channel 3
08:52:36 2:23 142.120u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1094/Code
r
layer data is RLE compressed
08:53:14 3:02 180.300u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1063/Code
r
reading data for layer 1
08:53:14 3:02 180.300u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1068/Code
r
reading data for channel 0
08:53:14 3:02 180.300u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1094/Code
r
layer data is RLE compressed
08:54:27 4:15 253.330u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1068/Coder
reading data for channel 1
08:54:27 4:15 253.330u 6.2.4 Coder identify[16224]: psd.c/ReadPSDImage/1094/Coder
layer data is RLE compressed
elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Post by elisegev »

I have run the utility identify with -debug cache,coder for a large PSD (58 MB) file. After 202 minutes the process did not finish. The tail of the output is:

13:23:42 202:03 12100.850u 6.2.4 Cache identify[8653]: cache.c/WriteCachePixels/4138/Cache
1x1+32+1024
13:23:42 202:03 12100.850u 6.2.4 Cache identify[8653]: cache.c/ReadCachePixels/3212/Cache
1x1+64+1024
13:23:42 202:03 12100.850u 6.2.4 Cache identify[8653]: cache.c/WriteCachePixels/4138/Cache
1x1+64+1024
13:23:42 202:03 12100.850u 6.2.4 Cache identify[8653]: cache.c/ReadCachePixels/3212/Cache
1x1+128+1024
13:23:42 202:03 12100.850u 6.2.4 Cache identify[8653]: cache.c/WriteCachePixels/4138/Cache
1x1+128+1024
13:23:42 202:03 12100.860u 6.2.4 Cache identify[8653]: cache.c/ReadCachePixels/3212/Cache
1x1+256+1024
13:23:42 202:03 12100.860u 6.2.4 Cache identify[8653]: cache.c/WriteCachePixels/4138/Cache
1x1+256+1024
13:23:42 202:03 12100.870u 6.2.4 Cache identify[8653]: cache.c/ReadCachePixels/3212/Cache
1x1+512+1024
13:23:42 202:03 12100.870u 6.2.4 Cache identify[8653]: cache.c/WriteCachePixels/4138/Cache
1x1+512+1024
13:23:42 202:03 12100.880u 6.2.4 Cache identify[8653]: cache.c/ReadCachePixels/3212/Cache
1x1+1024+1024
13:23:42 202:03 12100.880u 6.2.4 Cache identify[8653]: cache.c/WriteCachePixels/4138/Cache
1x1+1024+1024
13:23:42 202:03 12100.900u 6.2.4 Cache identify[8653]: cache.c/ReadCachePixels/3212/Cache
1x1+2048+1024
13:23:42 202:03 12100.900u 6.2.4 Cache identify[8653]: cache.c/WriteCachePixels/4138/Cache
1x1+2048+1024
13:23:42 202:03 12100.900u 6.2.4 Cache identify[8653]: cache.c/ReadCachePixels/3212/Cache
1x1+2111+1024
13:23:42 202:03 12100.900u 6.2.4 Cache identify[8653]: cache.c/WriteCachePixels/4138/Cache
1x1+2111+1024

I will run this again over night.

When I ran the ‘identify’ without any debugging it finished after more two hours. It turns out that the file has 43 layers.
Post Reply