unending warnings from "identify -format %[profile:icc]" cmd

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
papagi11
Posts: 10
Joined: 2013-11-01T08:01:51-07:00
Authentication code: 6789

unending warnings from "identify -format %[profile:icc]" cmd

Post by papagi11 »

Hi,

I am getting below unending warning messages when I ran identify command to find out the ICC profile and the command never return back. I have to do a ctrl+c to stop the command.

-bash-4.1$ identify -format %[profile:icc] 120113_BIL_ALL_1stProof_01-36.pdf
warning: ignoring invalid option raw
warning: ignoring invalid option raw
warning: ignoring invalid option raw
warning: ignoring invalid option raw
warning: ignoring invalid option raw
warning: ignoring invalid option raw
^C-

ImageMagick version is: 6.8.7-5 Q16 x86_64 2013-11-07

Can you please help out how can I avoid these warnings ?

Thanks,
Papagi
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: unending warnings from "identify -format %[profile:icc]"

Post by snibgo »

Is is one warning per page? What happens if you use "-quiet"? Or [0] after the input filename?
snibgo's IM pages: im.snibgo.com
papagi11
Posts: 10
Joined: 2013-11-01T08:01:51-07:00
Authentication code: 6789

Re: unending warnings from "identify -format %[profile:icc]"

Post by papagi11 »

Same thisng with -quiet and [0] after file name as below:

-bash-4.1$ identify -quiet -format %[profile:icc] 120113_BIL_ALL_1stProof_01-36.pdf[0]
warning: ignoring invalid option raw
warning: ignoring invalid option raw
warning: ignoring invalid option raw
warning: ignoring invalid option raw
warning: ignoring invalid option raw
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: unending warnings from "identify -format %[profile:icc]"

Post by snibgo »

Weird. Can you put the pdf somewhere like dropbox.com and paste the link here?
snibgo's IM pages: im.snibgo.com
papagi11
Posts: 10
Joined: 2013-11-01T08:01:51-07:00
Authentication code: 6789

Re: unending warnings from "identify -format %[profile:icc]"

Post by papagi11 »

snibgo wrote:Weird. Can you put the pdf somewhere like dropbox.com and paste the link here?
Here is the PDF link that I had uploaded to dropbox - https://www.dropbox.com/s/p23591o3bc7ln ... _01-36.pdf

TIA
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: unending warnings from "identify -format %[profile:icc]"

Post by snibgo »

On v6.8.7-0 on Windows 7, this command ...

Code: Select all

identify -format %[profile:icc] 120113_BIL_ALL_1stProof_01-36.pdf
... took about 4 minutes on my laptop and produced no output at all.

Did you use a pre-built binary? Maybe your build is bad, but I don't know.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: unending warnings from "identify -format %[profile:icc]"

Post by dlemstra »

The message 'warning: ignoring invalid option raw' is a message from GhostScript. And I am not sure if we support reading profiles from pdf files...
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply