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

how to fix edges in krita

Tags: None
(comma "," separated)
ahmadzoabi
Registered Member
Posts
2
Karma
0

how to fix edges in krita

Tue Jan 05, 2016 5:43 pm
hi
i have a problem in my first project in krita ,i have a lot of mistakes at the edges of the object that i drawd
can you tell me how to fix it or how to draw things like that without having mistakes at the end to fix
i want to fix the edges of this apple
Image
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: how to fix edges in krita

Tue Jan 05, 2016 7:51 pm
There are a number of ways, one is to use a hard eraser, just like with real life media, another is to make a selection and cut away the excess, the third is to make a layer below the apple, switch on alpha lock on the apple and fill in until only the right parts are shown, the fourth is to use a transparency mask -- and there are more ways!
ahmadzoabi
Registered Member
Posts
2
Karma
0

Re: how to fix edges in krita

Tue Jan 05, 2016 8:22 pm
thank you
the first tow ways i thinked about and they seem to me not good enough
but about the last tow ways can you explaine more please
and if you have an example can you show me ??
User avatar
Stargoat
Registered Member
Posts
6
Karma
0
OS

Re: how to fix edges in krita

Wed May 18, 2016 5:13 am
  • Create a vector layer to the shape you want the apple to be. It needn't be entirely within the apple's edges. You can do this by making a Bézier selection and converting that to a vector (shape) layer. It's useful to set the shape to have a semi-transparent green fill, say, but no outline. Edit the Bézier control points, perhaps converting them all to smooth points first.
  • Duplicate the (bad) apple layer and fatten it by selecting a brush in distortion-move mode. (The default mode for distortion is swirl, probably not what you want.) Use that to extend the shape of the copy of the apple to just beyond the vector shape outline.
  • Arrange the original bad apple above the fattened apple in the layer palette and merge the original onto the fattened copy. (If you are worried you might mess it up, make another copy before merging, remembering to hide the backup copy.)
  • Select the shape layer in the palette and choose the Select Opaque action. Invert the selection so that everything but the apple is selected, then cut. Deselect and hide or remove the vector layer to see your new apple.
User avatar
timotimo
Registered Member
Posts
72
Karma
1
OS

Re: how to fix edges in krita

Thu May 19, 2016 1:12 am
Here's another way to do it automated without having to do it by hand:

  • Right-click your layer and select "Split Alpha" → "Alpha into Mask"
  • Select the new layer, which is called "transparency mask"
  • Go to "Filter" → "Adjust" → "Brightness/Contrast Curve"
  • Make the curve go like __/ which is completely flat until 90% of the way to the right, then almost straight up to the top right
  • Right-click on the transparency layer and do "Split Alpha" → "Write as Alpha"

That will make the only slightly opaque parts disappear completely while all the fully opaque parts stay that way
User avatar
Stargoat
Registered Member
Posts
6
Karma
0
OS

Re: how to fix edges in krita

Fri May 20, 2016 10:38 am
timotimo wrote:Make the curve go like __/ which is completely flat until 90% of the way to the right, then almost straight up to the top right


Unfortunately that defeats the antialiasing. There is a neat hack described in the "Photoshop 4.0 Wow! Book" to fix that, though: It's used to clean up scanned bi-level images which are dirty, blurry or are horribly pixellated. You can use the same trick on untidy alpha channels or transparency masks:

  • Blur the greyscale layer (or your transparency mask).
  • Use Levels to stretch the contrast from a narrow range about the half-way point, or whatever point eliminates the dirt. Repeat from the first step, if you like.
  • Create a path (a vector object) by using the auto-trace function. You may have to twiddle the tolerance to choose an acceptable middle ground between loosely fitting the shape and following the staircasing of the 50% grey threshold.
  • Use that path to fill a new layer or channel's pixels according to the shape of that path, nicely antialiased.

The downside is that the trick does not work well with images featuring sharp corners. At least you can edit the path, making the edge-tidying process semi-automated.

Unfortunately in my version of Krita at least, the selection-to-vector command is not working at all and the selection-to-shape command produces a vector object that faithfully follows all the jaggies of the area defined as having non-zero pixel values, as if the threshold and tolerance were set at 1/255 and zero respectively. When Krita gains a fully working auto-trace function, the clean-up trick will work nicely.
Zombie
Registered Member
Posts
1
Karma
0

Re: how to fix edges in krita

Sun Oct 27, 2019 8:46 pm
When I have jagged edges I just:
- Duplicate layer
- Go to: Filter, Blur, Blur, 5px x 5px
- Put layer behind Main layer
- Ctrl + J many times to duplicate blurred layer
- Ctrl + e many times to merge all layers to become solid
- Now you have smooth edges.
( You can do less blur too, but your images looks a little far gone for an easy repair. >. < )


Bookmarks



Who is online

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