[librsvg regression] 2.10.8 SVG Import - error: SVG file does not specify a size!
GIMP version: 2.10.8
Operating System:OSX
Package: gimp-2.10.8-x86_64-2.dmg installer from gimp.org
Description of the bug
When opening an SVG file containing width and height attributes, the SVG import dialog warns 'SVG file does not specify a size!' and the image has a square aspect ratio.
When opening the same file in 2.10.6, the width, height and aspect ratio from the file are used as expected
SVG file (ref: https://commons.wikimedia.org/wiki/Category:SVG_example_images#/media/File:Example_image.svg)
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 300 200" width="600" height="400">
<title>example image</title>
<style type="text/css">
rect {fill: gray; stroke: none;}
text {fill: white; stroke: none;
font-family: Liberation Sans;
font-size: 32pt;
text-anchor: middle;}
</style>
<rect width="300" height="200" />
<text x="150" y="112" transform="rotate(-6 150,100)">
example image
</text>
</svg>
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- File->Open
- Select a non-square svg file
- Leave the defaults as detected and open the file
…
Expected result:
height/width/aspect ratio from file is detected (as per 2.10.6 and earlier)
Actual result:
height/width/aspect ratio not detected
Additional information
If you have a backtrace for a crash or a warning, paste it here.
Edited by Alex Samorukov