[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libreoffice-bugs
Subject:    [Libreoffice-bugs] [Bug 121831] New: Low raster quality when saving SVG as PNG to DOC(X)
From:       bugzilla-daemon () bugs ! documentfoundation ! org
Date:       2018-11-30 19:29:14
Message-ID: bug-121831-18670 () http ! bugs ! documentfoundation ! org/
[Download RAW message or body]

--15436061540.3fCf.28107
Date: Fri, 30 Nov 2018 19:29:14 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.documentfoundation.org/
Auto-Submitted: auto-generated

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

            Bug ID: 121831
           Summary: Low raster quality when saving SVG as PNG to DOC(X)
           Product: LibreOffice
           Version: 5.0 all versions
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: graphics stack
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: tobias.wendorff@tu-dortmund.de

Description:
When saving a Writer document containing a SVG to DOCX, it get rasterized to
PNG due to the current limits of this format. The convertion to PNG is done
using 96 ppi only and doesn't care about the SVGs dimensions (f.e. when it got
resized in LibreOffice.

So, when loading a SVG with a dimension of 30 mm × 30 mm, it gets rendered to
PNG with 96 ppi and a size of 30 mm × 30 mm. When scaling the SVG to 120 mm ×
120 mm, it also gets rendered to 30 mm × 30 mm, but scaled to 120 mm
afterwards. In "Expert Options", you can select "PixelExportResolution", but it
is ignored.

Steps to Reproduce:
1. Download a reference SVG:
https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/
2. Insert it into a Write document
3. Save it to DOCX
4. Open in Microsoft Office or unpack ZIP and find the media directory

Actual Results:
Unsharp raster image, since the dimensions and pixel resolution is too low /
fixed at a default value, which might be too low in many cases.

Expected Results:
At least it's expected to render the SVG at the target dimensions, but it's
highly recommended to set a proper resolution for high quality
export/printing/viewing to DOCX.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
The problem occurs on all versions, which can read and display SVG files.
Ghostscript, imagemagick and pstoedit have been installed and are reachable via
path variable.

-- 
You are receiving this mail because:
You are the assignee for the bug.
--15436061540.3fCf.28107
Date: Fri, 30 Nov 2018 19:29:14 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.documentfoundation.org/
Auto-Submitted: auto-generated

<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Low raster quality when saving SVG as PNG to DOC(X)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=121831">121831</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Low raster quality when saving SVG as PNG to DOC(X)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.0 all versions
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>graphics stack
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs&#64;lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tobias.wendorff&#64;tu-dortmund.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
When saving a Writer document containing a SVG to DOCX, it get rasterized to
PNG due to the current limits of this format. The convertion to PNG is done
using 96 ppi only and doesn't care about the SVGs dimensions (f.e. when it got
resized in LibreOffice.

So, when loading a SVG with a dimension of 30 mm × 30 mm, it gets rendered to
PNG with 96 ppi and a size of 30 mm × 30 mm. When scaling the SVG to 120 mm ×
120 mm, it also gets rendered to 30 mm × 30 mm, but scaled to 120 mm
afterwards. In &quot;Expert Options&quot;, you can select \
&quot;PixelExportResolution&quot;, but it is ignored.

Steps to Reproduce:
1. Download a reference SVG:
<a href="https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/">https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/</a>
 2. Insert it into a Write document
3. Save it to DOCX
4. Open in Microsoft Office or unpack ZIP and find the media directory

Actual Results:
Unsharp raster image, since the dimensions and pixel resolution is too low /
fixed at a default value, which might be too low in many cases.

Expected Results:
At least it's expected to render the SVG at the target dimensions, but it's
highly recommended to set a proper resolution for high quality
export/printing/viewing to DOCX.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
The problem occurs on all versions, which can read and display SVG files.
Ghostscript, imagemagick and pstoedit have been installed and are reachable via
path variable.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>
--15436061540.3fCf.28107--


[Attachment #3 (text/plain)]

_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic