<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 - Image is blurry/displaced/wrong size in a .pub/.odg document"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133254">133254</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Image is blurry/displaced/wrong size in a .pub/.odg document
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>7.0.0.0.alpha1+ Master
          </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>Keywords</th>
          <td>bibisected, bisected, regression
          </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@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>baron@caesar.elte.hu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>ilmari.lauhakangas@libreoffice.org, l.lunak@collabora.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>129062
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=161105" name="attach_161105" title="Sample ODG">attachment 161105</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=161105&action=edit" title="Sample ODG">[details]</a></span>
Sample ODG

This is a skia bug, thus it can be reproduced in Windows, or via the gen
backend in Linux. No issue when not using skia.

The attached ODG was created by saving <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=99486" name="attach_99486" title=".pub file for 4 page greeting card">attachment 99486</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=99486&action=edit" title=".pub file for 4 page greeting card">[details]</a></span> (an MS Publisher file)
from <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - PRINTING: Greeting Cards"
   href="show_bug.cgi?id=69080">bug 69080</a> as ODG. The format is irrelevant, but the PUB file requires bug
122660's fix to open correctly.

Open the sample, and check the image on the second page.

=> The image is blurry, and possibly incorrectly placed/sized (depending on the
zoom level).

This is a regression, even when using the skia backend, as it was fine ~2 weeks
ago, and exhibits both issues in LO 7.0.0.0.alpha1+
(7daab7859f3b5b4297c45ac1631c68387192a962).
It regressed in two steps, bibisected using repo bibisect-linux-64-6.5. Adding
CC: to Luboš Luňák.

1. Image is blurry.

<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=fc0bff85f3338cb4fe8f4d42421cb69801cb3abb">https://cgit.freedesktop.org/libreoffice/core/commit/?id=fc0bff85f3338cb4fe8f4d42421cb69801cb3abb</a>
author          Luboš Luňák <<a href="mailto:l.lunak@collabora.com">l.lunak@collabora.com</a>>     2020-05-13 13:08:00
+0200
committer       Luboš Luňák <<a href="mailto:l.lunak@collabora.com">l.lunak@collabora.com</a>>     2020-05-14 11:57:30
+0200

cache results of Skia's drawTransformedBitmap() (<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Very Slow scrolling or no scrolling at with Skia Raster or Vulkan very high resolution image (reasonable speed with OpenGL)"
   href="show_bug.cgi?id=132438">tdf#132438</a>)

2. Image isn't placed/sized correctly.

<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=1b5bd34d8430690b19fae0d0febfd810b9525ca2">https://cgit.freedesktop.org/libreoffice/core/commit/?id=1b5bd34d8430690b19fae0d0febfd810b9525ca2</a>
author          Luboš Luňák <<a href="mailto:l.lunak@collabora.com">l.lunak@collabora.com</a>>     2020-05-13 19:25:15
+0200
committer       Luboš Luňák <<a href="mailto:l.lunak@collabora.com">l.lunak@collabora.com</a>>     2020-05-14 11:57:49
+0200

cache Skia' drawAlphaBitmap() in raster mode (<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Impress works very slow with large sized GIF"
   href="show_bug.cgi?id=104878">tdf#104878</a>)</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Skia library bugs"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=129062">Bug 129062</a>] [META] Skia library bugs
              </li>
          </ul>
        </div>
        <br>

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

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>