Bug 122155 - Export to many different formats is distorted
Summary: Export to many different formats is distorted
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Graphics-Export
  Show dependency treegraph
Reported: 2018-12-17 13:42 UTC by andreas.neubaum
Modified: 2024-01-29 09:58 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:

exporting this file causes the bug (11.71 KB, application/LibreOfficeDraw)
2018-12-17 13:45 UTC, andreas.neubaum
exported emf file (7.00 KB, image/emf)
2018-12-17 13:47 UTC, andreas.neubaum

Note You need to log in before you can comment on or make changes to this bug.
Description andreas.neubaum 2018-12-17 13:42:09 UTC
Whenever I try to to export the attached sample odg-file to one of the formats gif, svg, png or emf the result looks distorted (see attached exports). However the export works fine for jpg and pdf files. I already tried to restart LibreOffice and my PC, reset the entire Libre Office to factory settings or launch it in safe mode but the problem still persists. However it looks like this problem only occurs for certain images: for a few odg-files similair to the attached one the same problem occurs, for others the export works just fine (however I could not yet find out what exactly causes the export problems in the odg-files, some work, others don't).

Steps to Reproduce:
1. open the attached .odg-file in LibreOffice Draw
2. click File->Export, choose emf for instance, click save
3. open the resulting emf file --> it looks distorted

Actual Results:
The resulting exported image is distorted

Expected Results:
The resulting exported image is not distorted

Reproducible: Always

User Profile Reset: Yes

OpenGL enabled: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: de
Module: DrawingDocument
[Information guessed from browser]
OS: Windows 7
OS is 64bit: yes
Comment 1 andreas.neubaum 2018-12-17 13:45:42 UTC
Created attachment 147619 [details]
exporting this file causes the bug

when exporting this file to emf it looks distorted
Comment 2 andreas.neubaum 2018-12-17 13:47:41 UTC
Created attachment 147620 [details]
exported emf file

when exporting the attached odg-file this is the resulting emf-file. It clearly looks distorted comparing it to the original odg-file.
Comment 3 Telesto 2018-12-17 15:23:55 UTC
Build ID: beae6c7a7f163daad0d4dea63a3d403af2745fd1
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-12-06_23:55:16
Locale: en-US (nl_NL); UI-Language: en-US
Calc: CL

Border contour missing/ scaling is off + purple background

Border contour missing/ scaling is off (+ black background in Irfan view)

Everything fine with:
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL
Comment 4 Hiromi Kuramoto 2018-12-18 05:00:09 UTC
I tried this reproduce in MacOS Sierra, but exported image is not distorted.

reproduce with:
Build ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb
CPU threads: 4; OS: Mac OS X 10.12.5; UI render: default; 
Locale: en-US (ja_JP.UTF-8); Calc: group threaded
Comment 5 raal 2019-03-04 19:25:51 UTC
bisected GIF case

This seems to have begun at the below commit.
Adding Cc: to Armin Le Grand; Could you possibly take a look at this one? Thanks
 281611bcbe466cc1fd08ad39c8a664b92322d27a is the first bad commit
commit 281611bcbe466cc1fd08ad39c8a664b92322d27a
Author: Norbert Thiebaud <nthiebaud@gmail.com>
Date:   Wed Mar 9 00:46:39 2016 -0800

    source f3ff67d3c3047de3ad43f8bb3f805d82eaef0479

author	Armin Le Grand <Armin.Le.Grand@cib.de>	2016-03-02 17:21:10 +0100
committer	Michael Stahl <mstahl@redhat.com>	2016-03-02 21:29:48 +0000
commit f3ff67d3c3047de3ad43f8bb3f805d82eaef0479 (patch)
tree e6ee6051aa5baffc44e48bc4e13de6227f6eec87
parent 01ffe26fdf1c4575cffdf64468e3c1c996a2d200 (diff)
tdf#96922 Suppress EditView PageVisuailsation in GraphicExporter
Comment 6 Thorsten Behrens (allotropia) 2024-01-29 09:58:40 UTC
Un-Ccing developer for the moment, old regression & very high workload.