Opened 7 years ago

Closed 4 years ago

Last modified 4 years ago

#8782 closed bug (fixed)

ShowImage (or BMP translator) convert from PNG to BMP result in a drawing issue

Reported by: Giova84 Owned by: nobody
Priority: normal Milestone: R1
Component: Add-Ons/Translators/BMP Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: x86


When i open an PNG image containing alpha channel and i convert this image to BMP, the resulting file contain drawing issues showed in the screenshot. hrev44384

Attachments (1)

ShowImage_DrawingIssueBITMAP.png (313.6 KB) - added by Giova84 7 years ago.

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by Giova84

comment:1 Changed 7 years ago by Giova84

As in this ticket: i guess that ShowImage doesn't handle correctly alpha channel.

comment:2 Changed 7 years ago by X512

Component: Applications/ShowImageAdd-Ons/Translators/BMP
Owner: changed from leavengood to nobody

I see that alpha channel is dropped. It happens because origional BMP format don't support alpha channel so Haiku translator can't use it. But newer versions of format and some programs (including internal windows programs line logonui.exe) using bitmaps with alpha channel.

comment:3 Changed 6 years ago by hometue

(GCI-2012 Participant) Haiku revision: hrev44702. Not valid, but the transparent portion will be filled with a solid color, while the semi-transparent portion will become a solid version of the same color. System: Haiku R1-alpha4 on Virtualbox 4.1.20 on windows 7 64 bit

comment:4 Changed 4 years ago by pulkomandy

Resolution: fixed
Status: newclosed

Currently the background is properly cleared to white in that case, which sounds like a reasonable solution. We could extend the BMP translator to fully support alpha now, as it is available in version 3, 4 and 5 of the header:

But it seems not all applications can handle this... Closing the ticket as there is no bug here, only missing functionalities in the BMP translator.

comment:5 Changed 4 years ago by phoudoin

Or turn this ticket into a low priority enhancement ticket renamed to "Add BMPv3+ alpha channel support to BMPTranslator", keeping it on the backlog.

Last edited 4 years ago by phoudoin (previous) (diff)
Note: See TracTickets for help on using tickets.