Bug 67271

Summary: FILEOPEN: EPS image colors are interpreted wrongly
Product: LibreOffice Reporter: Luiz Angelo Daros de Luca <luizluca>
Component: UIAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTOURBUG    
Severity: normal CC: jbfaure
Priority: medium    
Version: 4.1.0.4 release   
Hardware: Other   
OS: Linux (All)   
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: pdf version of odt file
odt file with the image in both formats
image in png format
The EPS image.
Both images outside LibreOffice

Description Luiz Angelo Daros de Luca 2013-07-24 19:40:45 UTC
When a EPS image is inserted, the file colors are interpreted wrongly. Even pure red (FF0000) becomes something lighter (but not human visible) while pure green (00FF00) gets very different.

I generated the same image in PNG and EPS format. They seems to be correct in, both PNG and EPS, inside inkscape and gwenview. The difference in colors inside inkscape is not visible and probably because colors in EPS are represented by floats.

I'll attach the eps/png file, an odt and a pdf version of an text document with both formats inserted.

Steps to reproduce:
1. create a new text document
2. insert the EPS image
3. insert the PNG image

Current behavior:
4. Colors are visibly different

Expected behavior:
5. Besides some white space and font size, both images should look the same.

PS: EPS files does not work at all in Windows. I reported it in bug 67240              
Operating System: Linux (Other)
Version: 4.1.0.4 rc
Comment 1 Luiz Angelo Daros de Luca 2013-07-24 19:42:17 UTC
Created attachment 82954 [details]
pdf version of odt file
Comment 2 Luiz Angelo Daros de Luca 2013-07-24 19:42:43 UTC
Created attachment 82955 [details]
odt file with the image in both formats
Comment 3 Luiz Angelo Daros de Luca 2013-07-24 19:43:12 UTC
Created attachment 82956 [details]
image in png format
Comment 4 Luiz Angelo Daros de Luca 2013-07-24 19:43:54 UTC
Created attachment 82957 [details]
The EPS image.
Comment 5 Jean-Baptiste Faure 2013-12-13 16:33:54 UTC
Created attachment 90734 [details]
Both images outside LibreOffice

How do you know that the problem is in LibreOffice? If I open your PNG in Firefox and your EPS in Evince I see that the colors differ. See my screen copy which show both images on the same screen.

Best regards. JBF
Comment 6 Luiz Angelo Daros de Luca 2013-12-13 17:31:16 UTC
I was sure that the EPS colors were wrong because I read the file (it is a text script). I also tested it with inkscape. I workaround the problem converting all files to SVG, which does not have color problems.

Testing again the odt file, it seems to be fixed. What I learned from bug 67240 is that LO does not have a EPS reader, and uses system ghostscript for the job. I don't know if it was an LO update or the ghostscript update but in my ubuntu 13.10, all colors seems to be ok. Now, the previously attached odt file has no visual difference between the two images (EPS and PNG).

If you are curious what the problem looks like when I reported, check the attached PDF file. The colors are visually different.

I'll mark it as RESOLVED/NOTOURBUG as it is probably a GS bug.