Bug 48709 - EDITING Writer: if reduce size of inserted picture, crops picture
Summary: EDITING Writer: if reduce size of inserted picture, crops picture
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.3 release
Hardware: x86 (IA32) Linux (All)
: lowest normal
Assignee: Not Assigned
URL:
Whiteboard: (target:4.2.5) (target:4.3.0)
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-14 17:52 UTC by Chris Peñalver
Modified: 2014-07-15 05:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Peñalver 2012-04-14 17:52:37 UTC
Downstream bug may be found at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/831785

1) lsb_release -rd
Description:	Ubuntu precise (development branch)
Release:	12.04

2) apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.5.2-2ubuntu1
  Candidate: 1:3.5.2-2ubuntu1
  Version table:
 *** 1:3.5.2-2ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen in LibreOffice Writer via the Terminal:

cd ~/Desktop && wget -c https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/831785/+attachment/2312919/+files/R12%20Close%20%20Build%20Capacity.odt -O inf.odt && lowriter -nologo inf.odt

on page 1 primary click and hold the bottom left of the image, bring it to the center, and the resize should preserve the image.

4) What happens instead is the left side of the image is cropped ~5%.
Comment 1 Walter Rudametkin 2012-06-15 01:48:55 UTC
Hi,

I'm seeing this bug in LibreOffice 3.5.4.2, has there been any progress? It appears to have been reported at Ubuntu on 2011-08-23

apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.5.4-3

In my case, the percentage of the image that is lost varies. The more you reduce the image size the more it is cropped. I thought at first that the effect was only a display issue, but converting to pdf produces a cropped image too.

Cropping occurs even at the original size, but to the best of my very short tests, it occurs only on the top, left and bottom parts of the image. The right size doesn't appear to crop. I tested png and svg images.

A small workaround I found is to crop (i.e., Format->Picture->Crop) the image at between -1 and -1/2 cm to recover the lost parts of the image.

Regards
Comment 2 Alexandr 2014-07-15 05:45:51 UTC
Hello.
I reproduce the bug with LibreOffice 3.5.4 from Debian Wheezy. I can not reproduce it with LibreOffice 4.2.5 from Debian Wheezy backports and 4.3.0.2. 
I do not know which patch solves the problem hence I set bugstatus to RESOLVED WORKSFORME. Feel free to reopen it if you can reproduce the issue with LibreOffice 4.2.5 or later.