Bug 105384 - svg images too small and misplaced within bounding box
Summary: svg images too small and misplaced within bounding box
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
5.2.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2017-01-17 11:33 UTC by Caolán McNamara
Modified: 2019-01-18 11:08 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
demo.svg (6.34 KB, image/svg+xml)
2017-01-17 11:40 UTC, Caolán McNamara
Details
screenshot LO 5.4 (43.25 KB, image/png)
2017-01-17 22:07 UTC, Regina Henschel
Details
screenshot LO 5.1 (55.03 KB, image/png)
2017-01-17 22:11 UTC, Regina Henschel
Details
document used for the screenshots (15.58 KB, application/vnd.sun.xml.impress)
2017-01-17 22:12 UTC, Regina Henschel
Details
screenshot from 6.3 (7.47 KB, image/png)
2019-01-18 11:08 UTC, Roman Kuznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caolán McNamara 2017-01-17 11:33:32 UTC
Description:
The attached svg is good in 5.1 but not in 5.2.

Steps to Reproduce:
1. file new impress
2. change slide bg to a non-white color
3. insert->image the attached file

Actual Results:  
g+ logo is way too small in the top right corner

Expected Results:
fills the bounding box like in 5.1


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
Comment 1 Caolán McNamara 2017-01-17 11:35:39 UTC
commit 5903235d57acb13d9d5286d23b443a01aeab9a3c
Author: Xisco Fauli <anistenis@gmail.com>
Date:   Fri Dec 16 14:52:18 2016 +0100

    tdf#104339 Partially revert d5649ae7b76278cb3155f951d6327157c7c92b65
    
    Change-Id: I5160c6efe7cf58351955d9d1d3066e3b33bdfe20
    Reviewed-on: https://gerrit.libreoffice.org/32082
    Tested-by: Jenkins <ci@libreoffice.org>
    Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>


Is this a duplicate problem to bug #97539
Comment 2 Caolán McNamara 2017-01-17 11:40:48 UTC
Created attachment 130492 [details]
demo.svg
Comment 3 Regina Henschel 2017-01-17 22:07:37 UTC
Created attachment 130508 [details]
screenshot LO 5.4

The version Version: 5.4.0.0.alpha0+
Build ID: 99eed82939999d9a9689788a4134dd05d5c20c5a
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2017-01-14_23:37:30
Locale: de-DE (de_DE); Calc: group
renders the embedded image. And this image is larger than the dimension given by the viewBox attribute. With its attribute overflow:visible it forces a large bounding box.
Comment 4 Regina Henschel 2017-01-17 22:11:00 UTC
Created attachment 130509 [details]
screenshot LO 5.1

The Version: 5.1.0.0.alpha1+
Build ID: fdafa5302df26df4f147b0d2efb6064389a1330c
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-08-22_23:42:26
Locale: de-DE (de_DE)
does not render the image element at all. Therefore the bounding box is not extended, but is equal to the size given by the viewBox attribute.
Comment 5 Regina Henschel 2017-01-17 22:12:52 UTC
Created attachment 130510 [details]
document used for the screenshots

And here the document, which I have used for the screenshots.
Comment 6 QA Administrators 2018-01-18 03:33:47 UTC Comment hidden (obsolete)
Comment 7 Roman Kuznetsov 2019-01-18 11:06:39 UTC
SVG looks as in LO 5.1 in 

Version: 6.3.0.0.alpha0+
Build ID: 6b4ea2d8ddd681fec98773d7e0bbec9657a1fc08
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded

Status-> WFM
Comment 8 Roman Kuznetsov 2019-01-18 11:08:13 UTC
Created attachment 148421 [details]
screenshot from 6.3