Do embedded ICM profiles have names?

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
sanderton

Do embedded ICM profiles have names?

Post by sanderton »

Does anyone know if there is a way to get the name of an embedded profile?

Thanks,
sanderton
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Type
  • identify -verbose myimage
to list the names of any embedded profiles.
sanderton

Name of ICM profile, using VisualMagick++

Post by sanderton »

Thanks!
I should have also asked: Is there a way to get the name of the profile using Visual Magick / C++? Or is there some other tool that can read the Blob?

I really appreciate your help and ideas. Thanks again,
sanderton
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Most/all ImageMagick language interfaces have a method to access image profiles. For MagickCore, for example we have:

Code: Select all

      ResetImageProfileIterator(image);
      for (name=GetNextImageProfile(image); name != (char *) NULL; )
      {
        profile=GetImageProfile(image,name);
        if (profile == (StringInfo *) NULL)
          continue;
        (void) fprintf(file,"  Profile-%s: %lu bytes\n",name,
          (unsigned long) profile->length);
        ...
        name=GetNextImageProfile(image);
      }
Post Reply