This is my first post and I would like to ask a pressing question. My objective is to export vector graphics I created using Vectornator in the SVG format that contain compressed raster images imported from raster graphics apps (such as Procreate) as the textures of the vector shapes.
Once I exported the file in the SVG format, I ended up with XML code that can display the following texture raster correctly with the following mark-up:
I found the section in the file where the variables such as #ClipPath are defined. One line in it refers to the raster image using , which apparently contains the binary data of the png file, so evidently raster images cannot be convered into part of SVG.
Raster data, whether in a raster format or embedded in SVG, is still raster data.
You could change the image transformation matrix to scale the raster data, at the cost of loss of raster display quality.
Of course, the quality of traced vector shapes never exactly matches the raster image, because the raster image is specified on a pixel-by-pixel basis, which is not feasible for a vector representation.
Thanks for illustraing the points. The Auto Trace feature is quite good indeed.
The only other way I found I could render textured SVG created with Vectornator using a web browser is to incorporate XML’s SVG filters into the SVG data exported from the app. Then again, the filters seem very technical to use and there’s no telling that detailed textures can ever be reproduced using the markup…