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

Images lose quality after resizing in Krita

Tags: None
(comma "," separated)
fatemehdsb
Registered Member
Posts
9
Karma
0
When I try to resize an image that I have imported as a new layer with the tool option, the image becomes blurry and it loses quality in a really bad way. I have searched a lot and I know that I should choose"box" filter in tool option but actually there is no "box" filter in tool option. There are other filters like BELL, Nearest neighbor, Bicubic, ... but none of them preserves the quality of the image I resize. I was wondering if anyone can help me with that. :'( :'( :'(
Lynx3d
Registered Member
Posts
31
Karma
0
OS
You do realize that the other thread you posted in is over 3 years old?
And it even mentions that "box" is really "nearest neighbor", so krita renamed it in 2018 since a box filter is really something else.

But I have my doubts that this is what you really want. It gives very pixelated results since it only repeats or drops pixels.
Generally, you cannot resize raster images without side-effects, but without knowing what exactly you're trying, it's hard to recommend something.
larpon
Registered Member
Posts
4
Karma
0
Krita can do resizing and transformations without the source image or layer being reduced in quality (with a transform mask):
Image
Results of resizing or transforming raster images will always, as already mentioned, have side-effects. Use vector art to avoid loosing quality :)
User avatar
tymond
KDE Developer
Posts
240
Karma
5
Lynx3d - it's even funnier; it was a Box filter, but then it was renamed to Nearest Neighbour, and then I fixed it so it was really the Nearest Neighbour ;) It is much better for pixel art than Box anyway.

What is the size in pixels of the original image and what is the size in pixels (rough estimate) of the result image?Have you tried using Bicubic filter already?
fatemehdsb
Registered Member
Posts
9
Karma
0
Thank you for your answers. Actually I am an architect and I want to use Krita at the office for Architecture post-production, like adding humans, trees, etc to the pictures. When I drag a picture in the Krita, I need to change the size of the picture, (in this case, png of a human). I usually need to decrease their size and what happens is that the result is not good at all. Even with Nearest neighbour the result is not as I expected.
fatemehdsb
Registered Member
Posts
9
Karma
0
larpon wrote:Krita can do resizing and transformations without the source image or layer being reduced in quality (with a transform mask):
Image
Results of resizing or transforming raster images will always, as already mentioned, have side-effects. Use vector art to avoid loosing quality :)



Thanks for your answer. What should I do after chosing Transform mask. As I see it is not possible to change the size of a transform mask.

Last edited by fatemehdsb on Tue Dec 17, 2019 2:17 pm, edited 1 time in total.
fatemehdsb
Registered Member
Posts
9
Karma
0
Lynx3d wrote:You do realize that the other thread you posted in is over 3 years old?
And it even mentions that "box" is really "nearest neighbor", so krita renamed it in 2018 since a box filter is really something else.

But I have my doubts that this is what you really want. It gives very pixelated results since it only repeats or drops pixels.
Generally, you cannot resize raster images without side-effects, but without knowing what exactly you're trying, it's hard to recommend something.



Thank you for your answers. Actually I am an architect and I want to use Krita at the office for Architecture post-production, like adding humans, trees, etc to the pictures. When I drag a picture in the Krita, I need to change the size of the picture, (in this case, png of a human). I usually need to decrease their size and what happens is that the result is not good at all. Even with Nearest neighbour the result is not as I expected.
fatemehdsb
Registered Member
Posts
9
Karma
0
tymond wrote:Lynx3d - it's even funnier; it was a Box filter, but then it was renamed to Nearest Neighbour, and then I fixed it so it was really the Nearest Neighbour ;) It is much better for pixel art than Box anyway.

What is the size in pixels of the original image and what is the size in pixels (rough estimate) of the resulting image? Have you tried using Bicubic filter already?



Thank you for your answer. Actually, in our office we are looking for software to use instead of Photoshop and I am responsible to try different software and decide. I really like Krita but I am a bit worried regarding resizing in Krita. My concern is a general concern not only about an image. It happens a lot that we want to import images as a new layer and change their size and if it is going to destroy the quality I would be worried about it.
I have tried all filters but I can hardly say that any of them was better than the others.
User avatar
tymond
KDE Developer
Posts
240
Karma
5
Nearest Neighbour is for pixel art, not good for scaling in general.

Can you please say what is the size of the image before and after resizing? Also you need to make sure that your canvas is big enough so you don't get pixelation.

Can you please attach the screenshot of those bad results? (Please make a screenshot of your whole Krita window).

And yes, as Lynx said, especially if you need a lot of humans and trees etc., why don't you just take vector humans and trees? they will be of much higher quality after resizing (provided your canvas is big enough, of course. You can't get a good human on 5 pixels...).
fatemehdsb
Registered Member
Posts
9
Karma
0
tymond wrote:Nearest Neighbour is for pixel art, not good for scaling in general.

