Bug 149943 - Pixelated PDF export and print for a rotated image
Summary: Pixelated PDF export and print for a rotated image
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All All
: medium normal
Assignee: Miklos Vajna
URL: https://ask.libreoffice.org/t/pixelat...
Whiteboard: target:7.5.0 target:7.4.1 target:7.3.6
Keywords: bibisected, bisected, regression
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2022-07-11 06:32 UTC by Mike Kaganski
Modified: 2022-08-08 14:00 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Same image rotated and unrotated (13.15 KB, application/vnd.oasis.opendocument.text)
2022-07-11 06:32 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2022-07-11 06:32:50 UTC
Created attachment 181221 [details]
Same image rotated and unrotated

Open the attachment (which has the same image, top rotated, bottom unrotated), and export to PDF (choose no downsampling and lossless compression of images in the export-to-PDF dialog).

The top image exports awfully, having 14 pixels high image in the PDF. The bottom (unrotated) image exports perfectly, creating barcode with sharp strips (no blurring/antialiasing).

The problem appeared in today's form since v.6.4; in vv. 6.1 - 6.3, the top image was exported much better, but there it was a bit blurry - so it had a bit worse quality than the bottom one. In 6.0, the top image was rotated incorrectly (so that the strips were not horizontal, but diagonal). In 5.0, the rotation ot the top image was lost completely.

Additional observed problem: it's impossible to move the top (rotated) image closer to the top.

Ref: https://ask.libreoffice.org/t/pixelated-images-in-print-export-to-pdf/79392/
Comment 1 Dieter 2022-07-27 06:15:23 UTC
I confirm it with

Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 2 raal 2022-07-27 15:33:08 UTC
This seems to have begun at the below commit.
Adding Cc: to Miklos Vajna ; Could you possibly take a look at this one?
Thanks
 f803b98a8382303ecdd0bc88a10ae6e14b674fd0 is the first bad commit
commit f803b98a8382303ecdd0bc88a10ae6e14b674fd0
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Tue Oct 8 21:27:20 2019 +0200

    source dd4a67084853a030bf4b9f1f85d728620e0604a5

https://git.libreoffice.org/core/+/dd4a67084853a030bf4b9f1f85d728620e0604a5
Comment 3 Commit Notification 2022-08-03 09:12:04 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/7c94d7267bc8b5f43185204ab4953c4b188214bf

tdf#149943 vcl: fix pixelated PDF export and print for a rotated image

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2022-08-07 09:25:02 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-7-4":

https://git.libreoffice.org/core/commit/95fea9f0453cbe776d711297e9775b3a049b12bd

tdf#149943 vcl: fix pixelated PDF export and print for a rotated image

It will be available in 7.4.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Commit Notification 2022-08-08 14:00:07 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-7-3":

https://git.libreoffice.org/core/commit/8a3548eb859553a930a6120105cd30b3cc0ffeb3

tdf#149943 vcl: fix pixelated PDF export and print for a rotated image

It will be available in 7.3.6.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.