Copy/Paste retains color of transparent pixels
GIMP version: 2.10.12
Note: bug reporters are expected to have verified the bug still exists either in the last stable version of GIMP or on updated development code (master branch).
Operating System: [Windows 8.1]
Package: [Installer from gimp.org]
Description of the bug
Copying and pasting Gimp layers to other image editing program leaves “edit history” on to the pasted layer. Drew a red line, deleted red line, drew red line in another spot, copy layer, paste layer to another program, pasted layer shows two red lines.
Reproduction
Is the bug reproducible? [Always]
Reproduction steps:
-
Starting a new file, add a layer (transparent is preferred)
-
Make a scribble or doodle on the new layer (the scribble must be a different color to the “transparent” color, [transparent is normally black])
-
Copy the layer, and open any other program with an image editor (paint) Paste the layer onto the program (normally, programs like paint don’t have transparency so you may see the scribble on a black background or whatever background sharing the transparent color option: this is normal)
This is where it doesn’t get normal!
-
Back to Gimp, edit the layer in any way as long as the previous scribble is either gone or not in the same spot as before (best to cut the scribble and paste it in the same layer but in a different spot)
-
Now copy the layer again and paste it on to your other image editor
…
Expected result: Like any typical image editor, whatever edits made on to layer, transparent or not, will look exactly the same when copied and pasted to another program. Yes, layers with transparency will not be transparent when moving to a program such as paint, but at least it doesn’t show any “history” so to speak.
Actual result: Now what happens to me when I do this is the layer I pasted on to the other program, for some reason, has an impression of previous work done to it despite being long removed. So that scribble that you drew and either moved or removed, will appear on the same spot untouched with the edits overlapping it when pasting the gimp layer onto another image program.
This did not happen when using the previous version of Gimp. I think it was a 2015 version
Copying and pasting layers from other programs like Krita or Sketchbook does not do similar issues: meaning this is not a problem with my computer.
Pasting Gimp layers to programs that does support transparency has the same effect but without the opaque background. I’ve discovered this error when copying and pasting a gimp layer on to the Clickteam Sprite Editor “that editor supports transparency”
Copying from and pasting back into Gimp does not do the same result, it must be pasted to another program.
Additional information
If you have a backtrace for a crash or a warning, paste it here.