How to create an SVG for Inkcut¶
There are many ways images are saved to a file. Inkcut can only load SVGs.
What is an SVG?
A type of image that consists out of lines, e.g. 'A line from (0,0) to (10,20)', instead out of pixels. Due to this, you can zoom in indefinitly on such an image and the lines will always be sharp.
SVG is an abbreviation of 'Scalable Vector Graphics':
- 'Scalable': one can zoom in/out infinitely
- 'Vector': more-or-less a line
- 'Graphics': it is something graphical
How does that look like?
Here we Inkcut displaying on the SVGs in folder:
One cannot simply upload a 'regular' image (such as PNG or JPG) to Inkcut: these must be converted to an SVG first.
What is an PNG?
A type of image that consists out of pixel values, e.g. '10 red pixels, then 5 white' pixels. Due to this, when you zoom in on such an image, you can see the pixels being square.
What is a JPG?
A type of image that consists out of wavelengths; this is hard to describe simply. When you zoom in on such an image, you can see the pixels being square.
Converting a 'regular' image (such as PNG or JPG) to SVG¶
One program that can do this is Inkscape.
This is how Inkscape looks like:
To import a 'regular' image (such as PNG or JPG), click 'File | Import'
Where is that?
You can find it here:
Select a file to import.
How does that look like?
Here is an example:
In the import settings, click OK
How does that look like?
This is how that look likes:
You have now imported the 'regular' image in Inkscape.
How does that look like?
This is how that look likes:
Now you can save the image as an SVG. Do so, by clicking 'File | Save as'.
Where is that?
You can find it here:
Give your SVG a name and save it.
How does that look like?
This is how that look likes:
What you don't know yet: this SVG cannot be loaded in Inkcut.
How does that look like in Inkcut?
Here is how this would look like in Inkcut:
As you can see: only white
Fixing an SVG¶
In Inkscape, click 'Path | Trace Bitmap'.
Where is that?
You can find it here:
Click on 'Apply'.
Where is that?
You can find it here:
The image looks the same, but is not.
How does it look like?
It looks like this:
However, you can save the image as SVG and load it into Inkcut successfully!
How does it look like in Inkcut?
It looks like this: