RSS/Atom feed Twitter
Site is read-only, email is disabled

Odd "error making format" regarding grayscale ICC profiles

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Odd "error making format" regarding grayscale ICC profiles Elle Stone 10 Oct 08:36
  Odd "error making format" regarding grayscale ICC profiles Øyvind Kolås 10 Oct 10:49
   Odd "error making format" regarding grayscale ICC profiles Elle Stone 10 Oct 13:29
Elle Stone
2017-10-10 08:36:38 UTC (over 6 years ago)

Odd "error making format" regarding grayscale ICC profiles

Hi,

In recent versions of GIMP-2.9 there are some odd "error making format" messages printed to the terminal when opening a grayscale image, converting to Grayscale mode, converting to a grayscale profile from disk, and adding a layer mask.

The "error making format" messages are accompanied by the information that grayscale color spaces aren't RGB color spaces, which of course is true. Despite the reported errors, there doesn't seem to be any actual problems with how GIMP handles grayscale images. Here are some examples:

* Adding a layer mask (ignore the intervening "WARNING" lines):

gimp_color_transform_new: error making format: GIMP built-in D65 Linear Grayscale: not defining an RGB space *WARNING* missing babl fast path(s): "cairo-RGB24" to "R'G'B' u8" *WARNING* missing babl fast path(s): "Y float" to "Y double" gimp_color_transform_new: error making format: GIMP built-in D65 Linear Grayscale: not defining an RGB space

* Opening a grayscale XCF that's in GIMP's built-in linear gamma gray color space:

gimp_color_transform_new: error making format: GIMP built-in D65 Linear Grayscale: not defining an RGB space gimp_color_transform_new: error making format: GIMP built-in D65 Linear Grayscale: not defining an RGB space gimp_color_transform_new: error making format: GIMP built-in D65 Linear Grayscale: not defining an RGB space

* Converting to a grayscale profile from disk:

gimp_color_transform_new: error making format: Gray-elle-V4-labl.icc: not defining an RGB space
gimp_gegl_convert_color_profile: converting buffer took 0.1220 seconds gimp_color_transform_new: error making format: Gray-elle-V4-labl.icc: not defining an RGB space
gimp_color_transform_new: error making format: Gray-elle-V4-labl.icc: not defining an RGB space
XXXXXX gimp_image_create_color_transforms XXXXXX gimp_color_transform_new: error making format: Gray-elle-V4-labl.icc: not defining an RGB space
gimp_color_transform_new: error making format: Gray-elle-V4-labl.icc: not defining an RGB space
gimp_color_transform_new: error making format: Gray-elle-V4-labl.icc: not defining an RGB space
gimp_color_transform_new: error making format: Gray-elle-V4-labl.icc: not defining an RGB space

Best, Elle

Øyvind Kolås
2017-10-10 10:49:02 UTC (over 6 years ago)

Odd "error making format" regarding grayscale ICC profiles

On Tue, Oct 10, 2017 at 10:36 AM, Elle Stone wrote:

In recent versions of GIMP-2.9 there are some odd "error making format" messages printed to the terminal when opening a grayscale image, converting to Grayscale mode, converting to a grayscale profile from disk, and adding a layer mask.

The "error making format" messages are accompanied by the information that grayscale color spaces aren't RGB color spaces, which of course is true. Despite the reported errors, there doesn't seem to be any actual problems with how GIMP handles grayscale images. Here are some examples:

These messages are debug messages, informing us that GIMP tried to create dedicated babl_formats from the ICC profiles, babl detected that it is a type of ICC profile it is not capable of handling, thus GIMPs attempt at creating a babl based format (and thus conversions) failed. GIMP will then instead use lcms2 for conversions to/from the color space of the ICC profile.

The same happens when GIMP tries to rig up conversions to/from a color space in its perceptual intent instead of relative colorimetric *and* perceptual intent is defined with 3D CLUTs in the ICC profile, babl gives up, GIMP notices, and uses lcms2 instead of babl for conversions.

If when/additional capabilities get added to babl GIMP will automatically be using babl for more conversions. Calling this an error isn't entirely correct though, it should be a warning.

/pippin

Elle Stone
2017-10-10 13:29:22 UTC (over 6 years ago)

Odd "error making format" regarding grayscale ICC profiles

On 10/10/2017 06:49 AM, Øyvind Kolås wrote:

These messages are debug messages, informing us that GIMP tried to create dedicated babl_formats from the ICC profiles, babl detected that it is a type of ICC profile it is not capable of handling, thus GIMPs attempt at creating a babl based format (and thus conversions) failed. GIMP will then instead use lcms2 for conversions to/from the color space of the ICC profile.

Hi Pippin,

Thanks! -what you describe is what I assumed was happening :) . But I was puzzled about these error/warning messages also being printed when adding a layer mask to an RGB image.

Are the babl ICC code and/or LCMS used to make layer masks in GIMP? Whether or no, the masks are made without any problems.

Best, Elle