scratch-vm icon indicating copy to clipboard operation
scratch-vm copied to clipboard

SVG image boundaries don't recognise line thickness in high quality pen mode

Open DroneBetter opened this issue 4 years ago • 7 comments

When a sprite is an SVG, the rectangular footprint rendered is determined by the outermost part of a shape's outline, not that of the line following it. This leads to the edges being cropped off, as seen on the bottom and right edges of pic related. This is circumvented by drawing a transparent rectangle around the actual desired boundary, not an ideal solution. image

DroneBetter avatar Aug 04 '21 23:08 DroneBetter

How does the costume look when not stamped (as in, just when used as a sprite costume)? I think this is just a Scratch bug

GarboMuffin avatar Aug 05 '21 01:08 GarboMuffin

It still renders with the SVG issues when not stamped.

poly2it avatar Nov 13 '21 18:11 poly2it

I know this is old, but If I understand this correctly, this is not Turbowarp's fault or anyone contributing to it, rather just a Scratch bug that I have seen even in the regular editor. It has always happened to me, and the only ones that can fix it are the Scratch team.

supervoidcoder avatar Jan 01 '23 01:01 supervoidcoder

I know this is old, but If I understand this correctly, this is not Turbowarp's fault or anyone contributing to it, rather just a Scratch bug that I have seen even in the regular editor. It has always happened to me, and the only ones that can fix it are the Scratch team.

Mods can definitely fix it.

CST1229 avatar Jan 01 '23 10:01 CST1229

I know this is old, but If I understand this correctly, this is not Turbowarp's fault or anyone contributing to it, rather just a Scratch bug that I have seen even in the regular editor. It has always happened to me, and the only ones that can fix it are the Scratch team.

Mods can definitely fix it.

Yeah, that's true, but it would only work for that mod, and you would have to go through the code of the Scratch Engine just to find a bug in it and change the process of rendering objects on screen as well. It would probably take too long, and the Scratch Team is the only one that can universally change it without the need of a mod.

supervoidcoder avatar Jan 02 '23 20:01 supervoidcoder

To be clear, as a mod we have full control over every line of code and could just fix it the same way the Scratch Team could. We already fix several Scratch bugs. (also, speculation by random people does not help anyone)

The reason we probably won't fix this anytime soon is that it's really the Scratch Team's responsibility to make SVGs work good, and fixing this could conceivably break a couple projects that indirectly rely on this.

GarboMuffin avatar Jan 02 '23 21:01 GarboMuffin

Exactly, that's kind of what I tried to say, I just meant that this is a bug in Scratch itself, so this shouldn't have been reported to the turbowarp issues as it is not the modder's fault. I think that you already said that if the bug is also in scratch, it shouldn't be said here.

supervoidcoder avatar Jan 02 '23 22:01 supervoidcoder