Trying to learn and playing around in Affinity Designer. Saved a file in svg format, which created an actual image.
The question is whether the svg file as an image can be used in the same way as a jpeg and still retain the virtues of an svg, or whether it is necessary to convert the image to code in order to benefit from the format.
Not sure by what you mean when you saw convert the image to code? SVGs are human readable (editable) code, where you can edit simple things like stroke colour and some sizing attributes etc.
SVGs are best used for simple drawings/icons and don’t require copies at multiple resolutions to look their best, compared to jogging etc.
The main challenge in working with SVGs is to control them or the container that they are in, to render the size you want to see on your design.
@pmjd Thanks for your response, but that’s not what my question was.
I create, say, a logo image in Affinity Design. I save it in svg format. It is saved as an image with a svg suffix.
My question is therefore whether I can use it in image form by adding it to an image bric and still retain the benefits of the svg format, or whether it is necessary to convert it to code and use the specific svg bric in order to retain the svg benefits.
I guess the obvious answer is to try, but if you add the svg to the asset manager, yes you can use it with an image bric without using code. I would suggest selecting the options for converting to curves and using hex colours when exporting from Affinity.
One thing I would say is that I had a problem using an svg in the nav bar a while ago. It would suddenly preview at an enormous size (overflowing the screen), on both blocs preview and browser.
Changed to png, no problems.
I had something similar, but on the main page. Pretty sure it was a bug in custom class ordering that was fixed. There is no reason to be concerned generally about using svg.