Apache OpenOffice (AOO) Bugzilla – Issue 83929
WW8: Pictures collapse to 0-width when exporting into DOC format
Last modified: 2017-05-20 11:19:33 UTC
Pictures with a width of greater than 22.75 inches collapse when saving in DOC format. To reproduce: Open a new document in Writer. Insert two pictures, one with a width of 22.75 inches, the second with a width greater than 22.75 inches. Use the sizing handles to reduce the width of each picture to about half the document width. Set the anchoring "As Character". Save the document in Microsoft Word 97/2000/XP (.doc) format, then close and reopen the document. The 22.75 inch image is displayed correctly. The other picture collapses to the left and has to be resized again.
@billp: please attach a sample .odt document and contribute information concerning your OS and Platform.
Created attachment 49886 [details] Two images 22.75 inches and 23 inches
I have created an attachment Two Images.odt which has two images, both 3 inches wide by 1 inch high. The original size of the top image is 22.75 inches by 1 inch. The original size of the bottom image is 23 inches by 1 inch. When I save this document in DOC format then reopen it, the bottom image is reduced to a vertical line at the left of the page. When I open the DOC file in Word 2000, I get an error message that the image is too small or too large after resizing, and the bottom image itself is also just a vertical line at the left of the page.
I checked with "2.2.1 Multilingual German version WIN XP: [680m18(Build9161)]" and can confirm the problem. If you save "Two Images.odt" as WORD document "Two Images.doc", MS WORD Viewer and even OOo will show the second image as a vertical line (or even: not at all). The problem with these .jpg images only appears if they are anchored "as character". No collapse if they are anchored to paragraph.
MRU->HBRINKM: maybe this problem is related to issue 60335 or issue 75556 in a way. When exporting the attached doc and reopening, the width of the lower graphic is set to zero-size.
The original post: 'To reproduce: Open a new document in Writer. Insert two pictures, one with a width of 22.75 inches, the second with a width greater than 22.75 inches. Use the sizing handles to reduce the width of each picture to about half the document width.' Although I'm not working QA (yet), I'd like to suggest that this might not be useful information for others to reproduce the problem. Digital graphics know nothing of linear measures; graphic sizes are measured in data density relative to image resolution, usually expressed (still not quite accurately) as a number of pixels per inch. Let's say you're able to specify that an image will occupy an area that will print out at 22.75" wide and, to keep it simple, 22.75" tall. That image file at 60 ppi will be considerably smaller than an image file at 600 ppi that is set to print in the same area. The amount of data varies considerably and must be processed differently at the two resolutions. What I would need to know is what resolution and graphic format the pictures are in, whether they're in color (and if so, what color depth) and how large each file's size is. Are you using the same image file for both insertions? Are the images square or rectangular? That is, would an image that seems to be 23" wide and 0.5" tall exhibit the same behavior as whatever image you're using? In my daily work I convert user manuals from doc to odt (and vice versa) with gif images anchored as character, but I haven't run into this effect. I also work with small files, however, and standard letter page sizes. Maybe the page size has something to do with it too. As for images anchored as character, I recall there used to be a maximum font size above which Writer couldn't display the font. I'm pretty sure it was marked as resolved a version or two ago, and I can't find it in the issue tracker now, but I do remember it being a problem and I can't help wondering if an image treated as a character might be causing similar issues.
Please disregard my previous post. Word (as of at least Office 2003) cannot support page sizes larger than 22", so presumably it also cannot support images sized that large. I'm a bit surprised at that extra .75" it currently appears to allow. Perhaps some conversion is happening there, I'm not sure. When a user tries to save a Writer file or an object that's larger than Word can support, this should at least produce an error warning with a note that the user must change the document dimensions to no larger than 22". (I don't know the maximum allowed for international-standard, or metric, sizes.)
foxcole: I only have Word 2000 which also does not support page sizes wider that 22", but images larger than 22.75" are supported. Over the past two days, I've inserted many images larger then 22.75" in Word and had no problem. They always resized correctly after saving and reopening. The same is true for images larger than 22.75" in Writer when the ODT file format was used. This isn't a case of an object larger than Word can support.
Created attachment 50083 [details] Small example of image resize problem when exported to doc
There seems to be some consensus that this is related to image sizes greater that 22.75". I have been able to reproduce this problem with an image sizes that is about 5.5". See attachments ImaTest01.odf and ImaTest01.doc.
Created attachment 50084 [details] The resulting doc file: ImaTest.doc
mifi: I think I need to clarify my original post. The 22.75" is the original width of the image--not the displayed width after resizing. The original width can be found by right-clicking on the picture then clicking the Crop tab on the Picture dialog. The original width of the image in your document is 22.78".
Sorry, I should have also said that when you right-click on the picture, you have to click "Picture" on the context menu to display the Picture dialog.
@billp: I did understand what you meant, but thanks for clarifying anyway ;-) The picture I used is about 5.5 inches, original size and the problem is still present. I you have a look at the attachments I supplied and follow your receipe to determine the original image size, you will notice a size of about 5.5". m
@billp: Sorry. I sent the wrong examples. I am trying to find the right attachment... please ignore my last comment (for now)... m
*** Issue 98235 has been marked as a duplicate of this issue. ***
*** Issue 101801 has been marked as a duplicate of this issue. ***
*** Issue 102675 has been marked as a duplicate of this issue. ***
*** Issue 111448 has been marked as a duplicate of this issue. ***
Hello, any status update on this issue? This bug was created for OOo 2.3, however, in OOo 3.2 is still exists. There are already 4 duplicates of this issue, which implies that this bug is found quite a lot of times.
Reset assigne to the default "issues@openoffice.apache.org".