mirror of https://github.com/GNOME/gimp.git
Bug 697862 - heal tool quality regression
Switch heal tool back to sRGB, which produces better quality than linear-light. It is, after all, trying to correct for differences in perceived brightness.
This commit is contained in:
parent
bacc9c9635
commit
c3c4287bdf
|
@ -510,11 +510,11 @@ gimp_heal_motion (GimpSourceCore *source_core,
|
|||
return;
|
||||
}
|
||||
|
||||
src_copy =
|
||||
gegl_buffer_new (GEGL_RECTANGLE (0, 0,
|
||||
src_rect->width,
|
||||
src_rect->height),
|
||||
babl_format ("RGBA float"));
|
||||
/* heal should work in perceptual space, use R'G'B' instead of RGB */
|
||||
src_copy = gegl_buffer_new (GEGL_RECTANGLE (0, 0,
|
||||
src_rect->width,
|
||||
src_rect->height),
|
||||
babl_format ("R'G'B'A float"));
|
||||
|
||||
gegl_buffer_copy (src_buffer,
|
||||
src_rect,
|
||||
|
@ -523,6 +523,9 @@ gimp_heal_motion (GimpSourceCore *source_core,
|
|||
src_rect->width,
|
||||
src_rect->height));
|
||||
|
||||
/* this is ok because we know that the paint_buffer is "RGBA float" */
|
||||
gegl_buffer_set_format (paint_buffer, babl_format ("R'G'B'A float"));
|
||||
|
||||
gegl_buffer_copy (gimp_drawable_get_buffer (drawable),
|
||||
GEGL_RECTANGLE (paint_buffer_x, paint_buffer_y,
|
||||
gegl_buffer_get_width (paint_buffer),
|
||||
|
|
Loading…
Reference in New Issue