Page 1 of 1

Do embedded ICM profiles have names?

Posted: 2006-09-27T12:43:40-07:00
by sanderton
Does anyone know if there is a way to get the name of an embedded profile?

Thanks,
sanderton

Posted: 2006-09-27T13:45:29-07:00
by magick
Type
  • identify -verbose myimage
to list the names of any embedded profiles.

Name of ICM profile, using VisualMagick++

Posted: 2006-09-27T13:56:07-07:00
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

Posted: 2006-09-27T16:00:45-07:00
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);
      }