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

            Bug ID: 149043
           Summary: Writer doesn't render an image file which is in the
                    root of zip dir (ODF Validation succeeds/Google Docs
                    works fine)
           Product: LibreOffice
           Version: 7.3.3.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 180069
  --> https://bugs.documentfoundation.org/attachment.cgi?id=180069&action=edit
Writer reports `Read Error` on an image file which exists (in the root of the
zip dir)

#+TITLE: Writer doesn't render an image file which is in the root of zip dir

#+CAPTION:  *Why does ~Writer~ give a read error, but Google Docs doesn't?*
[[./org-mode-unicorn.png]]

This image file is at the root of the zip folder, /*instead of in
~Pictures/~*/.

1. ~LibreOffice Writer~ shows me a ~Read Error~

     - How the `zip` file looks like ::

       #+begin_src text
       M    Mode      Size        Date&time         Filename
       - ----------  ------  --------------------  ----------------
         -rw-r--r--      39  12-May-2022 11:25:32  mimetype
         -rw-r--r--  104841  12-May-2022 11:25:32  styles.xml
         -rwxr-xr-x   10527  12-May-2022 11:25:32  0001.png
         -rw-r--r--  207204  12-May-2022 11:25:32  content.xml
         -rw-r--r--     647  12-May-2022 11:25:32  meta.xml
         drwxr-xr-x       0  12-May-2022 11:25:32  META-INF/
         -rw-r--r--     649  12-May-2022 11:25:32  META-INF/manifest.xml
       - ----------  ------  --------------------  ----------------
                     323907                         7 files
       #+end_src

     - How the ~META-INF/manifest.xml~ looks like ::

       #+begin_src nxml
       <?xml version="1.0" encoding="utf-8"?>
       <manifest:manifest manifest:version="1.2"
                         
xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">

         <manifest:file-entry manifest:full-path="/"
                             
manifest:media-type="application/vnd.oasis.opendocument.text"
                              manifest:version="1.2" />
         <manifest:file-entry manifest:full-path="meta.xml"
                              manifest:media-type="text/xml" />
         <manifest:file-entry manifest:full-path="styles.xml"
                              manifest:media-type="text/xml" />
         <manifest:file-entry manifest:full-path="content.xml"
                              manifest:media-type="text/xml" />
         <manifest:file-entry manifest:full-path="0001.png"
                              manifest:media-type="image/png" />
       </manifest:manifest>
       #+end_src

     - How `content.xml` looks like ::

       #+begin_src nxml
        <text:p text:style-name="OrgFigureBody">
          <draw:frame draw:style-name="OrgToCharImage"
                      svg:height="4.66cm"
                      svg:width="4.29cm"
                      text:anchor-type="char">
            <draw:image xlink:actuate="onLoad"
                        xlink:href="0001.png"
                        xlink:show="embed"
                        xlink:type="simple" />
            </draw:frame>Figure 
            <text:bookmark text:name="org2ea9b5d" />
            <text:sequence text:name="Figure"
                           style:num-format="1"
                           text:formula="ooow:Figure+1"
                           text:ref-name="org2ea9b5d">1</text:sequence>: Why
            does 
            <text:span text:style-name="OrgCode">Writer</text:span>give a read
        error, but Google Docs doesn't?</text:p>
       #+end_src

2. Google Docs renders the document fine.
3. The ODF Validation[fn:1] on the file succeeds

   #+begin_src sh
   java -jar
/home/kjambunathan/src/org-mode-ox-odt/testing/examples/odt/odfvalidator-0.10.0-jar-with-dependencies.jar
-v imagefileatrootofzipfolder.odt
   #+end_src

[fn:1]

See https://repo1.maven.org/maven2/org/odftoolkit/odfvalidator/0.10.0/

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to