Bug 136186 - vsdx import incorrectly render process boxes as white (making text unreadable)
Summary: vsdx import incorrectly render process boxes as white (making text unreadable)
Status: RESOLVED FIXED
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: libvisio (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://gitlab.com/inkscape/inkscape/...
Whiteboard:
Keywords:
Depends on:
Blocks: Visio
  Show dependency treegraph
 
Reported: 2020-08-27 14:57 UTC by Velmurugan Muthu
Modified: 2024-01-31 14:23 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
vsdx file (52.01 KB, application/vnd.ms-visio.drawing)
2020-08-27 15:00 UTC, Velmurugan Muthu
Details
screenshot (267.53 KB, image/png)
2020-08-27 16:28 UTC, Julien Nabet
Details
vsdx file in visio. It looks as it is. (195.76 KB, image/png)
2020-09-08 10:51 UTC, Velmurugan Muthu
Details
Least expected. (204.08 KB, image/png)
2020-09-08 10:53 UTC, Velmurugan Muthu
Details
Reproduced issue in LibreOffice 7.0.2 (187.14 KB, image/png)
2020-10-15 07:54 UTC, Bartosz
Details
The same file in VSD format. It's OK. (94.00 KB, application/vnd.visio)
2022-01-13 22:43 UTC, Andras Timar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Velmurugan Muthu 2020-08-27 14:57:36 UTC
Description:
Using inkscape 1.0 command line option vsdx image is coverted to png image. But the converted image does not contain the blue color background in a rectangular box as in the vsdx file.Instead of blue it has white background. Hence the text contents are not visible in that rect box. In Inkscape 0.91 version, converted png image has black background for all the diagrams. So the text contents are visible.

It seems the problem is in libvisio which handles visio formats.

Steps to Reproduce:
1. open command line
inkscape --export-type="png" D:/OTP/Inkskape/Compare/abc.vsdx


Actual Results:
Text contents are not visible because of white background in the rectangular box.

Expected Results:
It should have the same color as in the vsdx file.


Reproducible: Always


User Profile Reset: No



Additional Info:
 Refer 

https://gitlab.com/inkscape/inkscape/-/issues/1814#note_403195304
Comment 1 Velmurugan Muthu 2020-08-27 15:00:00 UTC
Created attachment 164755 [details]
vsdx file
Comment 2 Julien Nabet 2020-08-27 16:15:39 UTC
David: thought you might be interested in this one since it concerns libvisio.
Comment 3 Julien Nabet 2020-08-27 16:28:13 UTC
Created attachment 164765 [details]
screenshot

Here's a screenshot on pc Debian x86-64 with master sources updated today.
It seems background is ok here.
Comment 4 Julien Nabet 2020-08-27 16:34:55 UTC
Velmurugan Muthu: I wonder if it should be NOTOURBUG here. Indeed, if everything is ok on LO, the problem is not libvisio.
Did you submit a bug on Inkscape bugtracker? Perhaps they use an old version of libvisio.
Comment 5 Velmurugan Muthu 2020-08-28 05:06:34 UTC
Julian Nabet: Yes i opened an issue first in Inkscape only.  Please refer the this link. https://gitlab.com/inkscape/inkscape/-/issues/1814

In the attached screenshot, the problem still exists. If you see, the rectangular box background should be in blue color but it is in the white background. Because of that text in that box are not visible.
Comment 6 Julien Nabet 2020-08-28 07:53:39 UTC
Ok thank you for your feedback.
Comment 7 Velmurugan Muthu 2020-08-31 06:42:12 UTC
Is there any workaround for this issue ? Please feedback on the timeline for the solution. This issue blocks our migration to the newer version.
Comment 8 Julien Nabet 2020-08-31 07:43:33 UTC
I don't see any workaround but I'm not an expert.
About solution, there's no feedback for the moment so no timeline defined.

Now don't forget libvisio, as LO, is an open source lib so you can also either fix or hire someone to fix the bug.
Comment 9 Velmurugan Muthu 2020-08-31 07:45:45 UTC
Thanks for the feedback.
Comment 10 Xisco Faulí 2020-09-07 09:03:25 UTC
Hello Velmurugan Muthu,
Would it be possible to add a screenshot showing how it should look ?  Any chance you could open it with Visio ?
Comment 11 Velmurugan Muthu 2020-09-08 10:51:51 UTC
Created attachment 165263 [details]
vsdx file in visio. It looks as it is.
Comment 12 Velmurugan Muthu 2020-09-08 10:53:59 UTC
Created attachment 165265 [details]
Least expected.

Expected : converted png should look as same as vsdx file.

Or at least the text contents should be visible. Refer the image abc.png
Comment 13 Bartosz 2020-10-15 07:54:53 UTC
Created attachment 166376 [details]
Reproduced issue in LibreOffice 7.0.2

I could confirm the issue on Libreoffice 7.0.2:

Version: 7.0.2.2 (x64)
Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994
CPU threads: 3; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: threaded
Comment 14 Bartosz 2020-10-15 07:56:25 UTC
Could you please save the vsdx file also in other formats (eg. vsd). I would like to check if the issue is also with old formats.
Comment 15 Xisco Faulí 2022-01-11 09:21:21 UTC
Still reproducible 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
Comment 16 Xisco Faulí 2022-01-11 09:25:51 UTC
@Andras, since you fixed bug 73523, I thought you might be interested in this issue as well
Comment 17 Andras Timar 2022-01-12 11:36:09 UTC
My theory is that this blue color is the default color, and libvisio falsely imports it as white. I think the root cause is the same as with sample file from tdf#77915
Comment 18 Andras Timar 2022-01-13 22:42:07 UTC
(In reply to Bartosz from comment #14)
> Could you please save the vsdx file also in other formats (eg. vsd). I would
> like to check if the issue is also with old formats.

VSD format does not have this bug.
Comment 19 Andras Timar 2022-01-13 22:43:03 UTC
Created attachment 177533 [details]
The same file in VSD format. It's OK.
Comment 20 Timur 2024-01-31 13:55:17 UTC
I see this corrctly with blue rectanges, fixed at least in LO 24.2 and CO 23.05.