[Digikam-devel] [Bug 286127] Resize tool in digikam corrupt transparencies on png files

Marcel Wiesweg marcel.wiesweg at gmx.de
Sun Nov 27 20:24:13 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=286127





--- Comment #11 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-11-27 20:24:13 ---
Git commit 8b2e921abf7ed0a38a3ac5318c88e58e775a7068 by Marcel Wiesweg.
Committed on 27/11/2011 at 21:23.
Pushed by mwiesweg into branch 'master'.

Provide methods to remove an alpha channel from an image. Remove alpha channel
before saving to JPEG.

- hasTransparentPixels checks if, given there is an alpha channel,
  some pixels actually is transparent (alpha < 1.0)
- bitBlendImageOnColor allows to compose an image over a constant color
  This is equivalent to create a DImg, fill it with a color,
  blend the first image over the new one, and replace the first image with the
result.
- removeAlphaChannel blends the image on a color, usually, white, and removes
the alpha channel
- in updateMetadata:
  ensure that the previous embedded preview is always removed
  only add a new check that a preview is only added if the original image is
significantly
  larger than the intended preview size
  To be discussed and currently unchanged: handling of transparent pixels

CCBUG: 286127

M  +189  -25   libs/dimg/dimg.cpp
M  +32   -0    libs/dimg/dimg.h

http://commits.kde.org/digikam/8b2e921abf7ed0a38a3ac5318c88e58e775a7068

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list