Issue 118750 - Pictures imported upside-down
Summary: Pictures imported upside-down
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: version58
Hardware: PC Windows 7
: P5 (lowest) Major (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: Nika
URL:
Keywords: needmoreinfo
Depends on:
Blocks:
 
Reported: 2012-01-10 21:08 UTC by David Earl
Modified: 2013-02-09 16:37 UTC (History)
3 users (show)

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


Attachments
Screenshot comparing Word and Writer (568.66 KB, image/png)
2013-02-06 11:57 UTC, David Earl
no flags Details
Screenshot from Word showing the picture property LO importer is ignoring (19.15 KB, image/png)
2013-02-07 10:57 UTC, David Earl
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description David Earl 2012-01-10 21:08:37 UTC
The picture in the attached Word .docx file is upside down when opened in OO (it is, of course, the right way up when opened in Word).

This is a cut down version of a much larger file. All the pictures in the original were upside down in OO.
Comment 1 Javier Lopez 2013-02-05 22:39:38 UTC
Hello 

I was checking your bug but I don't find the mistake in the picture.
Please I need more information for I can help you and explain me the steps that you did .

Javier Lopez
Comment 2 David Earl 2013-02-06 11:56:34 UTC
I just updated to 3.6.5.2 and the bug is still there. I'll attach a screenshot in a moment with Word on the left (correct) and LibreOffice on the right (wrong).

(How do I get my original attachment to this bug report back - fortunately I still had it, but it took a bit of finding as I reported this over a year ago - I don't see the attachment in the bug report).
Comment 3 David Earl 2013-02-06 11:57:49 UTC
Created attachment 80213 [details]
Screenshot comparing Word and Writer
Comment 4 David Earl 2013-02-06 12:03:48 UTC
Hmm. I tried to upload the original file, but it appears to be too big for you to manage. Presumably that's why the original has vanished too. You don't make it easy to report bugs, do you? It's less than half the size of a single typical digital photo, so as soon as photos come into play, you refuse the evidence.

Anyhow, I've now uploaded the original file to 
http://www.frankieandshadow.com/xref/lo-bug-118750.docx
Comment 5 Javier Lopez 2013-02-07 01:56:25 UTC
Thank you for reply.
I can see the document attached and I can see your bug but this bug only happens with your image. I did a modification with your document,
I copy and paste another image but the error does not affect the image, only to your image
I did can't attach the document so you can see but you try with others pictures
Similarly I will report ok

Javier Lopez
Comment 6 David Earl 2013-02-07 10:54:59 UTC
Yes, that's the whole point. There's something different about this Word document and the way in which the picture is embedded in it, that LO doesn't understand, but Word does.

What does it matter if pasting another image works? The point is *this* particular file produces a different result in Word and in LO. I agree that most cases are correct, but that's like most bugs, there's something specific different about this case.

I have looked at the file in more detail now (I didn't create it, by the way, I was just a recipient), and I can see what the problem is. The picture is indeed upside down natively, and it has been placed in the document with a scaling of 7% and a 180 degree rotation in the Word picture size dialog. Clearly LO is acting on the scale but not the rotation property in the Word doc.

I will attach a screen shot of the dialog in a moment, so you can see where the problem arises.

In short, the author told Word to turn the picture the other way up, and it did, but LO doesn't.
Comment 7 David Earl 2013-02-07 10:57:52 UTC
Created attachment 80218 [details]
Screenshot from Word showing the picture property LO importer is ignoring
Comment 8 Regina Henschel 2013-02-07 14:06:32 UTC
The picture has a 180° rotation in Microsoft Word. AOO cannot rotate pictures in Writer. But in the special case of 180° rotation it can be solved by setting a vertical and horizontal flipping.
Comment 9 David Earl 2013-02-07 14:25:48 UTC
I'm not sure what you mean by 'AOO' - do you mean Writer can't do rotations, or the importer can't do rotations? If the former, then that means surely the importer should be rotating the picture in response to the setting, not just ignoring it; if the latter, well, yes that's what I'm complaining about, that's the bug.

And when you say 'it can be solved by setting a vertical and horizontal flipping', who can solve it? Do you mean this is a quick and dirty hack in the importer to make this particular case work? Or that *I* should manually be changing the file before or after import to make it right? The former is hardly a fix: it leaves all the other angles still not working. And the latter isn't possible, because the conversion is being done unattended as part of a Word -> PDF conversion - I just abstracted it into an interactive workflow in order to demonstrate the bug.

I seem to be having a hard time here persuading you all that this really is a bug and that it needs fixing.
Comment 10 Regina Henschel 2013-02-07 15:02:37 UTC
AOO is "Apache OpenOffice"; we are here in its Bugzilla.

I mean that Writer can't do rotations. But it would be possible to make a "quick and dirty hack" in the import filter and set these flipping in case of 180° rotation.

You personally should rotate the picture in an image editing program and insert it in Word already without rotation. You would need to scan the docx documents before trying to convert them, to catch such upside-down pictures.

It is really a bug. You can see it at the status "confirmed". But that does not mean, that it will be fixed in a certain time.