Rendering artifacts moving image with preserveAspectRatio unset (another object present)
Migrated from: https://bugs.launchpad.net/inkscape/+bug/167863
Steps to reproduce:
- open Inkscape
- open sample file:
- select the image (gradient-like object on the right)
- move it around
The image is a colorbar of a scientific plot, which is a 1x256px image and stretched horizontally.
What happened?
- The image is stretched to fill half of its bounding box. (In Chome and Firefox, it's a 1px line).
- Only a 1 px wide area in the center is clickable.
- Moving it around leaves rendering artifacts.
- Moving it behind the square makes it wider than before.
What should have happened?
- The image is rendered similarly as in Chrome and Firefox.
- Colored areas of the drawing are clickable.
- No rendering artifacts.
- Width stays identical when moving it behind the square.
Additional observations:
- Deactivate the rendering cache and the artifacts disappear. The image still fills half of its bounding box and increases in width when moving behind the square.
- Delete the width property of the image, and everything works normally.
- Delete the square and everything works as expected. Create any other object to go back to the buggy rendering.
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (6b4d57f5, 2020-04-01)
- Operating System: Windows 10
- Operating System version: 10.0.18362
Migration info
Exists since 2006
replicated:
- bzr revision 10444
- Arch Linux 64-bit, KDE Plasma 5 Inkscape 0.92pre1 15054 (GTK3)
Question: shouldn't the image be scaled horizontally to fill its width
? Rendering bug in Firefox/Chrome as well?
Edited by Nathan Lee