After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 315106 - New image dialog doesn't read clipboard size from other applications
New image dialog doesn't read clipboard size from other applications
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.2.x
Other All
: Normal minor
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
: 424476 521067 521954 525700 526709 621189 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-09-02 11:45 UTC by Joachim Noreiko
Modified: 2010-06-10 11:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to remove the confusing and redundant feature of the New Image dialog (2.80 KB, patch)
2005-09-05 10:39 UTC, Sven Neumann
none Details | Review

Description Joachim Noreiko 2005-09-02 11:45:28 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.
Comment 1 Sven Neumann 2005-09-02 19:06:20 UTC
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.
Comment 2 Michael Schumacher 2005-09-02 19:32:30 UTC
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.
Comment 3 Sven Neumann 2005-09-02 19:46:28 UTC
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.
Comment 4 Joachim Noreiko 2005-09-02 20:18:05 UTC
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.
Comment 5 Michael Schumacher 2005-09-04 19:21:19 UTC
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
Comment 6 Sven Neumann 2005-09-05 10:30:40 UTC
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.
Comment 7 Sven Neumann 2005-09-05 10:39:38 UTC
Created attachment 51822 [details] [review]
patch to remove the confusing and redundant feature of the New Image dialog
Comment 8 Sven Neumann 2005-09-05 10:53:08 UTC
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.


Comment 9 Michael Schumacher 2007-03-30 14:53:20 UTC
*** Bug 424476 has been marked as a duplicate of this bug. ***
Comment 10 Michael Schumacher 2008-03-07 19:38:58 UTC
*** Bug 521067 has been marked as a duplicate of this bug. ***
Comment 11 Michael Schumacher 2008-03-12 09:35:06 UTC
*** Bug 521954 has been marked as a duplicate of this bug. ***
Comment 12 Sven Neumann 2008-04-02 06:28:06 UTC
*** Bug 525700 has been marked as a duplicate of this bug. ***
Comment 13 Sven Neumann 2008-04-07 13:32:20 UTC
*** Bug 526709 has been marked as a duplicate of this bug. ***
Comment 14 iyeru42 2008-04-07 13:35:29 UTC
(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.)
Comment 15 Sven Neumann 2008-04-07 18:59:17 UTC
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.
Comment 16 Michael Schumacher 2010-06-10 11:25:23 UTC
*** Bug 621189 has been marked as a duplicate of this bug. ***