Bug 79010 - Export of SVG image to PNG or JPEG is not anti-aliased in LO 4.3
Summary: Export of SVG image to PNG or JPEG is not anti-aliased in LO 4.3
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
4.3.0.0.alpha1
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-21 09:57 UTC by Tomaz Vajngerl
Modified: 2015-10-23 19:17 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
non AA doc. example (25.61 KB, application/vnd.oasis.opendocument.text)
2014-05-21 09:57 UTC, Tomaz Vajngerl
Details
Export of SVG in 4.2 (12.37 KB, image/png)
2014-05-21 09:58 UTC, Tomaz Vajngerl
Details
Export of SVG in 4.3 (10.01 KB, image/png)
2014-05-21 09:59 UTC, Tomaz Vajngerl
Details
screen clip of sample ODT open and zoomed to 579 pct (7.03 KB, image/png)
2014-05-25 02:17 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomaz Vajngerl 2014-05-21 09:57:31 UTC
Created attachment 99494 [details]
non AA doc. example

SVG is not anti-aliased in LO 4.3. Probably a new bug in drawinglayer.
Comment 1 Tomaz Vajngerl 2014-05-21 09:58:47 UTC
Created attachment 99495 [details]
Export of SVG in 4.2
Comment 2 Tomaz Vajngerl 2014-05-21 09:59:07 UTC
Created attachment 99496 [details]
Export of SVG in 4.3
Comment 3 V Stuart Foote 2014-05-25 02:17:19 UTC
Created attachment 99752 [details]
screen clip of sample ODT open and zoomed to 579 pct

@Tomaz, *,

On Windows 7 sp1, 32-bit
Version: 4.3.0.0.beta1
Build ID: 2e39c7e59c8fc8b16a54c3d981dceef27fb0c07f

SVG is being rendered as vector inside Writer, Draw or Impress.
Opening the ODF zip archive and removing the PNG preview from the sample document should convince one of that. 

Have attached a screen clip of the ODT open and magnified to 579 percent. Export to PDF retains vector data, and full resolution.

Opening the document and selecting the graphic object--from the Object context menu -> "Save Graphic" IS correctly applying anti-aliasing (PNG, JPEG, BMP)

However, I would agree that with Export to a raster format--default at 96 dpi--the PNG format (and JPEG) in 4.3.0beta1 does not have the same level, if any, anti-aliasing as the 4.2 export provided.

But at higher resolution--300 dpi or 600 dpi--the Exported raster is presentable.
Comment 4 QA Administrators 2015-07-18 17:43:56 UTC
** Please read this message in its entirety before responding **

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present on a currently supported version of LibreOffice (4.4.1 or later): https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3)

http://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword


Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa

Thank you for your help!

-- The LibreOffice QA Team This NEW Message was generated on: 2015-07-18
Comment 5 Buovjaga 2015-10-22 17:19:05 UTC
So what to do? Raise the default DPI?
Comment 6 V Stuart Foote 2015-10-22 17:41:21 UTC
On Windows 8.1 64-bit en-US with 
Version: 5.0.3.1 (x64)
Build ID: fd8cfc22f7f58033351fcb8a83b92acbadb0749e
Locale: en-US (en_US)

No issue with the display of the sample ODT, nor when export of SVG as selection or of full page.  Dialog for PNG export defaults to 96dpi, adjust upward to 300dpi.

No issues with quality or resolution of resulting PNG.

Resolving WFM
Comment 7 Tomaz Vajngerl 2015-10-23 19:17:10 UTC
There was a problem that AA wasn't enabled when rasterizing the SVG (or more precise - the drawinglayer Primitive2D shape) but this was resolved some time in the past as I can't reproduce it anymore.

This bug was just a reminder to me to look into this issue.. but forgot about it :)