Update: my proposed fix does not solve the problem!
thanks a ton - also for the swiftness!
Unfortunately this breaks something else: Now transforms on images are no longer working. This is because DrawableImage::setBoundingBox() two lines below also computes a transform and sets it. Perhaps you do it the other way around and then combine the two transforms:
It’s three tree pixel wide images. The middle one is supposed to be stretched to fill the space between the outer ones.
“fun” bonus fact: Sketch does not correctly export the preserveAspectRatio attribute. As a result the exported svg does not display the same in chrome as in sketch.
OK, this commit fixes the image that you provided and seems to be doing the right thing with transforms etc. Do you have any other images that aren’t working correctly?