#tdf51510: Change the DPI to get better resolution, but failed the unit test
Tomaž Vajngerl
quikee at gmail.com
Tue Aug 22 14:30:33 UTC 2023
Hi Fernand,
On Tue, Aug 22, 2023 at 3:15 PM sos <sos at pmg.be> wrote:
>
> Yes,
>
> but when using this settings you can avoid to have SVG's with a resolution who is not adapted to the print-intentsions off the docment.
> 254-300 Pixels par Inch for commercial printing
> 150 Pixels par Inch for Laser printing
> 96 Pixels par Inch for screen viewing only.
Well, SVG is vector graphic so it will be rendered in maximum quality
to the output device just like fonts and other vector based objects
like shapes in the document. So this is not a problem (in SVG case)
for printing and viewing. The issue that is discussed here is when we
convert the SVG vector graphic to a PNG bitmap, which is used in
document formats that don't support SVG natively. In those cases we
convert to a bitmap and need to decide on the resolution used.
> Do you mean also that the SVG's are not included in the "Graphic SIze Check.."?
I checked and they are, but I don't think they should've been (at
least not in the same way as bitmaps). However, as I talked in the
previous mail - to determine the size of the pixels of the SVG image
(which doesn't have a specific pixel size by it own), the SVG image is
rendered to a bitmap, and for that it uses the DPI resolution of the
default screen output device, and the size taken is the size of the
SVG (width and height). So the pixel size of a SVG does not make much
sense.
> grtz
>
> Fernand
Tomaž
More information about the LibreOffice
mailing list