Bug 39928 - VIEWING: pictures in particular .doc shown wrong, picture size correct, but contents shrunken and surrounded by white margin.
Summary: VIEWING: pictures in particular .doc shown wrong, picture size correct, but c...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.4.2 release
Hardware: All All
: medium normal
Assignee: Cédric Bosdonnat
URL:
Whiteboard: bibisected35 bibisected35older
Keywords: regression
: 39358 (view as bug list)
Depends on:
Blocks: mab3.4
  Show dependency treegraph
 
Reported: 2011-08-08 06:21 UTC by M8R-19jnla
Modified: 2013-11-24 22:16 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Rendering failure (20.50 KB, application/msword)
2011-08-08 06:25 UTC, M8R-19jnla
Details
Correct rendering (21.21 KB, application/msword)
2011-08-08 06:28 UTC, M8R-19jnla
Details
Screenshots, see Comment 3 (63.21 KB, application/pdf)
2011-08-08 23:59 UTC, Rainer Bielefeld Retired
Details
Embedded_GIF_created_by_LibreOffice3.3.3--rendered_by_LibreOffice3.4.2 (82.42 KB, image/png)
2011-08-09 07:12 UTC, M8R-19jnla
Details
Embedded_GIF_created_by_LibreOffice3.3.3--rendered_by_LibreOffice3.3.3 (95.23 KB, image/png)
2011-08-09 07:15 UTC, M8R-19jnla
Details
Archive with the sample text where pictures are rendered right in rtf but wrong in doc (907.51 KB, application/x-gzip)
2011-09-17 01:13 UTC, Aleksey
Details
Model with problematic logo (23.26 KB, application/vnd.oasis.opendocument.text-template)
2011-09-26 22:29 UTC, Dominique LEGER
Details
Peugeot.jpg (186.31 KB, image/jpeg)
2011-09-30 05:14 UTC, Dominique LEGER
Details
Multiple logos (2.13 MB, application/zip)
2011-10-02 07:00 UTC, Dominique LEGER
Details
Doc with a simple framed picture (29.50 KB, application/msword)
2012-01-21 00:24 UTC, Olivier Berten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description M8R-19jnla 2011-08-08 06:21:51 UTC
The GIF images are not rendered in the attached file Embedded_GIF_created_by_LibreOffice3_3_3.doc.  This is a regression because they rendered correctly in LibreOffice v3.3.3, which created the document.  The same file renders correctly in Jarte v4.4 (http://www.jarte.com/download.html) when Microsoft's Office File Converter Pack is installed.
Comment 1 M8R-19jnla 2011-08-08 06:25:30 UTC
Created attachment 50030 [details]
Rendering failure
Comment 2 M8R-19jnla 2011-08-08 06:28:56 UTC
Created attachment 50031 [details]
Correct rendering

The attached file Embedded_bitmap_created_by_Jarte.doc renders correctly in LibreOffice v3.4.2 and v3.3.3 and in Jarte v4.4.  It shows how the other attachment should render.
Comment 3 Rainer Bielefeld Retired 2011-08-08 23:32:40 UTC
My results with "LibreOffice 3.4.2  - WIN7  Home Premium (64bit) German UI [OOO340m1 (Build:203)]": I see small "AA" logo pictures in both documents, in "Embedded_GIF_created_by_LibreOffice3_3_3" they are shown smaller than in "Embedded_bitmap_created_by_Jarte", control points (after click) some mm outside the logo.

"Embedded_bitmap_created_by_Jarte" has filename extension ".doc", but it is a .RTF

Saving "Embedded_bitmap_created_by_Jarte.doc" with LibO 3.4.2 as "Embedded_bitmap_created_by_Jarte_NEW342.doc" (WORD97 XP), closing  and reopening it shows little AA logos perfectly in MS WORD VIEWER and LibO 3.3.3 Portable, but too small in LibO 3.4.2.

Saving "Embedded_bitmap_created_by_Jarte.doc" with LibO 3.3.3 Portable as "Embedded_bitmap_created_by_Jarte_333.doc" (WORD97 XP), closing  and reopening it shows little AA logos perfectly in MS WORD VIEWER and LibO 3.3.3 Portable, but too small in LibO 3.4.2.

So the problem seems to be that LibO 3.4.2 only shows logos correctly in .RTF, but not in .DOC? Although history of document creation is obscure, it seems to be a VIEWING bug, because MS WORD Viewer shows logos in perfect way.

I can't tell whether the logo really is a .GIF, when I save the documents as .odt, I find a .wmf in the zipped file system.

Sill a problem with Master "LibO-dev 3.4.5  – WIN7  Home Premium  (64bit) English UI 
[(Build ID:d337f79-a24c961-2865670-9752b71-7f8fd43
	2fdd60d-fd28b6a-fd7bf20-aa369cb-28da3fb
	6a9633a-931d089-ecd263f-c9b55e9-b31b807
	82ff335-599f7e9-bc6a545-1926fdf)]"

My Conclusion:
--------------
Gif pictures in particular .doc created from .rtf shown wrong, picture size correct, but contents shrunken and surrounded by white margin. See Attached Screenshots!

@reporter:
May I ask you to read  hints on <http://wiki.documentfoundation.org/BugReport> carefully?
Then please:

1. Attach original .GIF, try to confirm my Conclusion
2. If you (may be additionally) see other problems, please file a new bug report and 

- Write a meaningful Summary (what the hack is the failure?)
- Attach screenshots with comments (you can add information using LibO DRAW
  and then attach your screenshot with comments as PDF) if necessary
- Attach the source document (or is "Embedded_bitmap_created_by_Jarte.doc" the 
  source document?
- add information 
  -- Why did you attach those 2 documents?
  -- Did you want to report a FILEOPEN problem (file is correct, but shown
     wrongly) or FILESAVE problem (document damaged after save)
  -- what exactly is unexpected (you see nothing? Placeholder? too small, 
     too big? "GIF images are not rendered ..." is a too rare description.
  -- and why do you believe it's unexpected
  -- concerning your PC (especially: video card)
  -- concerning your OS (exact version / localization)
  -- concerning your LibO version and localization (UI language)
  –- Libo settings that might be related to your problems 
    (video hardware acceleration ...)
  -- how you launch LibO and how you opened the sample document
  –- If you can contribute an OOo Issue that might be useful
  -- everything else crossing your mind after you read a.m. URL
Can you please file Bug reports with status UNCONFIRMED if your are not absolutely sure that you contributed all required background information and that the problem will be reproducible with information you can provide? 

Thank you!

@Cédric:
Please feel free to reassign if it’s not your area or if provided information is not sufficient. Please set Status to ASSIGNED if you accept this Bug.
Comment 4 Rainer Bielefeld Retired 2011-08-08 23:59:49 UTC
Created attachment 50059 [details]
Screenshots, see Comment 3
Comment 5 M8R-19jnla 2011-08-09 07:12:53 UTC
Created attachment 50071 [details]
Embedded_GIF_created_by_LibreOffice3.3.3--rendered_by_LibreOffice3.4.2

This screen capture shows the rendering problem with shrunken GIF images.
Comment 6 M8R-19jnla 2011-08-09 07:15:54 UTC
Created attachment 50072 [details]
Embedded_GIF_created_by_LibreOffice3.3.3--rendered_by_LibreOffice3.3.3

Screen capture showing correct rendering.
Comment 7 Rainer Bielefeld Retired 2011-08-09 07:33:32 UTC
@M8R-19jnla@binkmail.com:
That's all known, documented, we do not need your screenshosts with completelyx misleading title. We need the original picture.
Comment 8 M8R-19jnla 2011-08-09 07:58:03 UTC
Thank you Rainer for your help.  I added some screen capture PNG images to clarify the problem.

I did not realize that the GIF image was being rendered by LibreOffice3.4.2 shrunken.  It was so small that I mistakenly thought it was a place holder icon.  Thanks again to Rainer for diagnosing the problem more exactly.

The attached file Embedded_GIF_created_by_LibreOffice3_3_3.doc was created by LibreOffice3.3.3 from a .doc file created by Microsoft's Office 2007 Compatibility Pack, not a .rtf file as Rainer guessed.  Therefore, I corrected the bug summary.

Note that Embedded_bitmap_created_by_Jarte.doc was created by Jarte from Embedded_GIF_created_by_LibreOffice3_3_3.doc.  I included Embedded_bitmap_created_by_Jarte.doc to as an example of what the GIF image should look like, and I did not realize it was in .rtf format.  Now that I attached screen captures for the rendering of Embedded_GIF_created_by_LibreOffice3_3_3.doc, you could ignore Embedded_bitmap_created_by_Jarte.doc.

The original GIF image can be found at https://www.aa.com/content/images/carrierLogos/AAL.gif

Today I tested printing of Embedded_GIF_created_by_LibreOffice3_3_3.doc.  Both LibreOffice versions printed just like they rendered on the screen, as seen by my screen capture PNGs.  Thus, it seems to be both a VIEWING and PRINTING bug.

This is the first bug that I reported to LibreOffice.  I am a professional software developer for embedded microcontroller code, but I am unfamiliar with LibreOffice development.  The best I know how to do is provide an example file and screen captures to reproduce the correct result and the bug.
Comment 9 Rainer Bielefeld Retired 2011-08-09 08:30:16 UTC
I'm afraid a very particular chain of circumstances causes that picture shrinking. Although I do not believe that it can bring game-changing new knowledge I would have liked to do ma own test with original .gif. Unfortunately currently it's completely impossible for me to create my own .rtf because of "Bug 39960 - Pictures lost when FILESAVE document as RTF".

So now we will have to wait for Cédric's results.

@M8R-19jnla@binkmail.com:
May be you can try to confirm my problem from Bug 39960?
Comment 10 M8R-19jnla 2011-08-19 14:54:38 UTC
The file Embedded_GIF_created_by_LibreOffice3_3_3.doc renders correctly with LibreOffice3.3.4.
Comment 11 M8R-19jnla 2011-09-02 09:37:55 UTC
LibreOffice v3.4.3 has the same behavior as LibreOffice v3.4.2.
Comment 12 Rainer Bielefeld Retired 2011-09-02 22:37:36 UTC
<http://wiki.documentfoundation.org/BugReport_Details#Version>
Comment 13 Aleksey 2011-09-17 01:13:41 UTC
Created attachment 51280 [details]
Archive with the sample text where pictures are rendered right in rtf but wrong in doc

I also have problems with pictures rendering in LO v. 3.4.2. I attached the archive which explains the problem. The sample_tex.tex file is the source text file. I've converted it into rtf by means of latex2rtf. The formulas were converted into png images. All png images are represented in the archive. After that I opened the sample_tex.rtf in LO and saved the file in doc. When I reopened sample_tex.doc file the png formulas are rendered wrong (small size).

OS: OpenSUSE 64 bit
LibreOffice is installed from: http://download.opensuse.org/repositories/LibreOffice:/Stable/openSUSE_11.4/
LO version: 3.4.2
Comment 14 Dominique LEGER 2011-09-25 05:44:14 UTC
Found bug 39358 : https://bugs.freedesktop.org/show_bug.cgi?id=39358


is a duplicate of this bug...
Comment 15 Rainer Bielefeld Retired 2011-09-25 07:52:43 UTC
*** Bug 39358 has been marked as a duplicate of this bug. ***
Comment 16 Dominique LEGER 2011-09-25 09:50:47 UTC
Thank you rainer!
Comment 17 Dominique LEGER 2011-09-25 10:15:49 UTC
I think nobody has really understood the gravity of this bug!!!
(not sure because english is not my natural language...)


This is is not only a rendering bug : when you save your modifications you save the bad images in place of the godod ones.

So, if you edit the document with LO 3.4.2/3.4.3 and save it, it will corrupt your images. Even opened with Word Viewer they stay corrupted.

Edit and save a document many times, and images will be shrunk more and more...

Now that LO 3.4.3 is tagged 'Safe for production use by most users and enterprises', I think it is a serious bug.



In production I have seen my documents corrupted (logos) ...


Thanks...
Comment 18 Rainer Bielefeld Retired 2011-09-25 10:51:57 UTC
OS due to Comment 13

@dleger@free.fr
Currently it seems only few particular pictures are affected?
My experience with "Lavado, planchado y secado.doc" from Bug 39358: I saved a version saved 3 times with LibO3.4.3 (so that the pictures were terribly distorted) after reopen as .odt. I checked the embedded pictures, they are ok, and when I closed / reopened .odt, the pictures looked normal. So it's not a real dataloss, but, of course, annoying.
Comment 19 Dominique LEGER 2011-09-26 22:29:51 UTC
Created attachment 51648 [details]
Model with problematic logo

my experience :

Open Charte.ott and save as .doc file. Open the .doc file and edit/save it 3 times. The logo is distorded. Save the file as .odt : the logo is better but not totally repaired!!! (it is smaller than original)

I think this bug is particularly vicious/insidious since you don't see it happening. So when you see the bug, you have already corrupted many documents.

I know it is better to work with .odt files. But often you receive a .doc file, and basic user will work with .doc (he won't think to convert).

TIA
Comment 20 Dominique LEGER 2011-09-30 05:14:52 UTC
Created attachment 51791 [details]
Peugeot.jpg

More investigations for this bug :


Fistly .jpg embedded images are affected too.


Secondly it only affect images where anchor is selected "as caracter"


Look at Peugeot.jpg (Anchor options)
Comment 21 Dominique LEGER 2011-10-02 07:00:07 UTC
Created attachment 51879 [details]
Multiple logos

Tested with many images found on the web :


.jpg .JPG .jpeg .png .gif .tif .bmp : all images format are affected

I confirm the only criteria for this bug is images where anchor is selected "as caracter"


Original (correct) is : logos.odt
Bad result is : logos.doc


Please note that logos.odt was simply saved as a .doc file. Result file is distinctly incorrect. If you work (edit/save) with .doc file images will be more distorded.
Comment 22 Ivan Timofeev (retired) 2011-11-09 06:55:29 UTC
It seems that Noel has fixed this bug on master:
http://cgit.freedesktop.org/libreoffice/core/commit/?id=991aa4fff785612bad7281f4948f5771bf8d215a
So, reassigned and marked as FIXED.
Comment 23 Noel Power 2011-11-09 07:03:50 UTC
(In reply to comment #22)
> It seems that Noel has fixed this bug on master:
> http://cgit.freedesktop.org/libreoffice/core/commit/?id=991aa4fff785612bad7281f4948f5771bf8d215a
> So, reassigned and marked as FIXED.

huh? have you tested that or just guessing, I'd say guessing as the description (from what I have read) is about something completely different. Don't mark things as fixed when not tested please
Comment 24 Noel Power 2011-11-09 07:11:53 UTC
(In reply to comment #23)
> (In reply to comment #22)
> > It seems that Noel has fixed this bug on master:
> > http://cgit.freedesktop.org/libreoffice/core/commit/?id=991aa4fff785612bad7281f4948f5771bf8d215a
> > So, reassigned and marked as FIXED.
> 
> huh? have you tested that or just guessing, I'd say guessing as the description
> (from what I have read) is about something completely different. Don't mark
> things as fixed when not tested please

hehe, I was a bit hasty, I pasted the commit but it appears that I didn't copy it properly and got a commit from my clipboard ( for a completely different fix )

the commit mentioned in comment #22 looks indeed like a likely candidate as a fix. Really would appreciate confirmation if indeed this does fix this
Comment 25 Ivan Timofeev (retired) 2011-11-09 07:30:34 UTC
(In reply to comment #24)
> the commit mentioned in comment #22 looks indeed like a likely candidate as a
> fix. Really would appreciate confirmation if indeed this does fix this

Surely I have tested before marking as fixed! :-) The import of images works fine with this commit, thanks for it, Noel.
Comment 26 Noel Power 2011-11-09 07:40:19 UTC
(In reply to comment #25)
> Surely I have tested before marking as fixed! :-) The import of images works
> fine with this commit, thanks for it, Noel.
thanks for re-testing, appreciate that ( sorry for the noise :-) )
Comment 27 Aleksey 2011-11-09 12:06:07 UTC
Gentlemen, please tell me, in what release of LO this bug is fixed? I mean, where must I download LO to work with doc-files in proper way?
Comment 28 Michael Meeks 2011-11-10 03:10:00 UTC
Re-marking FIXED then; Aleksey - I've pushed Noel's fix to the libreoffice-3-4 branch, it'll be in LibreOffice 3.4.5 as/when that ships (perhaps sooner rather than later - the schedule may be adjusted). The fix will also be in 3.5.
Comment 29 Björn Michaelsen 2011-12-23 13:23:59 UTC
Since all new unconfirmed bugs start in state UNCONFIRMED now and old unconfirmed bugs were moved to NEEDINFO with a explanatory comment, all bugs promoted above those bug states to NEW and later are automatically confirmed making the CONFIRMED whiteboard status redundant. Thus it will be removed.
Comment 30 Olivier Berten 2012-01-21 00:23:17 UTC
Well... it seems it's fixed only for the frameless pictures. When a picture has a border, the problem is still there 'see attachment).

By the way, a 1/2pt border looks much thicker on LO than on MSO but this might need another bug report.
Comment 31 Olivier Berten 2012-01-21 00:24:38 UTC
Created attachment 55893 [details]
Doc with a simple framed picture
Comment 32 Björn Michaelsen 2012-03-01 09:12:15 UTC
Regression does appear in oldest version of bibisect-3.5.tar.lzma and must be older.
Comment 33 M8R-19jnla 2012-03-26 11:31:23 UTC
I opened attachment 55893 [details] in LO 3.5.1 release on Win7 x64 SP1, and it looks correct to me (no shrunken content).  Is this bug fixed in LO 3.5.1 release or does it manifest on a different platform?
Comment 34 Rainer Bielefeld Retired 2012-03-27 10:50:29 UTC
(In reply to comment #31)

Indeed some observations are similar to original report, but I am pretty sure that this new one has different roots than the problem from original report, what was a regression, while Olivier's problem is inherited from OOo

I created a new "Bug 47954 - FILEOPEN: VIEWING of picture anchored as character with unexpected distance to border" for that problem and close this one again, because see evidence that the problem from Olivier's comment is different

@Olivier Berten
<https://wiki.documentfoundation.org/BugReport_Details#How_to_reopen_Bugs>
Comment 35 Rainer Bielefeld Retired 2012-03-27 10:51:10 UTC
Comment on attachment 55893 [details]
Doc with a simple framed picture

"Doc with a simple framed picture" has nothing to do with original report.