<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 - Images in gallery look poor when they are small"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=117330">117330</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Images in gallery look poor when they are small
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0.4.1 rc
          </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>minor
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>UI
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sergio.callegari@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
When a vector drawing is put in the gallery, recent versions of LibO (I think
since LibO 4.x or 5.x) create a bitmap to show in the gallery, that also
details if the object has a solid background or not.

Unfortunately, this preview bitmap is taken at a fixed resolution ignoring the
drawing size. This is not the best thing to do as it results in wasted
resources when the image is big and in a poor rendering in the gallery when the
image is small.

Consider the following example:

1) A 10 inch X 10 inch vector object (e.g., a whole drawing) is placed in the
gallery. Assuming that the preview bitmap is taken at 100dpi (I do not know the
exact resolution being used), a 1000x1000 pixel bitmap is used for the preview.
When the preview appears in the gallery, given that the object will likely be
offered a 0.5x0.5 inch space, the preview will have a quite redundant 2000 dpi
effective resolution.

2) A small vectory symbol 0.25 x 0.25 inches is placed in the gallery. Assuming
that the preview bitmap is taken at 100dpi (I do not know the exact resolution
being used), a 25x25 pixel bitmap is used for the preview. When the preview
appears in the gallery, given that the object will likely be offered a 0.5x0.5
inch space, the preview will have a poor 50 dpi effective resolution.

Imho, the preview bitmap in the gallery should be created with a fixed number
of pixels on the x and y axis (e.g. 256), so that it always shows well when the
gallery is opened.
means that when the bitmap is shown in gallery, being given a fixed size, it is
shown at different resolutions, 

Steps to Reproduce:
See description

Actual Results:  
See description

Expected Results:
See description


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: DrawingDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101
Firefox/59.0</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>