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

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

Post by jamlin423 »

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: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

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?

Post by jamlin423 »

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: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

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?

Post by jamlin423 »

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

it's indeed faster, especially for big files!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post by anthony »

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
https://imagemagick.org/Usage/
jamlin423

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

Post by jamlin423 »

Glad to have helped contributing to the examples!
Post Reply