diff --git a/app/operations/gimpoperationshrink.c b/app/operations/gimpoperationshrink.c index 08a7dd5b32..c862edb471 100644 --- a/app/operations/gimpoperationshrink.c +++ b/app/operations/gimpoperationshrink.c @@ -184,8 +184,9 @@ gimp_operation_shrink_set_property (GObject *object, static void gimp_operation_shrink_prepare (GeglOperation *operation) { - gegl_operation_set_format (operation, "input", babl_format ("Y float")); - gegl_operation_set_format (operation, "output", babl_format ("Y float")); + const Babl *space = gegl_operation_get_source_space (operation, "input"); + gegl_operation_set_format (operation, "input", babl_format_with_space ("Y float", space)); + gegl_operation_set_format (operation, "output", babl_format_with_space ("Y float", space)); } static GeglRectangle