Can you please say what is the size of the image before and after resizing? Also you need to make sure that your canvas is big enough so you don't get pixelation.

Can you please attach the screenshot of those bad results? (Please make a screenshot of your whole Krita window).

And yes, as Lynx said, especially if you need a lot of humans and trees etc., why don't you just take vector humans and trees? they will be of much higher quality after resizing (provided your canvas is big enough, of course. You can't get a good human on 5 pixels...).



Sure! The size of the image before resizing is 1280* 729 px and after resizing it is 359 *205 px. The size of the canvas is 1030*685 px.
I just realized if I change the size from layer- resize layer, the result is better than changing from tool option. So it helped a little.

https://ibb.co/dgzqkT4
https://ibb.co/xjH3VFg

Last edited by fatemehdsb on Tue Dec 17, 2019 4:23 pm, edited 1 time in total.
fatemehdsb
Registered Member
Posts
9
Karma
0
tymond wrote:Nearest Neighbour is for pixel art, not good for scaling in general.

Can you please say what is the size of the image before and after resizing? Also you need to make sure that your canvas is big enough so you don't get pixelation.

Can you please attach the screenshot of those bad results? (Please make a screenshot of your whole Krita window).

And yes, as Lynx said, especially if you need a lot of humans and trees etc., why don't you just take vector humans and trees? they will be of much higher quality after resizing (provided your canvas is big enough, of course. You can't get a good human on 5 pixels...).


I was thinking to explain it a bit more about what I do with KRITA. Actually it is not painting at all. I just need to import pictures of humans, trees, objects in the software, resize them, and etc. I can't find info about how I can use vector art to do it and I will really appreciate any help from you.
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
The easiest way to make a screenshot available to view here is to store it on somewhere like imgur.com and then post the link here. There are other image storage and sharing sites but imgur is the one I usually use. Make sure that you save the screenshot as a .png file, not a .jpg file. You can also provide a link to your personal Dropbox (or whatever) file sharing service.

The internet seems to have lots of vector images of trees and people and a quick Google search with "free vector tree" or "free vector people" will show you those websites. The files are usually provided as free only for non-commercial use so you may want to bear that in mind.

For krita, you'll need .svg vector files. If you get .eps or other format files, you'll need to open them in Inkscape (or similar applcations) and Save/Export them in .svg format to enable you to Import them into krita. Even with a vector image, a person with a height of less than 100 pixels has a blocky outline.

In the past, when I've wanted lots of trees, I've used .png images (Google 'free png tree') because I find them easier to work with than vector images.
fatemehdsb
Registered Member
Posts
9
Karma
0
ahabgreybeard wrote:The easiest way to make a screenshot available to view here is to store it on somewhere like imgur.com and then post the link here. There are other image storage and sharing sites but imgur is the one I usually use. Make sure that you save the screenshot as a .png file, not a .jpg file. You can also provide a link to your personal Dropbox (or whatever) file sharing service.

The internet seems to have lots of vector images of trees and people and a quick Google search with "free vector tree" or "free vector people" will show you those websites. The files are usually provided as free only for non-commercial use so you may want to bear that in mind.

For krita, you'll need .svg vector files. If you get .eps or other format files, you'll need to open them in Inkscape (or similar applcations) and Save/Export them in .svg format to enable you to Import them into krita. Even with a vector image, a person with a height of less than 100 pixels has a blocky outline.

In the past, when I've wanted lots of trees, I've used .png images (Google 'free png tree') because I find them easier to work with than vector images.


Thank you! I got it!
larpon
Registered Member
Posts
4
Karma
0
fatemehdsb wrote:Thanks for your answer. What should I do after chosing Transform mask. As I see it is not possible to change the size of a transform mask.


You can use the "Transform Tool" (Ctrl+T) in combination with the "Transform Mask" layer:
Image


... and it's options:
Image


... to then transform, scale, rotate, etc. the layer the mask is attached to:
Image


This won't fix any side effects from scaling raster graphics no matter what algorithm is used - but it does allow you to transform the layer over and over again without loosing quality from previous transforms. It's called "non-destructive transforms" and is described in detail here: https://docs.krita.org/en/reference_manual/layers_and_masks/transformation_masks.html#transformation-masks

So when you add raster grapics/images/layers to your image and transform them, the rule(s) of thumb I usually go with is:
  • The base image and imported images should have a high enough resolution, if you intend to transform them.
  • Working with transforms on raster graphics in too low resolution will always suck - unless it's a special effect you're after.
  • Scaling things UP will always make things look worse. Always scale down if possible (higher resolution = better end results)
  • Use the above Transform Mask if you intend to do many tweaks to the transform, so the graphics won't loose quality over time

Hope it helps :)


Bookmarks



Who is online

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