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 165219 - winclipbboard doesn't handle grayscale images correctly
winclipbboard doesn't handle grayscale images correctly
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.2.x
Other Windows
: Normal normal
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-01-25 19:13 UTC by stefan unmuessig
Modified: 2008-01-15 12:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description stefan unmuessig 2005-01-25 19:13:52 UTC
New image (RGB)
For example: Render-GFig and draw something
Copy to clipboard

Then its not possible to paste it in OpenOffice, because background is black 
and you can see nothing.
Comment 1 Sven Neumann 2005-01-25 21:37:23 UTC
I don't understand this bug report. If OpenOffice doesn't handle the alpha
channel correctly, why don't you file a bug report against OpenOffice? GIMP can
hardly do anything about this. Or did I misunderstand you?
Comment 2 stefan unmuessig 2005-01-26 13:54:47 UTC
I checked it again: 
The Problem is not the transpararent part, the problem is to copy grayscale-
images to clipboard and paste it in an second application (for example 
OpenOffice):
New Image (Rgb) , draw something and copy to clipboard and paste in openoffice: 
everything is OK.
But New Image (grayscale) , draw something and copy to clipboard and paste in 
openoffice, only an black image is pasted.
Comment 3 weskaggs 2005-01-26 17:49:37 UTC
The question is whether the problem is in GIMP or in OpenOffice.  Do you have
another program available that you could try pasting into (other than OpenOffice)?
Comment 4 stefan unmuessig 2005-01-26 18:25:10 UTC
I tryed with MSWord, Irfanview and OpenOffice with the same result.
Grayscale-Images are always black. 
Comment 5 Michael Schumacher 2005-01-26 18:44:00 UTC
Hm, I get a different result when trying this with MS Word.

GIMP: grayscale image, black painting on transparent background
Word: green (#00ff00) painting on black

GIMP: RGBA image, black on transparent
Word: black image (maybe black on black?)

GIMP: RGBA image, white on transparent
Word: white image (maybe white on white?)

I will try more extensive tests, using other colors (black and white could be
just special cases), with OpenOffice.
Comment 6 stefan unmuessig 2005-01-26 18:51:55 UTC
New Image (grayscale) with white background.
Draw something with black color and copy / paste to msword:
Background is black. 
Comment 7 weskaggs 2005-01-26 22:28:36 UTC
Looks like enough information to confirm that GIMP or GTK is probably doing
something wrong with the clipboard in Windows.
Comment 8 Sven Neumann 2005-01-27 17:05:01 UTC
Are we talking about "Edit->Copy" here or "Edit->Copy to Clipboard"?
Comment 9 Michael Schumacher 2005-01-27 17:15:04 UTC
Copy to clipboard, which is provided by the winclipboard plug-in. 
Comment 10 Sven Neumann 2005-01-28 11:39:57 UTC
So we are talking about a bug in the winclipboard plug-in then, changing
component accordingly.

BTW, why do we still need to use this plug-in? Shouldn't GTK+/GDK abstract the
win32 clipboard good enough for this to just work now that GIMP uses the global
clipboard?
Comment 11 Michael Schumacher 2005-01-28 21:59:09 UTC
It doesn't work in 2.4.14 yet. Don't know about 2.6.
Comment 12 stefan unmuessig 2005-01-28 23:11:46 UTC
I tested with gimp 2.05 with gtk+ 2.4.14 and there is no problem:
grayscale-picture copy/paste seems to be OK
Comment 13 weskaggs 2005-03-21 16:37:57 UTC
Can we get an update on whether this plug-in is still needed with Gtk+ 2.6?
Comment 14 Michael Schumacher 2005-03-21 17:13:01 UTC
It is still needed for "copy to clipboard". Pasting from the clipboard is now
handled by GTK+, and the paste functions have already been removed from
winclipboard in HEAD.

I didn't try if I can reproduce any of the problems I reported in comment #5,
will do so later today.
Comment 15 Sven Neumann 2005-04-10 19:46:11 UTC
If I interpret the changes in gtk+ correctly, copy image to clipboard
functionality for win32 has been added for gtk+ 2.6.5. I guess we should depend
on gtk+ 2.6.5 in HEAD, at least for Win32, remove the winclipboard plug-in
entirely and close this bug.
Comment 16 Michael Schumacher 2005-04-22 08:29:53 UTC
I tested this with GTK+ 2.6.7 - copying to and from the system clipboard and
other apps works fine - winclipboard is history.
Comment 17 Sven Neumann 2005-04-22 16:51:31 UTC
2005-04-22  Sven Neumann  <sven@gimp.org>

	* configure.in
	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/winclipboard.c: removed winclipboard plug-in
	from CVS. It is not any longer needed as long as GTK+ >= 2.6.5
	is being used. Fixes bug #165219.