Bug 41995 - Save svg images to Picture stream unwrapped
Summary: Save svg images to Picture stream unwrapped
Status: CLOSED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Master old -3.6
Hardware: All All
: medium normal
Assignee: Thorsten Behrens (allotropia)
URL:
Whiteboard: target:7.0.0
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 03:43 UTC by Thorsten Behrens (allotropia)
Modified: 2020-05-22 09:19 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten Behrens (allotropia) 2011-10-19 03:43:30 UTC
Current master stores svg images cloaked as .svm metafiles, with a preview bitmap. That's not very interoperable - if possible, store native svg instead.
Comment 1 Thorsten Behrens (allotropia) 2011-10-21 03:15:04 UTC
Fix pushed to master. There were two things:

    Fix fdo#41995 fallout - recognize .svg in odf container
    
    Seems the graphic load code is stupid and not using the path name /
    file extension to guess file type, but only "magic byte" detection.
    Giving filter framework the path now, so that .svg actually loads.

and

    Fix fdo#41995 - true embedding of svg images.
    
    Previously, svg images were always wrapped as .svm metafiles with
    a preview graphic. Sucks for interop - so now, we save true svgs
    at least for bleeding edge extended odf1.2

So what LibreOffice will do, starting with 3.5, is by default store
true .svg files. Those should load fine in recent 3.4 versions as
well, the first fix is pending review there. They will *not* load in
OOo versions, and, unless we do another release there, for LibreOffice
3.3.x
Comment 2 Rainer Bielefeld Retired 2011-11-28 00:55:50 UTC
Thorsten:
I am not sure whether I understand all details. Do we talk about documents with picture.svg inserted by 'Insert -> Ficture -> From file?'
Comment 3 Thorsten Behrens (allotropia) 2011-11-28 05:32:10 UTC
(In reply to comment #2)
> I am not sure whether I understand all details. Do we talk about documents with
> picture.svg inserted by 'Insert -> Ficture -> From file?'
>
Yes.
Comment 4 Rainer Bielefeld Retired 2011-11-30 08:52:37 UTC
Verified with Server installation of MSVC Master "LibO-dev 3.5.0 – WIN7 Home Premium (64bit) ENGLISH UI [Build ID: a653e50-1f92ab1-3bd0388]" Win-x86@6  - 111128). It seems my Master with what I tested before Comment 2 was the last one with the bug :-/
Comment 5 Dag Wieers 2012-01-22 16:47:59 UTC
It works for me with 3.5rc1 on RHEL6 x86_64. Files created using asciidoc-odf look fine when opened with LibreOffice !

Thanks for fixing this !
Comment 6 Manfred Kitzbichler 2012-07-31 22:25:19 UTC
Since this seems to be the only change between 3.4.3 and 3.4.4 with respect to SVG handling, I wonder whether this might be the cause of the following bug:

https://bugs.freedesktop.org/show_bug.cgi?id=45845
Comment 7 Commit Notification 2020-05-22 09:19:02 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/d407019a69773156b0bb9ef0b4a775f67830949e

tdf#41995: sxx: ODF export: save SVG to ODF 1.2 as well

It will be available in 7.0.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.