https://bugs.freedesktop.org/show_bug.cgi?id=67312

          Priority: medium
            Bug ID: 67312
          Assignee: [email protected]
           Summary: Other: Insert picture luminance 0% (images/pictures
                    dark in MS Office 2013 Word) - compatibility
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: 4.0.4.2 release
         Component: Writer
           Product: LibreOffice

Problem description: 

If a libreoffice .odt including pictures is read in Office 2013 Word, all
images appear dark.

This problem gives an immediate and obvious compatibility failure between
LibreOffice and Word.

Looking at the content.xml a typical image is coded like this:

<style:graphic-properties fo:border="0.01042in none"
fo:background-color="transparent" style:wrap="parallel"
style:wrap-contour="false" fo:clip="rect(0in, 0in, 0in, 0in)"
style:horizontal-rel="paragraph" style:vertical-rel="paragraph"
style:horizontal-pos="center" style:vertical-pos="top" draw:luminance="0%"
draw:contrast="0%" draw:image-opacity="100%"/>

where the luminance and contrast are "0%".

With Word 2010 the images look OK.
With Word 2013 the images look very dark.

In ODF 1.1, "The attribute draw:luminance specifies a signed percentage value
that affects the output luminance of a bitmap or raster graphic".
So 0% (or 50%) might be considered mid-range for ODF 1.1.

In ODF 1.2, "Luminance is a data type zeroToHundredPercent",
so should be 50% to be mid-range.

This behaviour is present in 4.0 and 4.1.

Word 2013 may have a bug in that for ODF 1.1 it interprets 0% to mean dark for
a signed percentage and for ODF 1.2 it interprets 0% to mean dark for a 0-100
percentage.
This depends on what "normal/unchanged" is for a picture as a signed and
unsigned percentage.

Note that a Luminance of 50% would be interpreted by Word 2013 as 0% in its
scale of -100% to 100%).

The fix is to NOT write luminance and contrast to the .odt so no adjustment is
made by other wordprocessors and no mis-interpretation of 0% or 50% can be
made. Other wordprocessors will not adjust the brightness and will use a
sensible default of "no change").

Steps to reproduce:
1. Edit a new document in libreoffice writer
2. Insert a .png picture
3. Save as ODF 1.2 default .odt
4. Check inside the .odt and read the content.xml, search for luminance
5. Load the .odt file into MS Office 2013 Word
6. Image appears dark
7. Right-click [Format picture] [Picture Tab] [Picture Corrections]
8. "Brightness" is seen to be -50%
9. Change brightness to 0%
10. Image appears OK
11. Manually edit content.xml and change luminance to 50%
12. Image appears OK in LibreOffice and Word 2013

Current behavior:
Luminance for an included picture is set to 0% (in an ODF scale of 0% to 100%)
which seems a little low and which Word 2013 interprets as -50% in its scale of
-100% to 100%. If the luminance is manually edited to 50%, Word 2013 interprets
this a 0% and the pictures look OK.

Expected behavior:
Images inserted with default luminance should not be dark in Word 2013.
Operating System: Fedora
Version: 4.0.4.2 release

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to