1-bit binary transparency

Ideas for improvements and requests for new features in XnView Classic

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

1-bit binary transparency

Post by XnTriq »

I would like to be able to view 1-bit monochrome images with transparency in such a way that transparent areas are actually displayed as transparent (= XnView's background color or the checkerboard pattern).
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1-bit binary transparency

Post by xnview »

XnTriq wrote:I would like to be able to view 1-bit monochrome images with transparency in such a way that transparent areas are actually displayed as transparent (= XnView's background color or the checkerboard pattern).
Ok, so as an option
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

We already have an option for that: Use transparent index (<=8bits).
This works for images with 16- and 256-color palettes, but not for monochrome images (2-color palettes): BTW: How about combining the two separate settings (Use transparent index (<=8bits) & Use alpha channel) to a single option (Use transparency)?
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

XnTriq wrote:We already have an option for that: Use transparent index (<=8bits).
This works for images with 16- and 256-color palettes, but not for monochrome images (2-color palettes):
B&W are not really a color palette picture!
[/list]BTW: How about combining the two separate settings (Use transparent index (<=8bits) & Use alpha channel) to a single option (Use transparency)?
Many users don't want a general setting for alpha & transparent index
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

xnview wrote:
XnTriq wrote:We already have an option for that: Use transparent index (<=8bits).
This works for images with 16- and 256-color palettes, but not for monochrome images (2-color palettes):
B&W are not really a color palette picture!
I see. But why is transparency in “1-bit color graphics” or “binary images” ignored by XnView and handled differently than transparency in palette-based pictures?

Example of a non-B&W GIF that has a color depth of 1 bit and a transparent background:
  • Image
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

XnTriq wrote:
xnview wrote:
XnTriq wrote:We already have an option for that: Use transparent index (<=8bits).
This works for images with 16- and 256-color palettes, but not for monochrome images (2-color palettes):
B&W are not really a color palette picture!
I see. But why is transparency in “1-bit color graphics” or “binary images” ignored by XnView and handled differently than transparency in palette-based pictures?

Example of a non-B&W GIF that has a color depth of 1 bit and a transparent background:
  • Image
Yes, for me B&W picture are different than 1bit with color.
You have these different picture type B&W ( 1 ), Colour ( 1-8 ), Grey ( 8 ), 24/32 bits pictures
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

Thanks for explaining, Pierre.

So the difference between 1-bit monochrome and 1-bit with color is somewhat similar to the difference between 8-bit grayscale and an indexed color palette of black + white + 254 continuous shades of gray (“fake grayscale”)?
Wikipedia ([url=http://en.wikipedia.org/wiki/Palette_(computing)]Palette[/url]) wrote:Grayscale images usually do not need palettes. The pixel values can be directly the gray level in a given range (0 to 15, 0 to 255), so image files that deal with grayscale images usually do not store a palette color map for this purpose.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

XnTriq wrote: So the difference between 1-bit monochrome and 1-bit with color is somewhat similar to the difference between 8-bit grayscale and an indexed color palette of black + white + 254 continuous shades of gray (“fake grayscale”)?
Yes
Pierre.
Post Reply