Bug 236318

Summary: Gwenview produces white noise pictures when cropping big images (about 1900x1200)
Product: [Applications] gwenview Reporter: Wolfram <wolfram>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: djustice.kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Big png image inside gwenview
Broken image after cropping

Description Wolfram 2010-05-04 14:33:34 UTC
Version:           2.4.2 (using 4.4.2 (KDE 4.4.2), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.33-gentoo-r1-00

When I'm cropping any big png image (1900x1200 for example), gwenview makes white noise alike result picture.
Comment 1 Wolfram 2010-05-04 14:34:22 UTC
Created attachment 43232 [details]
Big png image inside gwenview
Comment 2 Wolfram 2010-05-04 14:35:51 UTC
Created attachment 43233 [details]
Broken image after cropping
Comment 3 Drake Justice 2010-05-05 20:34:07 UTC
cant reproduce :/

KUbuntu/9.10/KDE SC 4.4.3

even 2000x2000+ sized pngs crop correctly
Comment 4 Wolfram 2010-05-07 19:42:11 UTC
So, I've updated KDE to 4.4.3 and tried again.
Bug still remains.

But I've investigated one interesting detail: performing picture resize before cropping makes result picture correct. Even when I resize picture for one pixel, cropping gives good result.
Comment 5 Matthias Fuchs 2011-01-26 23:33:20 UTC
SVN commit 1217378 by mfuchs:

Cropping pictures that use a small palette (e.g. 256 entries) works now.
QImage::copy(QRect) also preserves the EXIF-Tag.
BUG:257590
BUG:236318
BUG:250473
CCBUG:203109

 M  +2 -7      cropimageoperation.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1217378
Comment 6 Matthias Fuchs 2011-01-26 23:37:00 UTC
SVN commit 1217379 by mfuchs:

Backport r1217378
Cropping pictures that use a small palette (e.g. 256 entries) works now.
QImage::copy(QRect) also preserves the EXIF-Tag.
CCBUG:257590
CCBUG:236318
CCBUG:250473
CCBUG:203109

 M  +2 -7      cropimageoperation.cpp  


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