Page 1 of 1
XnView does not paste alpha channel data into clipboard
Posted: Fri Aug 23, 2013 8:59 am
by btakacs
XnView does not copy the alpha channel data to clipboard. In case of an image with palette it does not copy the information which is the transparent colour of the palette.
For experimenting I copied the same transparent image into XnView itself:
Using XnView 2.0.4 on Windows 7
Image is transparent png with colour palette (transparent colour is on the index 0)
Steps to reproduce:
- Open an image with transparent colour
- Select a part of it then Ctrl + C
- Ctrl + Shift + V into XnView
Re: XnView does not paste alpha channel data into clipboard
Posted: Mon Aug 26, 2013 9:50 am
by xnview
could you send me the file used?
Re: XnView does not paste alpha channel data into clipboard
Posted: Wed Aug 28, 2013 8:49 am
by btakacs
Dear Pierre
Here is the file I used for that test:
But you can easily create an image like this in XnView:
- take an image that has a big volume of the same colour
- Image > Convert to colours
- Image > Edit palette > (Select colour) (Enable transparency) (Ok)
Then (to reproduce the issue):
- Ctrl+ C
- Ctrl + Shift + V
Regards:
Bence
Re: XnView does not paste alpha channel data into clipboard
Posted: Wed Aug 28, 2013 2:43 pm
by xnview
Ok, 'Import from clipboard' doesn't use alpha channel, but if you use Ctrl+C/Ctrl+V, XnView use it
Re: XnView does not paste alpha channel data into clipboard
Posted: Thu Aug 29, 2013 12:58 pm
by btakacs
What do you mean? If you repeat the steps above you loose transparency of the background.
Is that the desired behaviour?
If not: Could it be fixed?
Please check with the given picture.
Update: If the transparent colour is the index 0 then the Ctrl+V works. But the if the transparent is other than the index 0 or I use Ctrl+Shift+V then the issue persists.
Re: XnView does not paste alpha channel data into clipboard
Posted: Fri Aug 30, 2013 11:46 am
by xnview
btakacs wrote:
If not: Could it be fixed?
yes it's a bug of 'import clipboard'
Re: XnView does not paste alpha channel data into clipboard
Posted: Fri Aug 30, 2013 12:02 pm
by btakacs
According to my understanding the problem is with exporting to clipboard, not with importing from clipboard.
AFAIK this kind of the images are displayed wrong in all applications if we use the image exported from XnView and imported to the different kinds of applications.
Re: XnView does not paste alpha channel data into clipboard
Posted: Fri Aug 30, 2013 2:23 pm
by xnview
No

If you copy/paste the alpha channel is not lost
But there is a lot of problem with alpha channel support in windows
Re: XnView does not paste alpha channel data into clipboard
Posted: Mon Sep 02, 2013 7:20 am
by btakacs
Ok, you are the expert. The only thing I want to tell: if I export this kind of images into
any other application in Windows then the transparency is lost. But if I open them from the file system everything is ok.
For me it's happening with images that has color palette with a non-zero index transparent color.
But there is a lot of problem with alpha channel support in windows
Do you mean that it is basically a windows bug but you might create a workaround for it?
Re: XnView does not paste alpha channel data into clipboard
Posted: Mon Sep 02, 2013 8:30 am
by xnview
Sorry about my misunderstanding, it's not alpha channel, but RIGHT there is a problem with 8bits picture + transparency index, the clipboard doesn't support transparency index (i don't know how to use it)... I need to check...