Why does identifying colorspace use 7GB of memory?

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
chaddjohnson
Posts: 14
Joined: 2018-11-27T20:59:27-07:00
Authentication code: 1152

Why does identifying colorspace use 7GB of memory?

Post by chaddjohnson »

Hello,

When using

Code: Select all

identify -format %[colorspace] example.tif
to identify the colorspace of an 88MB CMYK TIFF, over 7GB of RAM is used on my machine. Why is this? Is there by chance a less resource-intensive way for ImageMagick to identify colorspace? I am able to run the following on my Mac with almost no memory usage:

Code: Select all

sips -g space example.tif
Last edited by chaddjohnson on 2019-04-23T10:12:06-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Why does identifying colorspace use 7GB of memory?

Post by fmw42 »

Is the TIFF file compressed? If so, then when expanded it might be much larger. Otherwise, wait for the developers or someone who knows the software better to respond.
chaddjohnson
Posts: 14
Joined: 2018-11-27T20:59:27-07:00
Authentication code: 1152

Re: Why does identifying colorspace use 7GB of memory?

Post by chaddjohnson »

fmw42 wrote: 2019-04-20T21:08:35-07:00 Is the TIFF file compressed? If so, then when expanded it might be much larger. Otherwise, wait for the developers or someone who knows the software better to respond.
Yep, the TIFF is compressed.
Post Reply