[gimp] Bug 793734 - White alpha border after upscaling
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 793734 - White alpha border after upscaling
- Date: Thu, 22 Mar 2018 21:04:42 +0000 (UTC)
commit 289ecebd69ffa0b58fee368c8afc1a49423af06a
Author: Ell <ell_se yahoo com>
Date: Thu Mar 22 16:53:08 2018 -0400
Bug 793734 - White alpha border after upscaling
In gimp_gegl_apply_scale(), use a CLAMP abyss policy for the scale
op, to avoid leaking transparency into the image when scaling
drawables.
Note that this (intentionally) only affects whole-image/layer
scaling, and not scaling done using any of the transform tools.
app/gegl/gimp-gegl-apply-operation.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/app/gegl/gimp-gegl-apply-operation.c b/app/gegl/gimp-gegl-apply-operation.c
index 12375a2..ee21861 100644
--- a/app/gegl/gimp-gegl-apply-operation.c
+++ b/app/gegl/gimp-gegl-apply-operation.c
@@ -654,12 +654,13 @@ gimp_gegl_apply_scale (GeglBuffer *src_buffer,
g_return_if_fail (GEGL_IS_BUFFER (dest_buffer));
node = gegl_node_new_child (NULL,
- "operation", "gegl:scale-ratio",
- "origin-x", 0.0,
- "origin-y", 0.0,
- "sampler", interpolation_type,
- "x", x,
- "y", y,
+ "operation", "gegl:scale-ratio",
+ "origin-x", 0.0,
+ "origin-y", 0.0,
+ "sampler", interpolation_type,
+ "abyss-policy", GEGL_ABYSS_CLAMP,
+ "x", x,
+ "y", y,
NULL);
gimp_gegl_apply_operation (src_buffer, progress, undo_desc,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]