From 60d3caa2e283de057a23de5d6380c6cb2f5ddafc Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Sun, 15 Mar 2026 23:13:14 +0000 Subject: [PATCH] plug-ins: Copy profile with Tile plug-in If the user chooses to make a new image when running the Tile plug-in, the color profile is not carried over. This can result in the tiled image looking different. This patch adds calls to gimp_image_get_color_profile () and gimp_image_set_color_profile () to ensure the profile is carried over. --- plug-ins/common/tile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plug-ins/common/tile.c b/plug-ins/common/tile.c index 6c9b0af804..5ad646b7f5 100644 --- a/plug-ins/common/tile.c +++ b/plug-ins/common/tile.c @@ -358,12 +358,13 @@ tile (GimpImage *image, gint src_width = gimp_drawable_get_width (drawable); gint src_height = gimp_drawable_get_height (drawable); - GimpImageBaseType image_type = GIMP_RGB; + GimpImageBaseType image_type = GIMP_RGB; if (create_new_image) { /* create a new image */ - gint32 precision = gimp_image_get_precision (image); + GimpColorProfile *profile = gimp_image_get_color_profile (image); + gint32 precision = gimp_image_get_precision (image); switch (gimp_drawable_type (drawable)) { @@ -389,6 +390,7 @@ tile (GimpImage *image, precision); gimp_image_undo_disable (*new_image); + gimp_image_set_color_profile (*new_image, profile); /* copy the colormap, if necessary */ if (image_type == GIMP_INDEXED) gimp_image_set_palette (*new_image, gimp_image_get_palette (image));