Bug 73523 - Certain bitmaps (usually ones embedded in Visio files) are imported as black boxes
Summary: Certain bitmaps (usually ones embedded in Visio files) are imported as black ...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Andras Timar
URL:
Whiteboard: target:7.4.0
Keywords: filter:visio
: 77914 87149 127670 146684 (view as bug list)
Depends on:
Blocks: Visio
  Show dependency treegraph
 
Reported: 2014-01-12 19:27 UTC by Maxim Ganetsky
Modified: 2022-01-11 09:24 UTC (History)
13 users (show)

See Also:
Crash report or crash signature:


Attachments
Example with embedded images in Visio 2002 format (313.32 KB, application/zip)
2014-01-12 19:27 UTC, Maxim Ganetsky
Details
The extracted images that are rendered correctly by a host of viewers, but not LO (95.27 KB, application/zip)
2014-01-14 08:17 UTC, Fridrich Strba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Ganetsky 2014-01-12 19:27:00 UTC
Created attachment 91906 [details]
Example with embedded images in Visio 2002 format

LibreOffice 4.1.3 both on Windows and Linux fails to render correctly attached Visio file for me. This file contains five embedded screenshots, but they are loaded as black rectangles.
Comment 1 tommy27 2014-01-12 21:30:01 UTC
I see 4 black rectangles too with LibO 4.1.4.2 under Win7 64bit
Comment 2 Valek Filippov 2014-01-14 01:09:45 UTC
Fridrich,

5 FrgnData chunks seem to contain DIB right after chunk headers.
(for example $dib@13 on 0:2:11:1:1:54:1).
Could it be a problem because of the 32 bpp image?
Comment 3 Fridrich Strba 2014-01-14 08:17:14 UTC
Created attachment 92019 [details]
The extracted images that are rendered correctly by a host of viewers, but not LO
Comment 4 Valek Filippov 2014-01-14 13:14:31 UTC
Another suspect in embedded DIBs is "compression type == 3" ("Bit field or Huffman 1D compression for BITMAPCOREHEADER2")
Comment 5 David Tardon 2015-02-01 12:20:14 UTC
*** Bug 77914 has been marked as a duplicate of this bug. ***
Comment 6 David Tardon 2015-02-01 12:25:25 UTC
*** Bug 87149 has been marked as a duplicate of this bug. ***
Comment 7 QA Administrators 2016-02-21 08:34:25 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2017-05-22 13:21:48 UTC Comment hidden (obsolete)
Comment 9 Telesto 2017-05-27 18:14:35 UTC
Still black
Version: 5.5.0.0.alpha0+
Build ID: d57e6cd9dcc96112994ca2b14ac45896e86b26e5
CPU threads: 4; OS: Windows 6.19; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-05-18_22:43:07
Locale: nl-NL (nl_NL); Calc: CL
Comment 10 QA Administrators 2018-05-28 02:31:50 UTC Comment hidden (obsolete)
Comment 11 Magnus Westin 2019-02-05 14:40:31 UTC
Still Black

Version: 6.1.4.2
Build ID: 6.1.4.2-1.fc29
CPU threads: 4; OS: Linux 4.20; UI render: default; VCL: gtk3; 
Locale: sv-SE (en_US.UTF-8); Calc: group threaded
Comment 12 QA Administrators 2021-08-27 04:05:05 UTC Comment hidden (obsolete)
Comment 13 Roman Kuznetsov 2022-01-04 22:04:30 UTC
https://gerrit.libreoffice.org/c/core/+/127927
Comment 15 Xisco Faulí 2022-01-10 11:36:05 UTC
Verified in

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: bf883027ee62ece0844730572305094f53daa521
CPU threads: 4; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

@Andreas Timar, thanks for fixing this issue!!
Comment 16 Aron Budea 2022-01-11 00:20:16 UTC
*** Bug 146684 has been marked as a duplicate of this bug. ***
Comment 17 Aron Budea 2022-01-11 00:21:55 UTC
Adjusting component, since it wasn't a bug in libvisio.
Comment 18 Xisco Faulí 2022-01-11 09:24:38 UTC
*** Bug 127670 has been marked as a duplicate of this bug. ***