[Libreoffice] [PATCH] Display resolution in PPI with the original size on Picture/Crop (in Writer)
Németh László
nemeth at numbertext.org
Fri Oct 28 05:57:49 PDT 2011
Fernand,
Thanks. LibreOffice applies a limit (paragraph or frame width) to the
loaded image (this doesn't modify the quality of the picture), and it
has a PDF option to resize all pictures (eg. 96 DPI for web/monitors,
300 DPI for printing). Could you specify your request? If I right
understand, it would be fine to add a new general "treat as ... ppi"
option for the loaded pictures, because this could simplify the image
resizing (eg. an UI equivalent of the following shell script: mkdir
output; for i in *.jpg; do convert -units PixelsPerInch -density 300
$i output/$i; done)? For pictures with high resolution (digital
photos) this would be not enough, regarding the first limitation (but
if you click on the Original size button, LibreOffice will set the
resolution/size specified in the image file). You are right, we need a
more comfortable picture handling in Writer, eg. it would be fine to
use the new visual cropping (Scissors icon) of Draw in Writer, too.
Best regards,
László
2011/10/28 Fernand Vanrie <sos at pmgroup.be>:
> László and all developers involved,
> Fine, it is a first step in better handling of images. But as I mentioded
> before, having the PPI out of the image file is a wrong concept. The
> needed/wanted PPI must been stored in the document. The image sizes must
> been calculated according to the pixels in the image and the PPI stored (as
> a printer intention) in the Document.
>
> Greetz
>
> Fernand
>
> Hi,
>
> This patch adds PPI resolution to the default image size data in the
> Picture dialog (only for bitmap images), see the attached screenshot.
>
> Explanation: LibreOffice supports explicite resolutions of JPEG/PNG
> picture formats to set default image size, but this important data is
> missing from the UI, so we cannot verify the picture quality.
>
> Best regards,
> László
>
> PS. There are some old bugs in the default image handling in
> LibreOffice, see the attached test file, but the most important
> picture format (JPEG with equal explicite x-y resolutions) works well
> (except the rounding error in the percent data, see 101% on the
> screenshot). This patch helps to handle these problems, too.
>
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
>
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
>
More information about the LibreOffice
mailing list