GNOME Bugzilla – Bug 315106
New image dialog doesn't read clipboard size from other applications
Last modified: 2010-06-10 11:25:23 UTC
Distribution/Version: Windows 2000 SP4 The new image dialog image size options default to the size of what is currently in the clipboard. However, this feature does not work if the clipboard currently holds image data from another application. Eg: windows screenshot, or Windows Paint.
Should it be doing that? IMO we should fix this by removing the rather confusing feature of using the size of the clipboard for the New Image dialog. Setting to 2.4 so that we consider doing that.
The size of the clipboard could become a template - maybe even the default one, so that it is obvious where the (sometimes weird) initial image size comes from.
The only way to get the size of the image on the clipboard is to retrieve the image from the application that offers it. That is not an option since it can be a very slow operation. Let's just remove the "take-the-size-from-the-clipboard" feature. It is pretty much pointless anyway since we have Paste as New now.
Except "Paste as New" isn't available if there is no open document. Is it really so slow? I have Photoshop 4.0 and that does it.
There are two faster way to get a new image from the clipboard: - File->Acquire->Paste as new or, in 2.3 and up: - use Ctrl-v on the toolbox
There might be an API on the Win32 platform to retrieve the size of image data on the system clipboard but as long as such an API isn't available on all supported platforms, we aren't going to use it.
Created attachment 51822 [details] [review] patch to remove the confusing and redundant feature of the New Image dialog
Applied to HEAD branch: 2005-09-05 Sven Neumann <sven@gimp.org> * app/core/gimp.[ch] * app/core/gimpimage-new.c: removed the confusing and redundant feature of having the New Image dialog default to the size of the global buffer. Please use Paste as New instead. Fixes bug #315106.
*** Bug 424476 has been marked as a duplicate of this bug. ***
*** Bug 521067 has been marked as a duplicate of this bug. ***
*** Bug 521954 has been marked as a duplicate of this bug. ***
*** Bug 525700 has been marked as a duplicate of this bug. ***
*** Bug 526709 has been marked as a duplicate of this bug. ***
(In reply to comment #8) > Applied to HEAD branch: > > 2005-09-05 Sven Neumann <sven@gimp.org> > > * app/core/gimp.[ch] > * app/core/gimpimage-new.c: removed the confusing and redundant > feature of having the New Image dialog default to the size of the > global buffer. Please use Paste as New instead. Fixes bug #315106. > > > Will this be in a new version of GIMP 2.4? Because in 2.4.5, it still doesn't get image dimensions from copied image data (IE: From Firefox, etc.)
It is not supposed to. If you had read the comments in this bug-report, then you would understand why it doesn't do this.
*** Bug 621189 has been marked as a duplicate of this bug. ***