Bug 1400328 - f24->f25 libreoffice writer: svg images are corrupted
Summary: f24->f25 libreoffice writer: svg images are corrupted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libreoffice
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Tardon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-30 22:08 UTC by Ryan Rowe
Modified: 2017-01-20 18:07 UTC (History)
6 users (show)

Fixed In Version: libreoffice-5.2.4.2-3.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-20 18:07:28 UTC
Type: Bug


Attachments (Terms of Use)
this svg will not show in libreoffice writer (2.34 KB, image/svg+xml)
2016-12-01 20:37 UTC, Ryan Rowe
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Document Foundation 104339 0 None None None 2016-12-02 08:36:59 UTC

Description Ryan Rowe 2016-11-30 22:08:52 UTC
Description of problem:
If I open a LibreOffice Writer document which contains an svg image, the image is now corrupted. I have tried with multiple documents which I know worked before.
If I view the PDF version of those documents saved previously, the images display fine.
If I save the document as a PDF using the F25 version of Writer, and view the PDF with evince, the image is corrupted.

Version-Release number of selected component (if applicable):
libreoffice-writer-5.2.3.3-9.fc25.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Ryan Rowe 2016-11-30 22:24:40 UTC
LibreOffice seems to have a problem with this svg image, which I am not allowed to upload here (great). Firefox, eog, qiv, inkscape, gimp all display it correctly.

Comment 2 David Tardon 2016-12-01 07:46:14 UTC
Well, there's nothing we can do without the image...

Comment 3 David Tardon 2016-12-01 08:31:22 UTC
Actually, could you send the image either to Caolan or myself?

Comment 4 Ryan Rowe 2016-12-01 20:37:40 UTC
Created attachment 1227014 [details]
this svg will not show in libreoffice writer

Open LibreOffice Writer and go to Insert> Image, then insert this file.
You should see nothing.

Now open the same file using LibreOffice Draw, or eog/firefox/qiv/gimp. Magic!

Comment 5 David Tardon 2016-12-02 08:24:35 UTC
There's no magic there: File->Open and Insert->Image simply use different filter... (LibreOffice contains, for historical reasons, two SVG import filters. One tries to preserve the SVG content, e.g., for roundtrip, but the inserted image is not editable. The other converts the SVG to a "native" representation, so it's editable.)

Comment 6 Ryan Rowe 2016-12-02 09:47:01 UTC
It's magic to me - it worked last week when I was on 24!

Comment 7 Ryan Rowe 2016-12-21 14:27:01 UTC
Could the patch https://cgit.freedesktop.org/libreoffice/core/commit/?id=5903235d57acb13d9d5286d23b443a01aeab9a3c from the upstream bug be included in F25?

Comment 8 Fedora Update System 2017-01-18 16:21:56 UTC
libreoffice-5.2.4.2-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d20e8f680b

Comment 9 Fedora Update System 2017-01-19 09:12:19 UTC
libreoffice-5.2.4.2-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d20e8f680b

Comment 10 Fedora Update System 2017-01-20 18:07:28 UTC
libreoffice-5.2.4.2-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.