Issue 104502 - 2-color indexed PNGs are rendered as black-and-white images
Summary: 2-color indexed PNGs are rendered as black-and-white images
Status: CLOSED DUPLICATE of issue 60481
Alias: None
Product: Writer
Classification: Application
Component: viewing (show other issues)
Version: DEV300m54
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Oliver-Rainer Wittmann
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 19:06 UTC by andrzeje_wit
Modified: 2013-08-07 14:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Document showing problem (7.74 KB, application/vnd.oasis.opendocument.text)
2009-08-25 19:10 UTC, andrzeje_wit
no flags Details
PNG used for tests (109 bytes, image/png)
2009-08-25 19:11 UTC, andrzeje_wit
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description andrzeje_wit 2009-08-25 19:06:04 UTC
To reproduce:
* Create new document in Writer
* Select zoom level "100%" for document view
* Select from menu: Insert -> Picture -> From File..
* Choose 2-color, indexed PNG (that is: PNG using palette with two entries)
Picture is displayed in black-and-white only.

Conditions under which problem occurs:
* Indexed PNG with exactly 2-entry palette (Problem was NOT observed in other
types of PNG, including more than 2-color indexed ones)
* 100% zoom
* No scaling applied to picture after inserting (with any scaling everything
works normal - this includes scaling caused by enabling borders)
* No transparency applied by "Transparency" control on "Picture" Toolbar (any
greater tha 0% fixes problem)
* No flipping applied
* No "Smooth", "Sharpen", "Remove noise", "Aging", "Mosaic" from "Graphic
filter" toolbar used. Using any of them makes things work as expected (Note:
other filters have no effect on problem).

Other observations:
* Black-and-white image is exported to PDF
Comment 1 andrzeje_wit 2009-08-25 19:10:46 UTC
Created attachment 64378 [details]
Document showing problem
Comment 2 andrzeje_wit 2009-08-25 19:11:42 UTC
Created attachment 64379 [details]
PNG used for tests
Comment 3 eric.savary 2009-08-25 19:59:14 UTC
Thank you very much for this detailed analysis!

@OD:
- happens throughout 2.4 -> current m54
- happens only in Writer
- setting SJ on CC
Comment 4 michael.ruess 2009-08-26 07:01:48 UTC
Same problem as issue 60481.

*** This issue has been marked as a duplicate of 60481 ***
Comment 5 michael.ruess 2009-08-26 07:07:45 UTC
Closing duplicate.