Bug 169736

Summary: scaling image adds extra transparent space
Product: [Applications] krita Reporter: Y <kde08>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: cberger, halla
Priority: NOR Keywords: triaged
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Y 2008-08-24 18:51:30 UTC
Version:           1.6.3 (using KDE 4.0.5)
Installed from:    Ubuntu Packages

Kubuntu 8.04.1, krita installed with apt-get, 64bit x86 box.

* I load a PNG in krita. it is 810x631px and has no transparency.
* Menu Image -> Change Image Size
* Scale is selected and Crop Layers on image resize is selected too.
* Constrain Proportions is selected
* I set 468 as the value for Width, and the parameters all seems to update properly
* Filter: Mitchell (default)
* OK

The resulting image is as expected 468px wide, but the last column of pixels is transparent. I would expect the actual image to fill all 468px and no transparency.
Comment 1 Cyrille Berger 2008-08-24 20:46:39 UTC
For the record this happen also in 2.0.
Comment 2 Dominik Tritscher 2008-10-26 18:12:13 UTC
This seems to be fixed in 2.0beta2
Comment 3 Halla Rempt 2008-10-26 18:55:01 UTC
No, this isn't fixed yet, I'm afraid. It's also sort of a hard problem, it seems -- I have seen discussions on the gimp mailing list about the same thing.
Comment 4 Camilla Boemann 2009-02-14 12:08:22 UTC
SVN commit 925835 by boemann:

Actually use correct sampling weights for scaling. This introduces some 
transparency along all edges.

Duplicate edge pixel as source of sampling, which fixes that transparency just 
introduced.

Also use correct width of dest image which was the main cause of the bug.

All in all it solves:

BUG:169736



 M  +26 -14    kis_transform_worker.cc  


WebSVN link: http://websvn.kde.org/?view=rev&revision=925835