Bug 101824 - Rasterizing vector images in compress dialog dont take resized size into account
Summary: Rasterizing vector images in compress dialog dont take resized size into account
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Images Image-Compression-Dialog
  Show dependency treegraph
 
Reported: 2016-08-31 16:50 UTC by Yousuf Philips (jay) (retired)
Modified: 2025-11-23 13:39 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2016-08-31 16:50:34 UTC
Steps:
1) Open writer
2) Insert an arrow svg from the gallery
3) Resize it to a larger size
4) Right-click > Compress
5) Set it to png compression and 600 dpi
6) Rasterized image isnt crisp

Version: 5.3.0.0.alpha0+
Build ID: 139d3b3e8b157c1f365f888126269f0902acbaa2
CPU Threads: 2; OS Version: Linux 3.19; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-08-26_00:01:39
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 Buovjaga 2016-09-23 19:23:28 UTC
Repro.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha0+
Build ID: cd72269a6a2c85ae9dd4552aa4808ef4fd1f6c0e
CPU Threads: 8; OS Version: Linux 4.7; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on September 21st 2016

Arch Linux 64-bit, KDE Plasma 5
Version: 5.2.0.4
Build ID: 5.2.0-1
CPU Threads: 8; OS Version: Linux 4.6; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Comment 2 Aron Budea 2016-10-17 03:25:58 UTC
Looks like this function:
void CompressGraphicsDialog::Compress(SvStream& aStream)
http://opengrok.libreoffice.org/xref/core/svx/source/dialog/compressgraphicdialog.cxx#270

GetBitmapEx can be called with GraphicConversionParameters, which can include dimensions, but the different kinds of conversions have to be considered (vector->raster, raster->raster, increasing/decreasing dimensions), and it doesn't support interpolation for example.

Plus there are the other compress-related bugs, like bug 83734, bug 99265, bug 99286 that could interfere with this fix.
Comment 3 QA Administrators 2017-10-23 14:06:07 UTC Comment hidden (obsolete)
Comment 4 MM 2018-04-01 21:13:18 UTC
Confirmed on windows 7 x64 with Version: 6.0.3.2 (x64)
Build ID: 8f48d515416608e3a835360314dac7e47fd0b821
CPU threads: 3; OS: Windows 6.1; UI render: default
Comment 5 QA Administrators 2019-04-19 03:01:35 UTC Comment hidden (obsolete, spam)
Comment 6 QA Administrators 2021-04-19 03:39:13 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2023-04-20 03:31:06 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2025-04-20 03:14:56 UTC Comment hidden (obsolete)
Comment 9 Yousuf Philips (jay) (retired) 2025-11-23 13:39:00 UTC
Still present but had to insert an svg from a file rather than from the gallery in step 2.

Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 4; OS: Linux 6.11; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded