PDF import exploits viewBox Bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
This is a follow-up to Bug #166885 (https:/
On importing a PDF containing an embedded bitmap, you get something like this:
<g
transform=
id="g2441">
<image
id="image2443"
xlink:
transform=
height="1"
width="1" />
</g>
Appart from the strange upside/down flip, the important thing about this is: the image is initially scaled to a height and width of 1, and only subsequently stretched again to its original aspect ratio. This only works correctly assuming an attribute
preserveAspectR
As Bug #166885 states correctly, this is not SVG-conformant (where preserveAspectR
For a life example of this behavior:
http:// upload. wikimedia. org/wikipedia/ de/archive/ 7/74/2008051513 0011!Obama08. svg - This file was produced as PDF import with Inkscape. (Source file and copyright issues are reported at http:// de.wikipedia. org/wiki/ Bild:Obama08. svg) Opening it with a SVG-enabled Browser like Firefox will show different results than Inkscape.
http:// upload. wikimedia. org/wikipedia/ de/7/74/ Obama08. svg - This file uses correct aspect ratios for the embedded PNGs.