[solved] Why does the stroke in my .png file look pixelated?

Post questions on how to use or achieve an effect in Inkscape.
User avatar
pixabella
Posts: 53
Joined: Sat Oct 13, 2007 5:52 am
Contact:

[solved] Why does the stroke in my .png file look pixelated?

Postby pixabella » Sat Feb 09, 2008 8:01 pm

Hi everyone,

I created this cute little guy and I am having problems with clarity when I export him to a .png. I hope I don't bore you but below I have included the steps that might help in solving my little problem.

I drew a character and put a blue circle with a stroke(with 0.2 blur) and no fill. I positioned the circle below the character and copied a version of it and set it aside for later. I grouped the character and the first circle together. The duplicate circle I brought it to the top, aligned it with the other circle and grouped them together.

I made another duplicate of the last circle, made it a little larger, added a fill and stroke to white. I used this circle as the basis for my mask, because I drew the character complete.

In the image I have circled the section that is pixelated, no he doesn't have a halo. :) I thought by adding a blur to the blue stroke it might help reduce the pixelation, hmm nope!

Does anyone have any suggestions?
Image

DannyKing
Posts: 122
Joined: Sat Jan 26, 2008 2:58 am
Location: UK
Contact:

Re: Why does the stroke in my .png file look pixelated?

Postby DannyKing » Sun Feb 10, 2008 2:21 am

Actually I've noticed this too, which version of Inkscape are you using?

I've not tested this theory at all, but I think that the blur effect is more pixelated in the development (0.46) build than tha stable release (0.45) - again, I've not checked so just a thought!

I was in quite a rush when I noticed this, so I just smoothed it out in the GIMP (gimp.org) using the blur tool.

Anyone have a real answer?
Image

User avatar
pixabella
Posts: 53
Joined: Sat Oct 13, 2007 5:52 am
Contact:

Re: Why does the stroke in my .png file look pixelated?

Postby pixabella » Sun Feb 10, 2008 4:29 am

Thanks for replying.

I am running 09.01.08 dev vers for Mac Osx Leopard. Unfortunately I never used the mask tool in previous builds, so I am unsure if it is a problem with this version.

I tried the blur effect on the stroke to try and reduce the pixelation, but I haven't tried the clean up method in Gimp. Please let there be another solution because I would prefer not to blur my image if possible.

The clean up method maybe a good last resort solution, but I would prefer to use Inkscape and not the Gimp.

So fellow Inkscapers I need your help!

Simarilius
Posts: 626
Joined: Wed Jun 06, 2007 2:37 am

Re: Why does the stroke in my .png file look pixelated?

Postby Simarilius » Sun Feb 10, 2008 6:14 am

you could try exporting it larger than you want and resizing in the gimp or whatever.
Q tho, is it jagged in the viewport when your editing it?
If not then you could set the zoom 1:1 and do a screen capture...
not ideal I know, but it'd get you the image you need.

User avatar
pixabella
Posts: 53
Joined: Sat Oct 13, 2007 5:52 am
Contact:

Re: Why does the stroke in my .png file look pixelated?

Postby pixabella » Mon Feb 11, 2008 12:41 am

I enlarged the image in Inkscape and exported the .svg to a .png. I resized the image in Gimp like you suggested and it worked. Whilst this is a quick fix it would be nice to see this little problem ironed out. ;)

However I did encounter one slight problem, the colours of images were effected. It made the colours darker and it lost the look and feel I was after.

Can I calibrate the colours of Gimp to match up with Inkscape, if so how?

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Why does the stroke in my .png file look pixelated?

Postby microUgly » Thu Feb 21, 2008 3:47 pm

Wow! I think my fiancée would be impressed to see someone more anal about image quality than I am :) I say this only because I wouldn't have faulted it because whilst there is visible stepping, at least some anti-aliasing has been applied.

If it wasn't for the fact that it has been suggested that the stepping doesn't appear so obvious in the Inkscape window I would have suggested there was no real problem. Stepping will be more or less obvious in different situations which can be observed in your example image.

Has a bug been reported for this? It seems it's probably a simple difference in anti-aliasing threshold being used between the PNG export and the Inkscape window.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Why does the stroke in my .png file look pixelated?

Postby prkos » Thu Feb 21, 2008 10:34 pm

Does it have to do with gradient banding? I think I saw a bug on that, gradients in Inkscape are always banded into a 1000 or so strips if I remember correctly.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Why does the stroke in my .png file look pixelated?

Postby microUgly » Fri Feb 22, 2008 9:56 am

Gradient banding? If that's the issue where pixelation occurs between two colour stops when the stops are positioned very closely, then I would suspect that's a seperate issue.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Why does the stroke in my .png file look pixelated?

Postby prkos » Sat Feb 23, 2008 10:47 am

Id say its more pronounced when stops are far apart. Heres the bug https://bugs.launchpad.net/inkscape/+bug/180693
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

User avatar
pixabella
Posts: 53
Joined: Sat Oct 13, 2007 5:52 am
Contact:

Re: Why does the stroke in my .png file look pixelated?

Postby pixabella » Sun Mar 02, 2008 9:23 am

@microugly
I have been accused of being anal once or twice or a perfectionist. Hmm! I guess it's not a bad thing, especially for the Inkscape project. :)

I had another look at my image because you guys were talking about gradient banding, the green circle with the stroke is gradient free. I forgot to mention in my original post I had to apply a clipping path. Would applying a clipping path and or a mask cause pixelation?

Just thought I would add another spanner.


Return to “Help with using Inkscape”