• Michael Natterer's avatar
    libgimp: fix gimp_drawable_get_format() to honor the drawable's space · dfe3e236
    Michael Natterer authored
    The raw PDB wrapper _gimp_drawable_get_format() only transfers the
    format's encoding, so we need to add the space from the image's color
    profile.
    
    Also fix handling of indexed formats: remove our own indexed format
    cache and rely on babl_new_palette_with_space() to return the same
    format for any (encoding, space) combination.
    
    Also update the PDB docs to reflect that most magic is happening in
    the libgimp C wrapper.
    dfe3e236
gimpdrawable_pdb.c 29.5 KB