[Libreoffice-bugs] [Bug 123983] REad Error if embedded images are not into the Pictures directory

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Mar 11 08:58:12 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=123983

--- Comment #10 from Laurent Mignon <laurent.mignon at acsone.eu> ---
(In reply to Julien Nabet from comment #9)
> Let's put back to UNCONFIRMED.
> I never saw pictures generated at root level from a version of LO and
> thought odf validator would complain but it's not the case.
> Anyway I can't help here so uncc myself.

Even if I fix the validation error, the pictures are not properly displayed.
could you point me where it's specified that pictures must be in a sub
directory?
As I understand, there is no rule saying where to place the pictures. The only
rules are.

* The "href" attribute of the "<dram:image/>" tag must be the path to the file
into the archive.
* The file must be declared into the file META-INF/manifest.xml

In the working case we have:
----------------------------

content.xml
...
<draw:image
xlink:href="Pictures/6dcfbae1284da95d6bcf990e3b9bfd4d7ab9f6d034ba057327a436c19f77277e"
...

META-INF/manifest.xml

....
<manifest:file-entry
manifest:full-path="Pictures/6dcfbae1284da95d6bcf990e3b9bfd4d7ab9f6d034ba057327a436c19f77277e"
...

And the image is into the Pictures subdirectory


Into the failing case we have:
------------------------------

content.xml
...
<draw:image
xlink:href="Pictures/6dcfbae1284da95d6bcf990e3b9bfd4d7ab9f6d034ba057327a436c19f77277e"
...

META-INF/manifest.xml

....
<manifest:file-entry
manifest:full-path="Pictures/6dcfbae1284da95d6bcf990e3b9bfd4d7ab9f6d034ba057327a436c19f77277e"
...

And the image is a the root of the archive.



In both cases the "href" has the right path to the image. Therefore that should
work. Do I miss something? If a rule exists saying that the pictures must be
into a sub directory, we can close this issue otherwise we must fix it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190311/3bff2283/attachment.html>


More information about the Libreoffice-bugs mailing list