Issue 60335 - ww8: cropped image seems to lose width information on export
Summary: ww8: cropped image seems to lose width information on export
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 2.0.1
Hardware: PC Windows XP
: P3 Trivial with 3 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 98502 (view as issue list)
Depends on:
Blocks:
 
Reported: 2006-01-11 01:25 UTC by jkumph
Modified: 2017-05-20 11:25 UTC (History)
2 users (show)

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


Attachments
shorter sample file with graphic in question (1.28 MB, application/vnd.oasis.opendocument.text)
2006-01-11 11:28 UTC, michael.ruess
no flags Details
example image for reproducing bug (23.03 KB, image/png)
2009-07-29 16:41 UTC, Daniel Darabos
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jkumph 2006-01-11 01:25:30 UTC
I have two files.  One is an ODT file which works, and the other is the export
from OOo writer to Word 97 format.  On page 11, figure 2 looks normal, and on
page 12 figure 3 looks normal in the ODT file, but not in the DOC file.  Both
images are imported jpg's which have been scaled and cropped.  There are also a
few other images (figures 4 and 5) which also have problems in the DOC file.

Using OOo writer, if I select and format the images with problems in the DOC
file, I can see that the formatting information is all messed up.  However, if I
correct it and save it, the saved file is not fixed.

Using Word 2002 SP3, if I open the corrrupted DOC files, I get the error
dialogue box:

"The dimensions after cropping are too small or too large"

Unfortunately, I cannot even select the image to format it correctly in Word, so
I'm SOL when it comes to converting this file to WORD.

What I can't figure out is what's different about figures 2 and 3 in my files. 
Figure 1 is an unscaled uncropped image - so I see why it might work.  But
figures 2 and 3 are nearly identical.  I've played with a lot of settings and
can't seem to resolve this issue.

I'm looking for a workaround or obviously a fix.  Right now I can't export this
file to those who read DOC files and that's kinda a key feature of OOo Writer.

If I work on the file in ODT format, there's no problem.
Comment 1 jkumph 2006-01-11 01:29:06 UTC
Since I cannot upload the file due to filesize limits, I've placed a zip file
containing the two files on a server I have access to:

http://nootka.ocean.washington.edu/oes/fobs-manual.zip

Comment 2 michael.ruess 2006-01-11 11:28:30 UTC
Created attachment 33108 [details]
shorter sample file with graphic in question
Comment 3 michael.ruess 2006-01-11 11:34:33 UTC
MRU->FLR: take my shorter sample and export it to WW8 format. reopening this
will show a graphic of very low width. Opening it in Word 2003 will give
mentioned error message.
Comment 4 jkumph 2006-01-11 18:45:36 UTC
I'm not sure if this problem is related to cropping.  If I uncrop the image, the
problem still exists with the image in question.  Also shown in your sample
file, is an image which *is* cropped but doesn't have the problem.  I think the
problem is somehow related to the image - not cropping.

Comment 5 Mathias_Bauer 2006-08-30 14:55:49 UTC
assigned to hbrinkm
Comment 6 michael.ruess 2009-01-27 16:07:22 UTC
*** Issue 98502 has been marked as a duplicate of this issue. ***
Comment 7 Daniel Darabos 2009-07-29 16:41:27 UTC
Created attachment 63844 [details]
example image for reproducing bug
Comment 8 Daniel Darabos 2009-07-29 16:52:03 UTC
I have stumbled upon a simple way in OpenOffice.org 3.1 to reproduce this 
problem.

 1. Open a new text document.
 2. Insert formula.png. (This makes for an image that is about 300dpi, not an 
outrageous resolution.)
 3. Save to doc.
 4. Reload doc file. Image width is now 0.

It seems like a serious problem to me. Even if the cause is a limitation of the 
doc file format (which I do not think it is), perhaps OpenOffice.org could check 
if the image is above the critical width and give a warning or work around it.

The problem is not related at all to cropping, and I think only the pixel width  
(horizontal resolution) of the image matters, so it is possible that issue 83929 
and its duplicates are caused by the same problem as well.
Comment 9 Marcus 2017-05-20 11:24:19 UTC
Reset assigne to the default "issues@openoffice.apache.org".
Comment 10 Marcus 2017-05-20 11:25:49 UTC
Reset assigne to the default "issues@openoffice.apache.org".