7

I created a bitmap with transparent background but in the Windows Picture Viewer I see the white background and even if I reopen it in Photoshop CS3. how do I make sure the white colour in bitmap is really transparent or see if contain any transparent colour?

5 Answers 5

12

Bitmaps (i.e. files with .BMP extension) do not natively support transparency: you need to save as a different format like PNG. Another format that supports transparency is GIF but it is only suitable for simple images with few colours. The best format depends on the image and where it will be used.

If the background is transparent then in Photoshop and most other image editors you would normally see a checkered background made up of small white and grey squares. But the Windows Picture Viewer itself is no good for testing transparency - it shows transparent areas as being white.

Update

Since this answer was originally written (some 8 years ago) it has been pointed out that the BMP format can support transparency in some cases. Still I would not recommend using it for this purpose, many programs will not interpret the alpha channel correctly and there would be no real reason for using it over something like PNG.

4
  • 1
    This article ACTUALLY says that BPM v2.1.4 does support transparency. en.wikipedia.org/wiki/BMP_file_format#Pixel_storage . The question now, is: how many software programs do support that new BMP version?
    – IceCold
    Nov 9, 2018 at 10:44
  • Yes the BMP format is now known to support an undocumented alpha channel that may work in some cases. But why would you want to use this incredibly inefficient file format in 2018 given the number of alternatives?
    – James P
    Nov 9, 2018 at 11:12
  • it is not "undocumented". I just put the link to the documentation.
    – IceCold
    Nov 9, 2018 at 11:37
  • I don't use BMPs anymore.
    – IceCold
    Nov 9, 2018 at 11:37
3

BMP's do support transparency. Bitmap must be set to indexed 256 color, and pixel at (0,0) is for the color that you want transparent.

3
  • 5
    No, they really don't. Some tools take the pixel color at (0, 0) to be considered as transparent, but there is nothing in the BMP spec that allows for transparency. Jan 19, 2012 at 7:22
  • 1
    @IgnacioVazquez-Abrams Bmp format supports transparency. en.wikipedia.org/wiki/BMP_file_format
    – this
    Nov 18, 2015 at 1:38
  • I agree. BMP support transparency for quite a while.
    – IceCold
    Nov 9, 2018 at 10:45
1

If you have Office, start a new presentation using something other than the default blank template, then insert your picture (on the Insert tab in 2007/2010 or Insert | Picture | From File in earlier versions). If you can see through the (supposedly) transparent bits of your picture to the background behind it, then the image does have transparency. Otherwise, no.

This assumes that the image is in a format that PPT can insert (BMP, GIF, PNG, JPG etc).

1

Since v2.1.4 BPM supports transparency.
https://en.wikipedia.org/wiki/BMP_file_format#Pixel_storage

In version 2.1.4 FFmpeg supported (in its own terminology) the BMP pixel formats bgra, bgr24, rgb565le, rgb555le, rgb444le, rgb8, bgr8, rgb4_byte, bgr4_byte, gray, pal8, and monob; i.e., bgra was the only supported pixel format with transparency.

And here is how to test/create BMP with transparency (via PSP):
https://www.axialis.com/tutorials/tutorial-misc002.html

However, you should consider twice before using BMP today. BMP is (mostly) uncompressed therefore it wastes a lot of storage place.

PNG is one of the best formats around (too bad it does not support animation, like GIF).

There is also a new graphic format (WebP from Google) on the horizon, initially crated for web images. I can barely wait to be supported by common applications (MS Paint, Windows, programming languages, etc).
https://medium.com/beginners-guide-to-mobile-web-development/web-image-formats-googles-webp-17e2fe5fc53e

WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster.

and

WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25–34% smaller than comparable JPEG images at equivalent SSIM quality index.

0

Convert image to PNG to support transparency. If photoshop cs3 does not show checkered background its not transparent. The output or saved format decide whether you will see transparency.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .