This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Vectors - Behaviour And Behaviour In Combination With Pixels

Tags: None
(comma "," separated)
User avatar
tandorf
Registered Member
Posts
58
Karma
0
Hello,

I´m new in working with vectors, and want to be sure in doing the right things (preparing of printing for spreadshirt...).

1. As far as I know vectors never have visible pixels - is that true? I did an easy vector-logo, but it has "stairway-diagonals", and reduced quality:
http://www.cartoonagen.de/Vektor.png
2. What about the resolution and dpi?
3. What about the combination of pixelgraphic-layers with vector-layers? What about different resolutions in the case?

:)
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
Vectors are a mathematical description of a shape/line, true. However, whatever you draw, or is represented on an image is limited to the resolution of the image you are working with. You are working with a 736 x 913 image and anything on that image is made of pixels at that resolution.

If you double the size of your initial canvas, to 1500 x 2000, you will have half the 'staircase error' when the vector line is projected and represented on the screen.

dpi is only of interest to people who want to print pictures and is a simple calculation involving image size in pixels and print size in inches/cm.

A vector layer is 'projected' onto the screen image and is subject to the resolution limits that you have set up for the image.
mvowada
Registered Member
Posts
322
Karma
1
Hi,

tandorf wrote:1. As far as I know vectors never have visible pixels - is that true? I did an easy vector-logo, but it has "stairway-diagonals", and reduced quality:
http://www.cartoonagen.de/Vektor.png

Being Krita a raster editor you will always see pixels, even if they are vector layers.
You can scale vectors without definition loss despite the pixels, provided the document has enough of them.
I would raise the size (A4) or the ppi for better results (300 ppi).

tandorf wrote:2. What about the resolution and dpi?

Resolution depends on the amount of pixels, the more the better.

tandorf wrote:3. What about the combination of pixelgraphic-layers with vector-layers? What about different resolutions in the case?

Feel free to use vector layers next to regular layers. However the result will always be a pixel based image. For this, I'd check beforehand that the size of the document (sizes / ppi) match the requirements for printing.
Mixed resolutions, I don't think it is possible.
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
"(preparing of printing for spreadshirt...)."

I read that as 'spreadsheet' and thought you were making an image to be pasted into a spreadsheet. Did you mean 'sweatshirt' or something else? If the image is to be printed onto some kind of material, what will be the physical size of the printed image?
User avatar
tandorf
Registered Member
Posts
58
Karma
0
Thanks again.

"spreadshirt.de / com" is very popular in germany. I want to do shirt-designs...
I created a sign (my fashion-label), in the resolution that has been seen on my first post. The plan is to scale it down to "very little", but it did not look well - not in the pixel-version, not in the "vector"-version.

I know about resolution and ppi. I meant "what happens if you combine layers with different resolutions?". Sorry - I´m not a native english-man:). Like you wrote - it would not be possible to mix layers of different resolutions. But - it is possible with vectors...:

Now I know that krita can NOT do vectors - only create the lines, but cannot save / display as a real vector.
I was right - there a no "pixels" on vector lines. Here is the thing of the first post, opened in inkscape:
http://www.cartoonagen.de/Inkscape.png

:)
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
Thank you for telling me about spreadshirt.com. I'm not surprised that this service exists but I was totally unaware of it.

(I've just done a quick test with a 1000 x 1000 pixel image uploaded to the website and after adjusting the size of the printed image on the sweatshirt it gave me warnings about printed image quality when the dpi went below about 130. This is more or less what I'd expect for printing onto cotton, etc. You'd want 200 dpi or higher.)

Could you do me a small favour and make that Inkscape file available to me via Dropbox or a file-paste site or similar service?
Could you also make the Krita file available in a similar way? (I promise that I won't start printing the design onto shirts and selling them.)

EDIT: Note to mvowada who posted immediately after I did:

The website accepts uploaded images in a variety of formats including .png and .svg. If you get past the large pictures of happy, smiling young people wearing printed sweatshirts and find the Create/Upload section then it's very well presented and easy to use.

Last edited by ahabgreybeard on Fri Jul 06, 2018 7:36 am, edited 1 time in total.
mvowada
Registered Member
Posts
322
Karma
1
tandorf wrote:The plan is to scale it down to "very little", but it did not look well - not in the pixel-version, not in the "vector"-version.

Have you tried by increasing the pixels resolution to 300 ppi (main menu > Scale Image to New Size)?
Do you need to deliver your final artwork as raster (png, tif, jpg) or vector (svg)?
If it's the latter, I'd use Inkscape which is all about vectors.
tandorf wrote:Now I know that krita can NOT do vectors - only create the lines, but cannot save / display as a real vector

It is possible by going to: main menu > Layer > Import/Export > Save vector layer as SVG...
tandorf wrote:I was right - there a no "pixels" on vector lines

Krita displays vectors through pixels but internally it sees them as lines and curves connecting 2D points. This is why one can scale vectors in Krita without experiencing quality loss.
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
I've just realised something:

Your image http://www.cartoonagen.de/Vektor.png shows you working with an image that is 736 x 913 pixels but you are zoomed in to 566% so it's hardly surprising that you can see the individual pixels of the image. This is a small proportion of the total image.

If you printed a 736 x 913 image onto a t-shirt to cover the front then you'd have a printed dpi of about 70 or less. For an image suitable for printing onto a t-shirt (about 10 inches by 12 inches) you'd need the image to be 2000 x 2400 to meet a 200 dpi printing resolution.

If you want a small 'logo' style of printed design then you can make it fill a suitably sized image and then scale and position that image on a t-shirt on the website. (The website really is very good for image scaling and positioning on the t-shirt and it does give a warning if the final printed dpi is less than 130.)

EDIT: I couldn't understand why the some of my post had been replaced by asterisks. Then I realised that I had made a small typo and had typed '****' instead of 't-shirt'. It's good to know that this is a safe place.
mvowada
Registered Member
Posts
322
Karma
1
ahabgreybeard wrote:EDIT: Note to mvowada who posted immediately after I did:

The website accepts uploaded images in a variety of formats including .png and .svg. If you get past the large pictures of happy, smiling young people wearing printed sweatshirts and find the Create/Upload section then it's very well presented and easy to use.


Hi ahabgreybeard, yes :)
I think here are the requirements for raster and vector graphics: https://help.spreadshirt.com/hc/en-us/articles/206775649-Vector-and-pixel-graphics-Introduction.
User avatar
tandorf
Registered Member
Posts
58
Karma
0
Sorry for my late response (got very low internet-connections...).

First of all I´m absolutely sure about the resolution-decisions:).

The original-Krita-File is 2208x2738, 300 ppi. Drawn with the line-tool as a „pixel-layer“. Later, as I heard about the new krita vector-features, I drew the same one (with the line-tool) on a vector-layer (same krita-document), exported / saved the layer as .svg-file, and re-opened it: 736x913, 100 ppi (not my choice...).

***
Thank you for telling me about spreadshirt.com. I'm not surprised that this service exists but I was totally unaware of it.
***
→ There are differnt ways to sell shirt-motives (for example „amazon.com“, shirtee, …).

Sorry, but I don´t want an instruction about uploading to spreadshirt (but thank you anyway). Short:

I just want to know if krita works with vectors or not? Are the tools „ready“ or still in testing period?

After re-opening in inkscape: There are some litte hang-overs, which weren´t visible in krita, and the exported text (fonts are vectors as well...) did look absolutely different.
If this is it, it is not possible to work with krita-vectors right now:
Here you see two horns; the right (little red mark...) one is a COPY of the left one. In krita it looked well - here you see the exported .svg opened in inkscape:
http://www.cartoonagen.de/horn.png

Could you do me a small favour and make that Inkscape file available to me via Dropbox or a file-paste site or similar service?

→ Still want it?

Krita displays vectors through pixels but internally it sees them as lines and curves connecting 2D points. This is why one can scale vectors in Krita without experiencing quality loss.

→ But you don´t exactly get what you see (after exporting...).

Your image http://www.cartoonagen.de/Vektor.png shows you working with an image that is 736 x 913 pixels but you are zoomed in to 566% so it's hardly surprising that you can see the individual pixels of the image. This is a small proportion of the total image.

→ As I´ve shown: The same thing opened in inkscape was zoomed very hight, too (but smooth).

Dudes.

xD
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
Three points occur to me:

1. You're using Inkscape to check the .svg output of Krita and finding problems/differences. You could try using another vector image application to get a 'different opinion' about correctness and accuracy. (But see number 2.)

2. Whatever the situation is, you have to use the tools that you are personally comfortable with and that give you results you are satisfied with.

3. This problem is far more complicated that I initially thought and it needs advice from someone with a greater level of knowledge and ability than me.

I'll watch the development of this thread with interest and hope that someone with detailed knowledge of krita vector drawing can give you definitive answers. Good luck.
mvowada
Registered Member
Posts
322
Karma
1
tandorf wrote:Are the tools „ready“ or still in testing period?[/b]

to my knowledge I think there are still some missing features / bugs due to the relatively recent implementation link 1 and link 2.
tandorf wrote:→ Still want it?

:)
tandorf wrote:→ As I´ve shown: The same thing opened in inkscape was zoomed very hight, too (but smooth).

vector graphics editors like Inkscape display shapes by connecting a bunch of 2D points; Krita does it through a grid made of pixels. They are different rendering systems.
As a result, shapes will always look "smooth" at close zoom within vector graphics editors like Inkscape. And they will always look pixelated in raster graphics editors like Krita. It doesn't affect quality: one can deliver rasters which are ready for high quality printing (provided they contain a decent amount of pixels).

Some vector and raster graphics editors push the limits and can deal with both worlds: Inkscape lets one apply raster filters to vectors by rasterizing the affected areas. Krita can deal with vectors and let one scaling shapes without quality loss.
mvowada
Registered Member
Posts
322
Karma
1
tandorf wrote:The original-Krita-File is 2208x2738, 300 ppi. Drawn with the line-tool as a „pixel-layer“. Later, as I heard about the new krita vector-features, I drew the same one (with the line-tool) on a vector-layer (same krita-document), exported / saved the layer as .svg-file, and re-opened it: 736x913, 100 ppi (not my choice...).

when re-opening the exported svg, Krita should ask at which resolution: by typing in 300 ppi it should correctly display the file.
User avatar
tandorf
Registered Member
Posts
58
Karma
0
ahabgreybeard wrote:Three points occur to me:

1. You're using Inkscape to check the .svg output of Krita and finding problems/differences. You could try using another vector image application to get a 'different opinion' about correctness and accuracy. (But see number 2.)

2. Whatever the situation is, you have to use the tools that you are personally comfortable with and that give you results you are satisfied with.

3. This problem is far more complicated that I initially thought and it needs advice from someone with a greater level of knowledge and ability than me.

I'll watch the development of this thread with interest and hope that someone with detailed knowledge of krita vector drawing can give you definitive answers. Good luck.


1. Yep. But have no other.
2. I don´t "need" to use vectors, but want to do spreadshirt a favour.
3. Thank you.

when re-opening the exported svg, Krita should ask at which resolution: by typing in 300 ppi it should correctly display the file.

Absolutely not. But I use krita 4.03 (upgrated not long ago, just seen that there is 4.10).

Some vector and raster graphics editors push the limits and can deal with both worlds: Inkscape lets one apply raster filters to vectors by rasterizing the affected areas. Krita can deal with vectors and let one scaling shapes without quality loss.

Aha, ok, not bad:).

I´ve re-"drawn" the horns with lesser line-points, and now it looks same in krita and inkscape.

Maybe there´s a universally problem about exactness and "corner-pixels" (that ones whith are not fully "opaced") by using the line-tool on a vector layer.

I'll let you know about further vector-adventures :).
User avatar
tandorf
Registered Member
Posts
58
Karma
0


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]