Faster way to extract profile-icc info from a jpeg?

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?".
jamlin423

Faster way to extract profile-icc info from a jpeg?

Postby jamlin423 » 2008-10-15T11:31:34-07:00

Is there any faster way other than identify -verbose if I only want to extract profile-icc info from a jpeg?

User avatar
magick
Site Admin
Posts: 9747
Joined: 2003-05-31T11:32:55-07:00
Contact:

Re: Faster way to extract profile-icc info from a jpeg?

Postby magick » 2008-10-15T11:42:27-07:00

Try

    convert image.jpg iptc:profile.iptc
    convert image.jpg xmp:profile.xmp

etc.

jamlin423

Re: Faster way to extract profile-icc info from a jpeg?

Postby jamlin423 » 2008-10-15T12:46:01-07:00

this is much faster than identify -verbose! plus, for jpegs with no embedded color profiles, i can just check file size of output profile.icm to identify.

is there any major difference between convert 1.jpg icc: profile.icm and convert 1.jpg profile.icm?

User avatar
magick
Site Admin
Posts: 9747
Joined: 2003-05-31T11:32:55-07:00
Contact:

Re: Faster way to extract profile-icc info from a jpeg?

Postby magick » 2008-10-15T13:09:09-07:00

Here's an even faster way although it only works with JPEG:

    convert -size 64x64 image.jpg profile.icm

jamlin423

Re: Faster way to extract profile-icc info from a jpeg?

Postby jamlin423 » 2008-10-15T13:47:33-07:00

i think you meant:
convert -size 64x64 image.jpg profile.icm
?

it's indeed faster, especially for big files!

User avatar
anthony
Posts: 8736
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia
Contact:

Re: Faster way to extract profile-icc info from a jpeg?

Postby anthony » 2008-10-15T18:29:46-07:00

I have added this information to IM Examples, Formats, Profiles section, and will appear in a day or so.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
http://www.imagemagick.org/Usage/

jamlin423

Re: Faster way to extract profile-icc info from a jpeg?

Postby jamlin423 » 2008-10-17T15:01:14-07:00

Glad to have helped contributing to the examples!


Return to “Users”

Who is online

Users browsing this forum: Bing [Bot] and 11 guests