Bug 125357 - EPS not imported properly / displayed
Summary: EPS not imported properly / displayed
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Images-EPS
  Show dependency treegraph
 
Reported: 2019-05-18 14:41 UTC by Jose
Modified: 2021-12-21 04:06 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Example of a file with an eps that is not properly inserted (132.65 KB, application/vnd.oasis.opendocument.presentation)
2019-05-18 14:54 UTC, Jose
Details
Screenshot from 7.2 (75.23 KB, image/png)
2021-05-22 08:37 UTC, Aron Budea
Details
Screenshot from 3.6.0.4 (124.11 KB, image/png)
2021-05-22 08:38 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jose 2019-05-18 14:41:57 UTC
Description:
I have been used LO impress for the last two years, and I could insert eps files normally with the button: insert-> image.
But when I open one of my old slides with eps I oly get white boxes, when I insert an eps Impress give me a white rectangle, no picture

Steps to Reproduce:
1. In the last version of linux mint with the last LO try to insert an eps
2.
3.

Actual Results:
A white rectangle is inserted in the document

Expected Results:
I expect the real picture to be inserted


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 raal 2019-05-18 14:52:07 UTC
Hello,

Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document.
(Please note that the attachment will be public, remove any sensitive information before attaching it.)
How can I eliminate confidential data from a sample document?
https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F
Thank you
Comment 2 Jose 2019-05-18 14:54:28 UTC
Created attachment 151501 [details]
Example of a file with an eps that is not properly inserted
Comment 3 Jose 2019-05-18 14:56:12 UTC
(In reply to raal from comment #1)
> Hello,
> 
> Thank you for filing the bug. Please send us a sample document, as this
> makes it easier for us to verify the bug. 
> I have set the bug's status to 'NEEDINFO', so please do change it back to
> 'UNCONFIRMED' once you have attached a document.
> (Please note that the attachment will be public, remove any sensitive
> information before attaching it.)
> How can I eliminate confidential data from a sample document?
> https://wiki.documentfoundation.org/QA/
> FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F
> Thank you

Thank you for the fast answer, I hope this document helps
Comment 4 Xisco Faulí 2019-05-21 15:05:15 UTC
Reproduced in

Version: 6.3.0.0.alpha1+
Build ID: a2da909adfe07d5a093485cc28283f5c100946ba
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

Version: 5.2.0.0.alpha0+
Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 4.15; Render: default; 

and

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)

but not in

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 5 Jose 2019-06-20 13:54:58 UTC
(In reply to Xisco Faulí from comment #4)
> Reproduced in
> 
> Version: 6.3.0.0.alpha1+
> Build ID: a2da909adfe07d5a093485cc28283f5c100946ba
> CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
> Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
> Calc: threaded
> 
> Version: 5.2.0.0.alpha0+
> Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
> Threads 4; Ver: 4.15; Render: default; 
> 
> and
> 
> Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
> 
> but not in
> 
> LibreOffice 3.3.0 
> OOO330m19 (Build:6)
> tag libreoffice-3.3.0.4

So, what should I do, is there any solution?
Comment 6 Buovjaga 2020-06-06 14:26:14 UTC
(In reply to Jose from comment #2)
> Created attachment 151501 [details]
> Example of a file with an eps that is not properly inserted

Looks fine for me. Jose: can you please re-test with 6.4.x?

Arch Linux 64-bit
Version: 6.4.4.2
Build ID: 6.4.4-1
CPU threads: 8; OS: Linux 5.6; UI render: default; VCL: kf5; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded
Comment 7 raal 2020-08-13 04:48:34 UTC
I see an image in the file, closing
Version: 7.0.0.3
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
Vlákna CPU: 4; OS: Linux 4.15; Vykreslování UI: výchozí; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: cs-CZ
Calc: threaded
Comment 8 Aron Budea 2021-05-22 08:36:24 UTC
Still not fine for me in LO 7.2.0.0.alpha1+ / Ubuntu.
Nor is it fine in 7.0.0.3, 6.4.0.3, back to 4.0.0.3.
It was okay in 3.6.0.4.

I can see no image in any version on Windows.

Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: b238522ca121ca8f863fe4d3394ade088a65ad01
CPU threads: 16; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 9 Aron Budea 2021-05-22 08:37:33 UTC
Created attachment 172242 [details]
Screenshot from 7.2
Comment 10 Aron Budea 2021-05-22 08:38:09 UTC
Created attachment 172243 [details]
Screenshot from 3.6.0.4
Comment 12 V Stuart Foote 2021-05-23 18:07:09 UTC
@Aron, *

This really is NOT OUR BUG, and work on bug 67464 would be needed to do anything else.

LibreOffice does not directly read EPS during filter import [1], insted it requires one or more of 3 external helper programs.

Imagemagick or ghostscript -- both will produce BMP raster image, or will use the empedded preview bitmap, usuually TIFF, of an epsi if present.

The third pstoedit will render EPS to vector, but will reomve verticies resulting in visual distortion of the vector strokes. Windows builds of the app have a "shareware' extension that will parse all verticies from the EPS in generating an EMF vector graphic.

Both Imagemagick and pstoedit require a ghostsript installation be present.

These helpers are not managed by LibreOffice, they must be installed and present on user profile PATH, if not so configured LibreOffice will not use the helper.

If pstoedit is present on path it will render to EMF; otherwise the filter picks the RenderAsBMPThroughGS (GS only no ImageMagick or pstoedit) or finally  RenderAsBMPThroughConvert () (Imagemagick and GS on path).

The ieps routines remain in place and function when os/DE is correctly configure. Removing regression and bibisect, function is dependent on os.

Please correct your os/DE to install the needed helper(s) and verify valid PATH.

Please note, it really is more effective to use an external application to directly convert EPS to EMF or SVG vector and then import that graphic. Also that since its 7.0 release, command line use of ImageMagick's 'convert' helper requires you install it's "legacy" module to have script access.

Needinfo is for OP and other reporters to retest with necessary "helpers" configured as needed by LibreOffice.

=-ref-=

[1] https://opengrok.libreoffice.org/xref/core/vcl/source/filter/ieps/ieps.cxx
Comment 13 Aron Budea 2021-05-23 20:20:22 UTC
(In reply to V Stuart Foote from comment #12)
> This really is NOT OUR BUG, and work on bug 67464 would be needed to do
> anything else.
Not entirely sure about that, please see below.

> Both Imagemagick and pstoedit require a ghostsript installation be present.
> 
> These helpers are not managed by LibreOffice, they must be installed and
> present on user profile PATH, if not so configured LibreOffice will not use
> the helper.
$ pstoedit
pstoedit: version 3.75 / DLL interface 108 (built: Mar 22 2020 - release build - g++ 9.3.0 - 64-bit) : Copyright (C) 1993 - 2020 Wolfgang Glunz

$ dpkg -s imagemagick
Package: imagemagick
Status: install ok installed

$ ghostscript -v
GPL Ghostscript 9.50 (2019-10-15)

> Please correct your os/DE to install the needed helper(s) and verify valid
> PATH.
The questions I have:
- What else has to be done? Is it certain this doesn't work due to some bug in LibreOffice, as the necessary helpers seem to be present?
- Why are these details not being documented not our bug?
- What changed between 3.6 and 4.0 that version 3.6 works on my distro, and version 4.0 doesn't?
Comment 14 V Stuart Foote 2021-05-23 21:12:41 UTC
So, what is returned in a terminal with a run of each

"gs -version"-and- "ps2pdf -info"

"convert" -or- "identify"

"pstoedit -version"

and of course, on Windows builds--the command is gswin64c or gswin32c

if they don't from a terminal/cmd window they're not on path and won't run from LibreOffice.
Comment 15 Aron Budea 2021-05-23 23:26:56 UTC
(In reply to V Stuart Foote from comment #14)
> So, what is returned in a terminal with a run of each
Here they are:

$ gs --version
9.50

$ ps2pdf -info
Usage: ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]

$ convert
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
...

$ pstoedit
pstoedit: version 3.75 / DLL interface 108 (built: Mar 22 2020 - release build - g++ 9.3.0 - 64-bit) : Copyright (C) 1993 - 2020 Wolfgang Glunz
Comment 16 QA Administrators 2021-11-20 04:07:11 UTC Comment hidden (obsolete)
Comment 17 QA Administrators 2021-12-21 04:05:57 UTC
Dear Jose,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp