RSS/Atom feed Twitter
Site is read-only, email is disabled

Selection lost while working on multiple images. Missing feature or bug?

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

Tobias Oelgarte
2013-02-17 19:22:04 UTC (almost 12 years ago)

Selection lost while working on multiple images. Missing feature or bug?

Hello,

I open two images in Gimp 2.8.4 and create an selection (for example rectangle selection) for the first image. If i now switch to the second image and do an selection as well, then the selection on the first image is gone if i switch back. Is this intentional or a bug? From the user perspective it would be nice to have independent selections for individual images/documents.

Greetings from Tobias Oelgarte

Burnie West
2013-02-17 19:58:54 UTC (almost 12 years ago)

Selection lost while working on multiple images. Missing feature or bug?

On 02/17/2013 11:22 AM, Tobias Oelgarte wrote:

Hello,

I open two images in Gimp 2.8.4 and create an selection (for example rectangle selection) for the first image. If i now switch to the second image and do an selection as well, then the selection on the first image is gone if i switch back. Is this intentional or a bug? From the user perspective it would be nice to have independent selections for individual images/documents.

This does not happen for me in 2.8.2.

-- Burnie

Kolbjørn Stuestøl
2013-02-17 20:12:22 UTC (almost 12 years ago)

Selection lost while working on multiple images. Missing feature or bug?

Den 17.02.2013 20:22, skreiv Tobias Oelgarte:

Hello,

I open two images in Gimp 2.8.4 and create an selection (for example rectangle selection) for the first image. If i now switch to the second image and do an selection as well, then the selection on the first image is gone if i switch back. Is this intentional or a bug? From the user perspective it would be nice to have independent selections for individual images/documents.

I do not know whether it is intentional or not but I guess it is. As long as you are able to resize the first selection it is in fact not created. The selecting tool is engaged making the selection. Trying to create another selection will therefore close the former attempt.

If the selection is finished it is another task. The tool is ready for another job.
Try: Create a selection in image one. Click another tool in the toolbox. Then move to image two, activate the selection tool again and create a new selection. The selection in image one is still there.

Kolbjoern Stuestoel

Greetings from
Tobias Oelgarte
_______________________________________________

Tobias Ellinghaus
2013-02-17 20:19:40 UTC (almost 12 years ago)

Selection lost while working on multiple images. Missing feature or bug?

Am Sonntag, 17. Februar 2013, 20:22:04 schrub Tobias Oelgarte:

Hello,

Hi.

I open two images in Gimp 2.8.4 and create an selection (for example rectangle selection) for the first image. If i now switch to the second image and do an selection as well, then the selection on the first image is gone if i switch back. Is this intentional or a bug? From the user perspective it would be nice to have independent selections for individual images/documents.

I can confirm this with git master.

Greetings from
Tobias Oelgarte

Tobias

Owen
2013-02-17 23:39:56 UTC (almost 12 years ago)

Selection lost while working on multiple images. Missing feature or bug?

On Sun, 17 Feb 2013 11:58:54 -0800 Burnie West wrote:

On 02/17/2013 11:22 AM, Tobias Oelgarte wrote:

Hello,

I open two images in Gimp 2.8.4 and create an selection (for example rectangle selection) for the first image. If i now switch to the second image and do an selection as well, then the selection on the first image is gone if i switch back. Is this intentional or a bug? From the user perspective it would be nice to have independent selections for individual images/documents.

This does not happen for me in 2.8.2.

This does not happen in 2.8.0, but does in git

Owen
Cristian Secară
2013-02-18 00:16:41 UTC (almost 12 years ago)

Selection lost while working on multiple images. Missing feature or bug?

În data de Sun, 17 Feb 2013 20:22:04 +0100, Tobias Oelgarte a scris:

I open two images in Gimp 2.8.4 and create an selection (for example rectangle selection) for the first image. If i now switch to the second image and do an selection as well, then the selection on the first image is gone if i switch back.

If I simply do a selection, and switch to other image and do another selection there, yes, the first is gone.

