Rasterization in Inkscape
Hello, habranarod!
In the article I tried to highlight several important points related to the features of vector graphics in general and Inkscape in particular.
It should be noted that in the pen and in the second I’ve just recently, so I don’t advise reading more rigorous specialists.
The reason for writing this article was served by several events: A sudden initiation from this part of me to this graphic editor, and reading of this article about the editor himself and this cry of a poor layout designer.
What to do with rasterization?
Rasterization, it is not difficult to guess, is the process of converting a vector image into a raster, and for each pixel in the raster image, it is necessary to uniquely determine the color. To do this, when rasterizing for different types of vector objects, different algorithms are used.
Since compulsory rasterization is required for output to the monitor, when using a vector editor, you should always take into account some features of this process.
Let's open Inkscape and try to draw the simplest figure - a rectangle with a white fill and a black outline of 1px wide, and at the same time choose a scale equal to 100%: The
picture turned out not quite the way we would like - the edges look too blurry.
This happened because Inkscape creates objects with offsets of + 0.5px and when rasterized, the line is “between” two pixels. The smoothing algorithm sets the transparency of the pixel in proportion to the area of a piece of the line that is present in it, so on a white background instead of one black we get two gray ones.
We will use the opportunity to manually set the coordinates and get:
Here, what is needed, but do you really have to correct the situation with your hands each time and guide grids are used?
The answer is quite obvious, you need to shift the "reference points" of the grid at -0,500px. Please note that for this it is better to use the arrow, and not manually enter the number, since for me, in the second case, Inkscape does not save the value.
The above is true when exporting to any raster format.
You can prepare site layouts successfully in vector packages. There is no need to talk about application interfaces.
If someone knows how to treat inkscape from this feature - let me know, thanks.
In the article I tried to highlight several important points related to the features of vector graphics in general and Inkscape in particular.
It should be noted that in the pen and in the second I’ve just recently, so I don’t advise reading more rigorous specialists.
The reason for writing this article was served by several events: A sudden initiation from this part of me to this graphic editor, and reading of this article about the editor himself and this cry of a poor layout designer.
What to do with rasterization?
And why do something with her, and what is it all about?
Rasterization, it is not difficult to guess, is the process of converting a vector image into a raster, and for each pixel in the raster image, it is necessary to uniquely determine the color. To do this, when rasterizing for different types of vector objects, different algorithms are used.
Since compulsory rasterization is required for output to the monitor, when using a vector editor, you should always take into account some features of this process.
Get to the point
Let's open Inkscape and try to draw the simplest figure - a rectangle with a white fill and a black outline of 1px wide, and at the same time choose a scale equal to 100%: The
picture turned out not quite the way we would like - the edges look too blurry.
This happened because Inkscape creates objects with offsets of + 0.5px and when rasterized, the line is “between” two pixels. The smoothing algorithm sets the transparency of the pixel in proportion to the area of a piece of the line that is present in it, so on a white background instead of one black we get two gray ones.
We will use the opportunity to manually set the coordinates and get:
Here, what is needed, but do you really have to correct the situation with your hands each time and guide grids are used?
The answer is quite obvious, you need to shift the "reference points" of the grid at -0,500px. Please note that for this it is better to use the arrow, and not manually enter the number, since for me, in the second case, Inkscape does not save the value.
The above is true when exporting to any raster format.
P.S
You can prepare site layouts successfully in vector packages. There is no need to talk about application interfaces.
If someone knows how to treat inkscape from this feature - let me know, thanks.