Transparency color selection

Ideas for improvements and requests for new features in XnView Classic

Moderators: helmut, XnTriq, xnview

mikiqex
Posts: 4
Joined: Sun Dec 03, 2006 9:40 pm
Location: Prague
Contact:

Transparency color selection

Post by mikiqex »

Hi, long time ago i suggested cool feature from IrfanView - transparency color selection, before saving GIF, PNG, ICO etc. Answer was it's good improvement, but in beta i wasn't able to find it, so i'd like to remind it :)

It's the same or zoomed picture in special dialog window and using mouse you can choose a color to be transparent. It's much faster than trying what color in pallete is the right one.

It's also possible to use this feature instead "Edit Colormap" dialog window to select transparent color (or whatever).

Thanks.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Transparency color selection

Post by xnview »

mikiqex wrote:Hi, long time ago i suggested cool feature from IrfanView - transparency color selection, before saving GIF, PNG, ICO etc. Answer was it's good improvement, but in beta i wasn't able to find it, so i'd like to remind it :)

It's the same or zoomed picture in special dialog window and using mouse you can choose a color to be transparent. It's much faster than trying what color in pallete is the right one.

It's also possible to use this feature instead "Edit Colormap" dialog window to select transparent color (or whatever).
And why Edit colormap is not good for you :-) ?
Pierre.
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post by Drahken »

The problem wuth the colormap method is that you have to know exactly what color you want to make transparent. If there is only one shade of green and that's what you want transparent, it's easy. If there are a dozen shades of green, it could take a dozen tries to find the right one. In the other program, you click on a portion of the image itself to choose the color, this way you know it's the right one without having to retry a dozen times.
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Drahken wrote:In the other program, you click on a portion of the image itself to choose the color, this way you know it's the right one without having to retry a dozen times.
I don't understand, for GIF transparency you need only 1 transparency index???
Pierre.
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post by Drahken »

You have only 1 transparent color, but the problem is in trying to locate which color. If you have an image that's red, white, and blue and you want the blue sections transparent it's easy. What if your pics has several shades of blue? In order to figure out which one is the one you want to be transparent, you may well have to try a dozen times.

Take this pic for example: http://allspark.net/cypherswipe/trans-test.png There are dozens of near-black entries, trying to find the palette entry which will change the black background to transparent is hit & miss. You might get the right one, or you might just make one of the shadows in the middle of the image transparent. With the other method, you could simply click on the background and it would automatically choose the right palette entry.
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
mikiqex
Posts: 4
Joined: Sun Dec 03, 2006 9:40 pm
Location: Prague
Contact:

Post by mikiqex »

Drahken wrote:The problem wuth the colormap method is that you have to know exactly what color you want to make transparent. If there is only one shade of green and that's what you want transparent, it's easy. If there are a dozen shades of green, it could take a dozen tries to find the right one. In the other program, you click on a portion of the image itself to choose the color, this way you know it's the right one without having to retry a dozen times.
Exactly, that's it
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

mikiqex wrote:
Drahken wrote:The problem wuth the colormap method is that you have to know exactly what color you want to make transparent. If there is only one shade of green and that's what you want transparent, it's easy. If there are a dozen shades of green, it could take a dozen tries to find the right one. In the other program, you click on a portion of the image itself to choose the color, this way you know it's the right one without having to retry a dozen times.
Exactly, that's it
Oh, you want to select transparent index directly on the picture??
Pierre.
mikiqex
Posts: 4
Joined: Sun Dec 03, 2006 9:40 pm
Location: Prague
Contact:

Post by mikiqex »

xnview wrote:
mikiqex wrote:
Drahken wrote:The problem wuth the colormap method is that you have to know exactly what color you want to make transparent. If there is only one shade of green and that's what you want transparent, it's easy. If there are a dozen shades of green, it could take a dozen tries to find the right one. In the other program, you click on a portion of the image itself to choose the color, this way you know it's the right one without having to retry a dozen times.
Exactly, that's it
Oh, you want to select transparent index directly on the picture??
Yes, it's much faster than trying what shade is the right one :)

And in IrfanView it was (optionally) like another dialog window during "saving procedure", so you didn't forgot to set the transparent color. IMO this solution si more user friendly (at least for me :) )
User avatar
herr_k.
Posts: 192
Joined: Fri Jan 06, 2006 6:11 pm

Post by herr_k. »

xnview wrote:Oh, you want to select transparent index directly on the picture??
is this in progress/evaluated?
i would like to see that too.

btw,where is the palette editor for changing a color to transparent?
User avatar
herr_k.
Posts: 192
Joined: Fri Jan 06, 2006 6:11 pm

Post by herr_k. »

the "edit colormap" is always greyed out, so i cannot choose it. or is this only possible with 256 color gifs.
is there another way to find out on which entry in the colormap a certain color is, so i can save it as transparent?

btw i am also never able to choose "true colors" when saving ia gif - why not?
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

herr_k. wrote:the "edit colormap" is always greyed out, so i cannot choose it. or is this only possible with 256 color gifs.
is there another way to find out on which entry in the colormap a certain color is, so i can save it as transparent?
To edit the colormap, your picture must have a colormap (4< <256 colors)
btw i am also never able to choose "true colors" when saving ia gif - why not?
GIF is only able to save maximum of 8bits
Pierre.
User avatar
herr_k.
Posts: 192
Joined: Fri Jan 06, 2006 6:11 pm

Post by herr_k. »

aha.
xnview wrote:
herr_k. wrote:btw i am also never able to choose "true colors" when saving ia gif - why not?
GIF is only able to save maximum of 8bits
hm, i just wondered, because there is a greyed out "true colors" option in the gif-savedialog when choosing colors..
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Not really…

Post by Clo »

—> Pierre

:) Hello !
…GIF is only able to save maximum of 8bits…
• That's not quite true, you might have written :
The programmes are only able to save GIF as 8 BPP”.
- There was a discussion a while ago, showing that the original specs. don't limit the GIF to 8 BPP, with a sample… ;)
- I can't find out it again now, but maybe… Mr. Librarian, please ?

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Clap, clap !

Post by Clo »

—> XnTriq

:) Hello !

• Thanks ! It's indeed the right thread !

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
Post Reply