Bug 169736 - scaling image adds extra transparent space
Summary: scaling image adds extra transparent space
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Ubuntu Unspecified
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2008-08-24 18:51 UTC by Y
Modified: 2009-02-14 12:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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