Summary: | One pixel transparent line shown after scaling. Was: Scaling images 75% creates "blocky pixelation" with all 3 scaling algorithms | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Kubuntiac <user581> |
Component: | Tools/Transform | Assignee: | Dmitry Kazakov <dimula73> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dimula73, enkithan, halla |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Original 600px wide image
scaling comparison Krita on left, Gimp right |
Description
Kubuntiac
2009-09-30 09:55:47 UTC
Created attachment 37258 [details]
Original 600px wide image
Comparison image was slightly too large. It's uploaded to: http://www.mediafire.com/imageview.php?quickkey=je4ftt0lovo&thumb=5 Just make sure that you *download* the image rather than just looking at it on Mediafire's site. Mediafire shows the image too small to see the problem. Thanks for the report. I can indeed see the artefacts you mention. Casper, can you look into this, please? In case mediafire makes downloading hard for you, I've got a copy of the big image locally. Created attachment 37542 [details]
scaling comparison
Created attachment 37544 [details]
Krita on left, Gimp right
I can't reproduce. Krita result looks almost identical to the Gimp one.
Could you check if you have done something special to trigger the bug?
Seems I have a related bug : - if I flatten my .kra image, scale it to 40% in bicubic mode, and save it to png, the result is a bit aliased, and there is 1 pixel offset at the top - if I flatten the image, save it to png, open the png, scale it at 40%, the result is correct, and as smooth as in gimp. My test files are here : http://enkithan.free.fr/web/koffice/bugs/test-scaling.tar.bz (beware, it's a 14 mB file !) Compare the forearm in "bicubic-sRGB-krita-bigpng.png" with "bicubic-sRGB-krita-flattened.png". bugsbane: Did you flatten the image before scaling ? or is your original file containing several layers ? Hmmm... I *do* remember creating duplicating the only layer at the start... I don't remember if I deleted it, or flattened later and I don't have the original .kra any more. Unfortunately I'm still having a problem of my builds not compiling, so I can't retest right at the moment. (Still trying to figure that one out) Sorry! Wierd. I reinstalled my OS (Kubuntu 9.10 AMD64 ). Now I can compile, but I no longer get the problem, even with the exact same images and procedure. I wonder if this was fixed by some recent update in the packages / Krita code? Enkithan, do you still get this problem with all your system packages updated and your Krita compiled from the latest code? I should add that I also have the 1px transparency you mention, except I have it on the right and bottom edges of the canvas. bugsbane: yes all my apps are up-to-date, and koffice trunk is from yesterday. I did more testing, and like CyrilleB suggested to me on IRC, the pixel line at the top is caused by layers bigger than the canvas. Saving to PNG crop the image to canvas size, so that explain why the bug isn't happening then. An interseting thing is that on my last test file, the aliasing/scaling itself is correct. So I think maybe my previous image is correctly scaled too, but pixels fall in the worst-case rendering scenario because of the shift. I'm wondering if we can then close this bug, or keep it open only regading the transparent line? comments please Bug has been renamed. I've just pushed the fix for the interpolation and border bugs mentioned there. |