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

rounded corners

Tags: None
(comma "," separated)
pixel
Registered Member
Posts
10
Karma
0

rounded corners

Fri Apr 15, 2011 8:29 am
Hi@all,

I'm an new krita user and I have problems when using krita. I inserted an image on a flat and would round out the corners. How can I do that?

with best
pixel
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: rounded corners

Fri Apr 15, 2011 8:42 am
Hi Pixel,

I'm sorry but that's not something Krita can easily help you with. Ideally we'd have a plugin like the drop shadow plugin (which seems broken :-() that helps make you round corners, but we don't have that at the moment.

An alternative could be to create a local transparency mask with a rectangle vector selection which is modified to have rounded corners. But that feature isn't yet implemented either...
slangkamp
KDE Developer
Posts
607
Karma
4

Re: rounded corners

Fri Apr 15, 2011 9:10 am
There is a way. You can put a rectangle shape with rounded corners on a layer below the image. Then you switch the layer with the image to use screen composite op.
User avatar
API-Beast
Registered Member
Posts
24
Karma
0
OS

Re: rounded corners

Fri Apr 15, 2011 9:14 am
Krita is primarily a painting tool, so an proper way would be to round the borders with an brush (as eraser).


Twitter: @API_Beast
User avatar
LukasT.dev
KDE Developer
Posts
209
Karma
1
OS

Re: rounded corners

Fri Apr 15, 2011 9:18 am
If filters would work on transparency mask, the you would create transparency mask and run gaussian filter on it, but filters currently does not work on the transparency mask.

Ok, I came up with more complicated but working solution
1. Open your image (it's on layer 1)
2. Create new layer and fill layer 2 with white color and run gaussian filter with radius 40
3. Select tool from toolbox "Select a contiguous area of colors"
4. In tool options play with the fuzziness a bit and select the white area in layer 2
5. Select layer 1
6. Select -> Invert Selection
7. Press Del to delete the selection
8. Tada rounded corner(s)

You have got idea :)

It's not perfect though. Seems like gaussian filter is broken a bit (makes only rounded corner bottom right)


Daylight is coming...
Krita developer | http://lukast.mediablog.sk/log
pixel
Registered Member
Posts
10
Karma
0

Re: rounded corners

Fri Apr 15, 2011 10:24 am
slangkamp wrote:There is a way. You can put a rectangle shape with rounded corners on a layer below the image. Then you switch the layer with the image to use screen composite op.


it sounds like what I'm looking for. I don't understand the last step "to use screen composite op." can you explain the step?

with best
pixel
slangkamp
KDE Developer
Posts
607
Karma
4

Re: rounded corners

Fri Apr 15, 2011 10:51 am
You can change it in the layerbox. Image
It controls how the layers are combined.
pixel
Registered Member
Posts
10
Karma
0

Re: rounded corners

Fri Apr 15, 2011 11:12 am
Ok, I have create a krita-file with tow layers. A layer with the image an a vektor-layer below the image-layer with a rectangle shape with rounded corners.

Image

Now I switch to the the layer with the image and set "screen". The result:

Image

what I'm doing wrong?
slangkamp
KDE Developer
Posts
607
Karma
4

Re: rounded corners

Fri Apr 15, 2011 11:24 am
Can you upload the file somewhere so that I can take a look?
pixel
Registered Member
Posts
10
Karma
0

Re: rounded corners

Fri Apr 15, 2011 11:40 am
slangkamp wrote:Can you upload the file somewhere so that I can take a look?


Here is ti:
http://www.dreampixel.de/bilder/Flyer.kra
User avatar
Animtim
Registered Member
Posts
259
Karma
0
OS

Re: rounded corners

Fri Apr 15, 2011 11:57 am
Hi pixel,
I think this is what you want:
HERE
(I had to modify the shape style: fill it with white and remove outline, then disabled alpha channel of the picture layer)

Last edited by Animtim on Fri Apr 15, 2011 12:16 pm, edited 1 time in total.
pixel
Registered Member
Posts
10
Karma
0

Re: rounded corners

Fri Apr 15, 2011 12:06 pm
ok, it works :) :)


Bookmarks



Who is online

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