Why are imported svg files and question about font style in svg file
Hello,
It is possible to import svg files in musescore.
But when saving the musescore file the imported svg files are rasterized.
Is there an option to prevent that automatic conversion?
Kind regards,
Johan
Comments
Can you prove that claim? Like with a sample score?
I just trued to reproduce and can't
In reply to Can you prove that claim?… by Jojo-Schmitz
What I do,
Create a new musescore file.
Import a svg file.
Save the musescore file.
Open the musescore file with 7zip
Open the pictures folder
There I find no more svg file but I think a rasterized file.
Kind regards,
Johan
In reply to What I do, Create a new… by Johan-v
I did the same and found the svg inside the mscz file's pictures folder, not a png or other raster format file
In reply to I did the same and found the… by Jojo-Schmitz
Hello,
It has to do with pasting svg from affinity versus importing in a vertical box.
When pasting the copied svg from affinity the svg is rasterized.
When imported in a vertical box the svg file is not rendered.
So I think the conversion is in the pasting.
Kind regards,
In reply to Hello, It has to do with… by Johan-v
No idea what affinity is, I used drag and drop of an SVG onto a measure, rest, note or into a frame and that worked. Basically I did as documented in https://musescore.org/en/handbook/3/images#add-image ;-)
In reply to Hello, It has to do with… by Johan-v
Unless the conversion is in the "copy" action in affinity instead..
In reply to Unless the conversion is in… by jeetee
Which is what I suspect to be the case
In reply to Which is what I suspect to… by Jojo-Schmitz
Affinity has an option to copy as svg.
That was what I was testing but paste does not work as I hoped.
Something different.
Could you please import this svg. (using edwin font)
Here all text is displayed on screen as italic.
When export to pdf the text is ok.
When export tot png the text is again all italic.
Any logic behind this?
Kind regards,
In reply to Affinity has an option to… by Johan-v
"Text normal" is italic in a score using that SVG (but normal in the SVG itself)
"Text Bold" is bold and italic in a score using that SVG (but only bold in the SVG itself)
In an exported PDF "Text normal" is normal and "Text Bold" is bold .
In reply to "Text normal" is italic in… by Jojo-Schmitz
Here also but why and why Is pdf export correct?
In reply to Here also but why and why I… by Johan-v
I've seen similar behavior happening with SVGs that keep text as text objects, where non-explicit properties take over the last set property in the editor.
Have two staff texts, one italic another one bold; then add the svg and you can change the SVG appearance by just selecting one of those staff texts, which does point to a bug somewhere.
Now here's the fun part; if you explicitly set those styling properties of the texts inside the SVG to be normal, then this doesn't happen. So the internal style parameters of the SVG take precedence over whatever MuseScore does when changing a staff text.
Of course this doesn't happen at all once you convert the text objects to paths instead (such as by using the image capture tool).
The really odd part is that I don't seem to be able to break it again in the attached scores for the already added SVGs; so it looks like "save and reload" can possibly be a workaround for you.
You can find the additional files I used for testing attached.
In reply to I've seen similar behavior… by jeetee
Hello jeetee,
What software do you use to clean svg files?
Thank you,
Johan
In reply to Hello jeetee, What software… by Johan-v
Notepad and calculator, it's just text ;-)
In reply to Notepad and calculator, it's… by jeetee
Jup just oldschool editing. I love it.
Kind regards, Johan
In reply to Hello, It has to do with… by Johan-v
Hi Johan
I use Affinity Designer (on the Mac) to export SVG files for museScore. The SVGs work fine, although the import-to-MuseScore process can prove awkward.
I've never used the copy/paste method you described. Next time I'm in Affinity I'll try that. The issue could indeed pertain to clipboard operation. Often the clipboard contains several formats of the object. Possibly on paste MuseScore only receives a rasterized version.
Scorster