Bug 276667

Summary: Slide design in the attached document is not rendered properly.
Product: [Applications] calligrastage Reporter: keerthi <keerthi.reddyb>
Component: generalAssignee: T Zachmann <t.zachmann>
Status: CONFIRMED ---    
Severity: normal CC: lukast.dev, matus.uzak
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Testdata.
Screenshot in MSoffice2010.
Screenshot in calligra stage.

Description keerthi 2011-06-28 09:30:20 UTC
Created attachment 61401 [details]
Testdata.

Version: git checkout c7da761cd2cf245608e1498198a81cee6994f46e
        (Using KDE 4.6.3)                
     OS: Kubuntu 11.04

Test data is in pps format.
Open the same document in calligra Stage.

Expected outcome:
Slide design should be proper.

Actual outcome:
Slide design is not proper i.e, able to see some black lines.

Frequency:
Always
Comment 1 keerthi 2011-06-28 09:32:37 UTC
Created attachment 61402 [details]
Screenshot in MSoffice2010.
Comment 2 keerthi 2011-06-28 09:33:27 UTC
Created attachment 61403 [details]
Screenshot in calligra stage.
Comment 3 LukasT 2011-08-01 11:33:41 UTC
The problem is that the slide background is picture and we have to colour that picture correctly in the filter.
Comment 4 LukasT 2011-08-17 10:49:51 UTC
Proposed solution is similar to duotone effect in ooxml:
1. defineDrawingPageStyle has information about fillColor and fillBackColor
2. bg pattern is fetched very soon in PptToOdp::doConversion, so we have to fetch the stored image from KoStore and recolor it there with fillColor and fillBackColor
3. save it as new file back to KoStore and add it to manifest
4. create new style with new colored fill image and use it for current page style

The idea is drafted in this WIP patch which doesn't work yet, it still needs lot of issues to be resolved, don't commit it, just idea how it could work:
http://valdyas.org/~lukast/recolor_pattern.patch