Issue 83929 - WW8: Pictures collapse to 0-width when exporting into DOC format
Summary: WW8: Pictures collapse to 0-width when exporting into DOC format
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 2.3
Hardware: PC All
: P3 Trivial with 8 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
: 98235 101801 102675 111448 (view as issue list)
Depends on:
Blocks:
 
Reported: 2007-11-24 15:17 UTC by billp
Modified: 2017-05-20 11:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Two images 22.75 inches and 23 inches (11.06 KB, application/vnd.oasis.opendocument.text)
2007-11-25 23:56 UTC, billp
no flags Details
Small example of image resize problem when exported to doc (54.58 KB, application/vnd.oasis.opendocument.text)
2007-12-04 10:14 UTC, mifi
no flags Details
The resulting doc file: ImaTest.doc (183.00 KB, application/msword)
2007-12-04 10:17 UTC, mifi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description billp 2007-11-24 15:17:55 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.
Comment 1 Rainer Bielefeld 2007-11-25 12:35:05 UTC
@billp:
please attach a sample .odt document and contribute information concerning your
OS and Platform.
Comment 2 billp 2007-11-25 23:56:12 UTC
Created attachment 49886 [details]
Two images 22.75 inches and 23 inches
Comment 3 billp 2007-11-26 00:02:06 UTC
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.
Comment 4 Rainer Bielefeld 2007-11-26 04:59:15 UTC
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.
Comment 5 michael.ruess 2007-11-26 16:01:43 UTC
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.
Comment 6 foxcole 2007-11-26 21:19:06 UTC
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.
Comment 7 foxcole 2007-11-27 15:48:55 UTC
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.)
Comment 8 billp 2007-11-27 22:45:32 UTC
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.
Comment 9 mifi 2007-12-04 10:14:34 UTC
Created attachment 50083 [details]
Small example of image resize problem when exported to doc
Comment 10 mifi 2007-12-04 10:16:32 UTC
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.
Comment 11 mifi 2007-12-04 10:17:57 UTC
Created attachment 50084 [details]
The resulting doc file: ImaTest.doc
Comment 12 billp 2007-12-04 15:24:17 UTC
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".
 
Comment 13 billp 2007-12-04 15:50:14 UTC
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.
Comment 14 mifi 2007-12-04 15:59:39 UTC
@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
 
Comment 15 mifi 2007-12-04 16:03:22 UTC
@billp:

Sorry. I sent the wrong examples. I am trying to find the right attachment...
please ignore my last comment (for now)...

m
Comment 16 michael.ruess 2009-01-19 14:01:06 UTC
*** Issue 98235 has been marked as a duplicate of this issue. ***
Comment 17 michael.ruess 2009-05-14 15:29:52 UTC
*** Issue 101801 has been marked as a duplicate of this issue. ***
Comment 18 michael.ruess 2009-06-22 13:55:36 UTC
*** Issue 102675 has been marked as a duplicate of this issue. ***
Comment 19 michael.ruess 2010-05-07 10:23:39 UTC
*** Issue 111448 has been marked as a duplicate of this issue. ***
Comment 20 dariusdamalakas 2010-05-07 11:50:56 UTC
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.
Comment 21 Marcus 2017-05-20 11:19:33 UTC
Reset assigne to the default "issues@openoffice.apache.org".