https://bugs.documentfoundation.org/show_bug.cgi?id=166338

--- Comment #9 from Saburo <[email protected]> ---
Bisect whether the presentation image is jagged

Version: 7.3.6.0.0+ (x64) / LibreOffice Community
Build ID: 8a3548eb859553a930a6120105cd30b3cc0ffeb3

author  Miklos Vajna <[email protected]>    2022-08-03
commit  8a3548eb859553a930a6120105cd30b3cc0ffeb3
tdf#149943 vcl: fix pixelated PDF export and print for a rotated image
The bugdoc has a barcode which looks good in Writer, but it's quite
blurry in the PDF export result.

This is a problem since commit dd4a67084853a030bf4b9f1f85d728620e0604a5
(vcl: avoid downscale && upscale in DrawTransformedBitmapEx(),
2019-10-08), where the motivation was to not downscale a bitmap in case
it has a larger amount of pixels but a smaller logic size. This went
wrong here and resulted in a blurry bitmap for a not so small image.

Fix the problem by mostly reverting the above commit, because it's no
longer necessary: 68549e00d5e23aa22bc974a8151d93cd948444b3 (vcl,
BitmapEx transformed draw: special-case simple rotations, 2019-10-10)
already made sure that the rotation case doesn't use scaling from the
transform.

testTdf128630 has been adapted to pass again (after manually verifying
that the bugdoc export result is still OK), now the bad case there
simply produces a smaller bitmap.

(cherry picked from commit 7c94d7267bc8b5f43185204ab4953c4b188214bf)

Change-Id: Ib28881c129a0cf037a96eecd065e5cadede97051
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137743

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to