Bug 87536 - FILEOPEN: DOCX - image color/graphics modes not correctly imported
Summary: FILEOPEN: DOCX - image color/graphics modes not correctly imported
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks:
 
Reported: 2014-12-20 21:03 UTC by Yousuf Philips (jay) (retired)
Modified: 2015-12-15 11:51 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample docx file with odf compatible color modes (55.31 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-12-20 21:03 UTC, Yousuf Philips (jay) (retired)
Details
MS Word 2007's recolor drop down button (156.09 KB, image/png)
2014-12-24 11:30 UTC, Yousuf Philips (jay) (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2014-12-20 21:03:14 UTC
Created attachment 111089 [details]
sample docx file with odf compatible color modes

Steps:
1) Open attached file
2) Click on each of the images in B2, B3 and B4
3) Notice none have set values in the graphics mode drop down list in the image toolbar
4) Also notice that the image in B3 has the watermark graphics mode already set to it and there isnt a means to turn it off.

Version: 4.5.0.0.alpha0+
Build ID: e570cd7a293ceee175949dcc9656cdf776ae3c37
TinderBox: Linux-rpm_deb-x86@45-TDF, Branch:master, Time: 2014-12-12_18:49:54

A number of non-destructive color modes from MSO are being applied to images on import and changing the resulting images in the document, as can be seen in B3.
Comment 1 Robinson Tryon (qubit) 2014-12-24 04:48:17 UTC
TESTING on Ubuntu 14.04 with LO 4.5.0.0.alpha0+
Build ID: 783ba49aa0cd068c7e3dacdd3c13e9c37cf52e22
Time: 2014-12-18_11:21:12

(In reply to Jay Philips from comment #0)
> Steps:
> 1) Open attached file
> 2) Click on each of the images in B2, B3 and B4

Columns aren't labeled, but I'll just pretend.

> 3) Notice none have set values in the graphics mode drop down list in the
> image toolbar

Do you mean the sidebar? And what values should be set?

> 4) Also notice that the image in B3 has the watermark graphics mode already
> set to it and there isnt a means to turn it off.

The label (in A3) says 'Washout'. Are you sure it's not supposed to look like this?

Please attach a screenshot of the graphics settings in Word for point #2 and a screenshot of the graphic for #3.

Status -> NEEDINFO
Comment 2 Yousuf Philips (jay) (retired) 2014-12-24 11:29:30 UTC
(In reply to Robinson Tryon (qubit) from comment #1)
> Columns aren't labeled, but I'll just pretend.

Check the statusbar, you'll see it labeled there. ;D

> 
> > 3) Notice none have set values in the graphics mode drop down list in the
> > image toolbar
> 
> Do you mean the sidebar? And what values should be set?

No i mean image toolbar. The toolbar which pops up at the bottom when you click on an image (View > Toolbars > Image). In that toolbar you'll find a drop down list box titled with the tooltip 'Graphics mode'. If you prefer to do it in the sidebar, then in the Graphic section of the properties tab, you'll see the same drop down list box under the label 'Color mode'. The image in B2 should have the grayscale color mode set, the image in B3 should have watermark set and the image in B4 should have black/white set.

> The label (in A3) says 'Washout'. Are you sure it's not supposed to look
> like this?

It is supposed to look like this, but the filter isnt supposed to overwrite the original image, which is what LO is doing. It should be setting the graphics/color mode to 'Watermark'. If you open up the docx file (its a zip file), you will find 1 image in the /word/media/ folder which is the untouched original image.

> Please attach a screenshot of the graphics settings in Word for point #2 and
> a screenshot of the graphic for #3.

Will attach a screenshot from MS Word for their color mode drop down.
Comment 3 Yousuf Philips (jay) (retired) 2014-12-24 11:30:42 UTC
Created attachment 111275 [details]
MS Word 2007's recolor drop down button
Comment 4 Robinson Tryon (qubit) 2014-12-24 16:53:49 UTC
TESTING on Ubuntu 14.04 w/the same 4.5.0.0.alpha0+ build as I used in my earlier comment.

(In reply to Jay Philips from comment #2)
> ... If you prefer to
> do it in the sidebar, then in the Graphic section of the properties tab,
> you'll see the same drop down list box under the label 'Color mode'. The
> image in B2 should have the grayscale color mode set, the image in B3 should
> have watermark set and the image in B4 should have black/white set.

For each image, the 'Graphics mode' dropdown is set to 'Default'.

> > The label (in A3) says 'Washout'. Are you sure it's not supposed to look
> > like this?
> 
> It is supposed to look like this, but the filter isnt supposed to overwrite
> the original image, which is what LO is doing. It should be setting the
> graphics/color mode to 'Watermark'.

Fair enough. When I change the 'Graphics mode' to 'Watermark' for this image, it turns completely white. That seems sub-optimal :-)

> > Please attach a screenshot of the graphics settings in Word for point #2 and
> > a screenshot of the graphic for #3.
> 
> Will attach a screenshot from MS Word for their color mode drop down.

Comparing attachment 111275 [details] to the rendering of the document in LO, there are a number of discrepancies.

Status -> NEW
Comment 5 Yousuf Philips (jay) (retired) 2014-12-25 09:16:57 UTC
In a similar way, if you set the color modes in LO and then export the file as a docx and open it in Word, the color modes wont be set (bug 87539) though the docx format has support for color modes.
Comment 6 Jorendc 2015-05-25 20:47:09 UTC
Fixed now.
Only watermark not 'recognized' but that's due the fact Libreoffice and Word has another defenition of watermark (contrast/brightness, ..).
Comment 7 Timur 2015-05-26 07:42:14 UTC
Looks like inherited, and fixed now in 5.0.
Comment 8 Robinson Tryon (qubit) 2015-12-15 11:51:43 UTC
Migrating Whiteboard tags to Keywords: (filter:docx)
[NinjaEdit]