SVG Import image X and Y positions are multiplied by 2
If you open this SVG in Chrome, FF, Inkscape, etc, the rectangle and the 120.png image should be stacked on top of each other. However, in Illustrator CC (As of 09-23-2020) the image appears at 240x240 for the X/Y position instead of the defined 120x120. Appears to be this way only with the image tag. If you were to do a transformation matrix, it fixes the problem but still it should be imported properly into Illustrator.
-
Jacob Hundley commented
Uploads appear to be broken on this site too (create a bug for that while you're at it).
An example SVG is as follows. Replacing the xlink:href tag with any valid PNG/JPG will produce the bug.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Creator: CorelDRAW --><svg
xmlns="http://www.w3.org/2000/svg"
xml:space="preserve"
width="6in"
height="8.5in"
viewBox="0 0 576 816"
style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd;"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<style type="text/css">
<![CDATA[]]>
</style>
</defs><rect x="228" y="100" width="120" height="120" style="fill:#0000FF" />
<image x="228" y="100" width="120" height="120" xlink:href="./120.png" /></svg>
-
Jacob Hundley commented
If you open this SVG in Chrome, FF, Inkscape, etc, the rectangle and the 120.png image should be stacked on top of each other. However, in Illustrator CC (As of 09-23-2020) the image appears at 240x240 for the X/Y position instead of the defined 120x120. Appears to be this way only with the image tag. If you were to do a transformation matrix, it fixes the problem but still it should be imported properly into Illustrator.
-
Jacob Hundley commented
If you open this SVG in Chrome, FF, Inkscape, etc, the rectangle and the 120.png image should be stacked on top of each other. However, in Illustrator CC (As of 09-23-2020) the image appears at 240x240 for the X/Y position instead of the defined 120x120. Appears to be this way only with the image tag. If you were to do a transformation matrix, it fixes the problem but still it should be imported properly into Illustrator.