[Libreoffice-bugs] [Bug 81593] Thumbnails of gallery are not in good resolution when add small svg file
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 21 08:08:51 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=81593
--- Comment #15 from sergio.callegari at gmail.com ---
The issue is actually not specific to svg files in any ways.
It also happens with drawings made with LibO itself which are saved to the
gallery, with emf files, with wmf files, with pdf files, in general with
anything that is rasterized to the gallery.
In fact, as indicated in bug 117330, the issue happens whenever the image being
pushed to the gallery is "small".
the problem is that the 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.
--
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/20180621/59831ce2/attachment.html>
More information about the Libreoffice-bugs
mailing list