[Libreoffice-bugs] [Bug 45884] New: LibreOffice does not do style:rel-width and style:rel-height properly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Feb 10 03:44:54 PST 2012


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

             Bug #: 45884
           Summary: LibreOffice does not do style:rel-width and
                    style:rel-height properly
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.5.0 RC3
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
        AssignedTo: libreoffice-bugs at lists.freedesktop.org
        ReportedBy: dag at wieers.com


The current implementation in odt.conf for cover-images adds: 

    style:rel-width="100%" style:rel-height="scale".

For an image with the dimensions 2097x287, this should show the image in LibreOffice with a proportional width and height. However when opened in LibreOffice
the width is indeed 100%, but the height seems to be the same as the width. So scale seems to be implementing "height" instead. If you look in the
Picture-properties in LibreOffice you can see the following values:

    (x) Keep scale
    ( ) Keep image size

    -- Scale --------------
    Width: 96%
    Height: 2%

    -- Image Size -------
    Width: 170,00mm
    Height: 0,41mm

Modifying this Scale to Width: 100% and Height: 100% does the right thing.

If you save the file again, LibreOffice adds it this to the draw:frame:

    svg:width="177.69mm" svg:height="24.31mm"

Without this working properly, LibreOffice only understands exact dimensions. Which means as producer (ODF backend) you need to get image dimensions and apply
that to the page dimensions and all kinds of crazy shit ;-)

I believe this problem has always existed.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Libreoffice-bugs mailing list