Bug 276667 - Slide design in the attached document is not rendered properly.
Summary: Slide design in the attached document is not rendered properly.
Status: CONFIRMED
Alias: None
Product: calligrastage
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: T Zachmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-28 09:30 UTC by keerthi
Modified: 2011-08-17 10:49 UTC (History)
2 users (show)

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


Attachments
Testdata. (91.00 KB, application/vnd.ms-powerpoint)
2011-06-28 09:30 UTC, keerthi
Details
Screenshot in MSoffice2010. (14.16 KB, application/x-zip-compressed)
2011-06-28 09:32 UTC, keerthi
Details
Screenshot in calligra stage. (132.87 KB, image/x-png)
2011-06-28 09:33 UTC, keerthi
Details

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