Apache OpenOffice (AOO) Bugzilla – Issue 118750
Pictures imported upside-down
Last modified: 2013-02-09 16:37:39 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.
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
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).
Created attachment 80213 [details] Screenshot comparing Word and Writer
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
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
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.
Created attachment 80218 [details] Screenshot from Word showing the picture property LO importer is ignoring
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.
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.
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.