Bug 211857 - Palapeli fails on images with transparency.
Summary: Palapeli fails on images with transparency.
Status: RESOLVED FIXED
Alias: None
Product: palapeli
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: 1.0
Assignee: Stefan Majewsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-26 00:00 UTC by Parker Coates
Modified: 2009-11-05 11:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of issue (300.64 KB, image/png)
2009-10-26 00:01 UTC, Parker Coates
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Parker Coates 2009-10-26 00:00:56 UTC
Version:           trunk (using Devel)
OS:                Linux
Installed from:    Compiled sources

I was playing around with Palapeli today and without really thinking
about it, I created a puzzle from an image containing
alphatransparency. Bad idea. See attached. Some pieces were completely
corrupted. Some picked up weird noise at the edges. Some were 100%
transparent and were impossible to find.

A straight forward solution would be to paint the image onto a solid
(white?) rectangle before slicing, but I'll let you worry about the
details.
Comment 1 Parker Coates 2009-10-26 00:01:43 UTC
Created attachment 37833 [details]
Screenshot of issue
Comment 2 Stefan Majewsky 2009-11-05 11:59:40 UTC
SVN commit 1045105 by majewsky:

Add flags to Pala::Slicer, and respect them in Pala::SlicerJob. There is initially only one flag, that controls whether the slicer can cope with 
transparency.
BUG: 211857


 M  +19 -0     libpala/slicer.cpp  
 M  +27 -7     libpala/slicer.h  
 M  +15 -0     libpala/slicerjob.cpp  
 M  +6 -0      libpala/slicerjob.h  
 M  +1 -1      src/creator/puzzlecreator.cpp  
 M  +1 -1      tools/libpala-puzzlebuilder.cpp  


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