However, if after first selection I click once with the mouse in the middle of the selection (I don't know what that actually do), then going to the second image etc. will not wanish the first selection on first image.

2.8.4 here, on Windows.

Cristi

Cristian Secară
http://www.secarica.ro
Richard Gitschlag
2013-02-18 03:06:07 UTC (almost 12 years ago)

Selection lost while working on multiple images. Missing feature or bug?

Date: Sun, 17 Feb 2013 21:12:22 +0100 From: kolbjoern@stuestoel.no
To: gimp-developer-list@gnome.org
Subject: Re: [Gimp-developer] Selection lost while working on multiple images. Missing feature or bug?

Den 17.02.2013 20:22, skreiv Tobias Oelgarte:

Hello,

I open two images in Gimp 2.8.4 and create an selection (for example rectangle selection) for the first image. If i now switch to the second image and do an selection as well, then the selection on the first image is gone if i switch back. Is this intentional or a bug? From the user perspective it would be nice to have independent selections for individual images/documents.

I do not know whether it is intentional or not but I guess it is. As long as you are able to resize the first selection it is in fact not created. The selecting tool is engaged making the selection. Trying to create another selection will therefore close the former attempt.

If the selection is finished it is another task. The tool is ready for another job.
Try: Create a selection in image one. Click another tool in the toolbox. Then move to image two, activate the selection tool again and create a new selection. The selection in image one is still there.

Then shouldn't the selector "commit" to the first image before getting itself "engaged" on the second? Current behavior is that it "aborts" the first selection, which is NOT desirable behavior.

Do this:

1 - On any convenient image, create a selection. Note the asterisk that appears in the title bar (image dirty). 2 - Try to close the image and GIMP will prompt to save changes. Cancel. 3 - Toggle QuickMask to view the selection channel.

Notice that as of step 2, even though the selector is still "engaged" it is treated as a change to the image status (because changing a selection channel does this).

Now do this:

0 - Create any two convenient images. 1 - Create a selection on image 1. Note the asterisk in the title bar (image dirty) 2 - Try to close the image and GIMP will prompt to save changes (cancel this). 3 - Go directly to image 2 and create a selection. 4 - Notice how (in multiwindow mode) the asterisk disappears from the title bar on image 1. 5 - Close image 1. This time, Gimp does NOT prompt to save changes like it did in step 2.

That is totally a bug, but it gets even better. Replace step 5 with something stupid (like a Hurl noise filter) and notice how it affects the whole image instead of only the area selected in step 1 (which, as step 2 verified, WAS present).

-- Stratadrake strata_ranger@hotmail.com
--------------------
Numbers may not lie, but neither do they tell the whole truth. =

Richard Gitschlag
2013-02-19 04:14:49 UTC (almost 12 years ago)

Selection lost while working on multiple images (GTK #694060)

Date: Sun, 17 Feb 2013 21:12:22 +0100 From: kolbjoern@stuestoel.no
To: gimp-developer-list@gnome.org
Subject: Re: [Gimp-developer] Selection lost while working on multiple images. Missing feature or bug?

Den 17.02.2013 20:22, skreiv Tobias Oelgarte:

Hello,

I open two images in Gimp 2.8.4 and create an selection (for example rectangle selection) for the first image. If i now switch to the second image and do an selection as well, then the selection on the first image is gone if i switch back. Is this intentional or a bug? From the user perspective it would be nice to have independent selections for individual images/documents.

I do not know whether it is intentional or not but I guess it is. As long as you are able to resize the first selection it is in fact not created. The selecting tool is engaged making the selection. Trying to create another selection will therefore close the former attempt.

If the selection is finished it is another task. The tool is ready for another job.
Try: Create a selection in image one. Click another tool in the toolbox. Then move to image two, activate the selection tool again and create a new selection. The selection in image one is still there.

I just discovered something interesting -- REALLY interesting.

1 - Create any two convenient images. 2 - Make a Rectangle selection on the first image. 3 - Look at the image's Edit menu. Obviously, it says "Undo Rectangle Select" and (can't redo). 3 - Make a Rectangle selection on the second image. 4 - Go back to image 1 and check your Edit menu again. Now it says (can't undo) and "Redo Rectangle Select".

Why can't you "Undo" the first selection anymore and where did this "Redo" entry suddenly come from? Your selection didn't just vanish - it got UNDONE. All you have to do is Redo it, and you get your selection back (minus the handles) in a heartbeat!

This is actually quite instructive -- it implies that whenever you adjust a rectangle or ellipse selection via handles, what GIMP does internally is Undo the selector action from its old position and then re-apply it at the new location. (Which is corroborated by another observation - create a Rectangle select, adjust it via handles, then Undo it. Instead of returning to the selection's previous size/position, as would be the case with separate Undo steps, the rectangle disappears in a single step!)

So the question that remains is - if you switch between images and do another select with the same tool, why does GIMP need to Undo the first one at all? It's got to be a bug.

-- Stratadrake strata_ranger@hotmail.com
--------------------
Numbers may not lie, but neither do they tell the whole truth. =

gespertino@gmail.com
2013-02-19 17:22:17 UTC (almost 12 years ago)

Selection lost while working on multiple images (GTK #694060)

2013/2/19 Richard Gitschlag

So the question that remains is - if you switch between images and do another select with the same tool, why does GIMP need to Undo the first one at all? It's got to be a bug.

No doubt it is a bug.

According to the documentation: "When an image is stored as an XCF file, the file encodes nearly everything there is to know about the image: the pixel data for each of the layers, the current selection, additional channels if there are any, paths if there are any, and guides. The most important thing that is *not* saved in an XCF file is the undo history."

The XCF format stores selections, so I think it's pretty clear that every file should have its own selections and switching between open images shouldn't destroy them.

Gez

Michael Natterer
2013-02-19 18:37:32 UTC (almost 12 years ago)

Selection lost while working on multiple images (GTK #694060)

On Tue, 2013-02-19 at 14:22 -0300, gespertino@gmail.com wrote:

2013/2/19 Richard Gitschlag

So the question that remains is - if you switch between images and do another select with the same tool, why does GIMP need to Undo the first one at all? It's got to be a bug.

No doubt it is a bug.

According to the documentation: "When an image is stored as an XCF file, the file encodes nearly everything there is to know about the image: the pixel data for each of the layers, the current selection, additional channels if there are any, paths if there are any, and guides. The most important thing that is *not* saved in an XCF file is the undo history."

The XCF format stores selections, so I think it's pretty clear that every file should have its own selections and switching between open images shouldn't destroy them.

This is all totally unrelated to the actual bug here, so was the entire thread.

The bug is that rect and ellipse select are modifying the selection on the fly, and abuse the undo system to do their stuff.

Aborting the current tool operation when switching images is however completely normal and is not going to change, sorry.

--mitch

Richard Gitschlag
2013-02-20 02:24:47 UTC (almost 12 years ago)

Selection lost while working on multiple images (GTK #694060)

Subject: Re: [Gimp-developer] Selection lost while working on multiple images (GTK #694060) From: mitch@gimp.org
To: gespertino@gmail.com
CC: strata_ranger@hotmail.com; gimp-developer-list@gnome.org Date: Tue, 19 Feb 2013 19:37:32 +0100

On Tue, 2013-02-19 at 14:22 -0300, gespertino@gmail.com wrote:

2013/2/19 Richard Gitschlag

So the question that remains is - if you switch between images and do another select with the same tool, why does GIMP need to Undo the first one at all? It's got to be a bug.

No doubt it is a bug.

According to the documentation: "When an image is stored as an XCF file, the file encodes nearly everything there is to know about the image: the pixel data for each of the layers, the current selection, additional channels if there are any, paths if there are any, and guides. The most important thing that is *not* saved in an XCF file is the undo history."

The XCF format stores selections, so I think it's pretty clear that every file should have its own selections and switching between open images shouldn't destroy them.

This is all totally unrelated to the actual bug here, so was the entire thread.

The bug is that rect and ellipse select are modifying the selection on the fly, and abuse the undo system to do their stuff.

Aborting the current tool operation when switching images is however completely normal and is not going to change, sorry.

--mitch

I totally understand this when it comes to selectors that require multiple steps to complete one operation (e.g: Freehand, Foreground, and Scissors) - if you don't provide all the necessary information then of course it must abort its operation.

But not all selectors belong to that group. Floodfill (fuzzy/by color) selectors are different - one click, one action, tool's done. Rectangle and Ellipse selectors are different too - one click+drag and the shape is already there in your image's selection channel (and undo history) - there is nothing to abort.

-- Stratadrake strata_ranger@hotmail.com
--------------------
Numbers may not lie, but neither do they tell the whole truth. =

Richard Gitschlag
2013-02-20 04:12:04 UTC (almost 12 years ago)

Selection lost while working on multiple images (GTK #694060)

Subject: Re: [Gimp-developer] Selection lost while working on multiple images (GTK #694060) From: mitch@gimp.org
To: gespertino@gmail.com
CC: strata_ranger@hotmail.com; gimp-developer-list@gnome.org Date: Tue, 19 Feb 2013 19:37:32 +0100

The bug is that rect and ellipse select are modifying the selection on the fly, and abuse the undo system to do their stuff.

Aborting the current tool operation when switching images is however completely normal and is not going to change, sorry.

--mitch

Just a little PS before I go clock out for some 40 winks (getting too worked up over a discussion never helps) -- this feels oddly relevant to the discussion.

http://xkcd.com/1014/

-- Stratadrake strata_ranger@hotmail.com
--------------------
Numbers may not lie, but neither do they tell the whole truth. =