importing an empty svg image renders as filled
Hello
I have read the doc and I can see svg doesn't support grading. but I was surprised that an empty shape was rendered as filled on my screen. Attached is the small shape I'm trying to use. I even tried to make the 'triangle' openned and yet MuseScore still fills it up black.
Any pointer?
Attachment | Size |
---|---|
Asset 10.svg | 301 bytes |
Comments
Maybe I didn't understand. Do you need an image as attached?
I used https://musescore.org/en/handbook/3/image-capture
In reply to Maybe I didn't understand… by Shoichi
Thanks for the answer. It is good to know it works in a frame. In my case, I need to insert it in the score, at the same place a crescendo would be. When I drag it on the measure, it imports but filled. See attached picture, this is the same one you used. It fills up...
In reply to Thanks for the answer. It is… by tremblap
I think the problem is the image format, if you have graphics software check if you have the "transparent" option.
Does the attachment below also become filled?
Select the image with one click and check from Inspector the stacking order.
In reply to I think the problem is the… by Shoichi
ok this works - what format did you use? is it still vectorial (like svg) or is it rendered? I have a feeling it is the latter since it seems to be a white background - and not just the 3 lines of the triangle. I reckon I'm just still used to vectorial graphic handling of my previous notation software (where I could stretch and adapt such lines that are quite important to my notation work)
The original shape I provided is not even closed, so transparency for filling shouldn't apply in svg if it stays a vector list, no?
In reply to ok this works - what format… by tremblap
*.png, I simply flipped the image with KolourPaint (standard on Linux) and used Inspector to adjust it
In reply to *.png, I simply flipped the… by Shoichi
ah so that is a no-go. It is a raster and I need to keep it vector to be able to scale without loss of resolution. It is a creative way around making lines that do not exist in the software. Is there a planned support of pdf or native (aka not rastered) svg?
In reply to *.png, I simply flipped the… by Shoichi
I reckon that in the working framed image above you used png too for it to stay empty?
In reply to I reckon that in the working… by tremblap
All png, mine, svg you can try.
See: https://musescore.org/en/handbook/3/images and https://musescore.org/en/handbook/3/image-capture
HTH
In reply to All png, mine, svg you can… by Shoichi
ok, back to my original question then :) it doesn't seem possible to import an empty shape in svg. I think this is a rendering bug as the shape appears empty even in the file loader of add->image of the frame contextual menu, as shown in this screen capture. We can also see the result import at the top left (filled black)
In reply to Maybe I didn't understand… by Shoichi
ok good news: it was a bug in v3 but as I was ready to make a real bug report, i saw the alpha of MS4 and it is solved! They render properly there. So the alpha just gained another tester :)
In reply to ok good news: it was a bug… by tremblap
In that case I assume it to be a Qt bug, in 5.9, solved in 5.15?
In reply to In that case I assume it to… by Jojo-Schmitz
Try this image to see if it might be what you want.
I made it in Paint and made the background invisible in PowerPoint. Down load the image and drag it into a vertical frame in MuseScore to test. Drag it where you want and resize.
Works on my system. No idea if the background will stay invisible on your system.
In reply to Try this image to see if it… by bobjp
It is a PNG, not an SVG. The forme doesn't have the problem, but gets blurry.
In reply to It is a PNG, not an SVG. The… by Jojo-Schmitz
OK. The OP is trying to insert an image. Why does it have to be SVG?
In reply to OK. The OP is trying to… by bobjp
In theory, SVG can produce a sharper image when scaling up larger than the original size and/or printing at high resolution. In practice, the difference isn't as big as it's sometimes made out to be, especially when actually printed.
In reply to OK. The OP is trying to… by bobjp
Because it scales to any size without getting blurry
In reply to Because it scales to any… by Jojo-Schmitz
indeed - until we can do arbitrary lines I will use this method to make a pattern and then stretch to match the gesture's length. and it will look nice (apart from the thickness that will be variable but hey, I'll see how I get on with MS4 which looks like an incredible update!)