https://bugs.freedesktop.org/show_bug.cgi?id=46253

             Bug #: 46253
           Summary: [FORMATTING] Images inserted as reference are
                    distorted when cropped to an image section
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.5.0 Release
          Platform: x86 (IA32)
        OS/Version: Windows (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Writer
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created attachment 57238
  --> https://bugs.freedesktop.org/attachment.cgi?id=57238
The upper image should be cropped, but LibO just distorts it

Image cropping (german: Zuschneiden) does not work at all for images that are 
not included as image into the document, but just as reference to an image file.

To reproduce:
1. Open a new document
2. Insert a photo *as reference* into the page whose image resolution is not 
the screen resolution (e.g. is 300 dpi or larger). Now scale this image to a
reasonable size. (This step just makes it easier to observe the result.)
3. Open the image properties dialog, go to the "Cropping"(?) tab and remove 
maybe 40% of the image on the left side (It depends on original image size how 
many
cm this is.)

The preview still looks fine. Now close the dialog with "OK".
The image will now be incorrect, showing a wrong section of the photo or 
distorting the aspect ratio in some way.

In contrast, if you do the same on an image that has been *included* into the 
document, the cropping works as expected.

It might help fixing this bug if you realize that in the included image the 
image resolution is given as 4000dpi (which is true, it was scanned and then
resized) while a referenced image of the same photo shows the resolution to be  
96 dpi (=wrong). Now, in the included image you've got to remove, lets say, 0.1
cm from the left (because the image is so "small" due to the large resolution), 
and this works. In contrast, in the referenced image, you've got to remove 6 cm
in order to get the same result in the preview, and the image size in the 
document is actually reduced by the same (correct) amount as for the included 
image,
but the content of that image is not showing the correct section of the image 
any more. (Sometimes it shows too few, sometimes too much.)

Attached you find a screenshot illustrating this difference: The upper photo is 
only an image reference, and the image hasn't been cropped (only distorted)
although the image property dialog shows it should be. In contrast the included 
image below has been correctly cropped.


Important note:
This bug has been reported by me for OpenOffice 2.x already a few years ago, 
but has not yet been fixed or fixed completely. Essentially this bug makes it
impossible to use OOo/LibO to layout a larger book with many images/photos, 
because either you have to include all images (which makes OOo/LibO very slow on
saving and creates huge files) or alternatively you cannot possibly use the 
crop function.

Reproduced with LibO 3.5.0 on WinXP SP3

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to