Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18294

Images are overflowing the content when exported to odt/rtf

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 11.10.5
    • Fix Version/s: None
    • Component/s: Office
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      The conditions to reproduce this issue are the same as for issue XWIKI-18292: XWiki 11.10.5 configured with LibreOffice 6.2.4.2 (6.2.4.2-2).

      How to reproduce:
      Prepare a page with the following content:

      Urna id volutpat lacus laoreet non. Cursus euismod quis viverra nibh. Nunc mattis enim ut tellus elementum sagittis vitae et. Pharetra massa massa ultricies mi. Turpis egestas sed tempus urna et pharetra pharetra. 
      
      [[image:655-1000x250.jpeg]]
      
      Eu scelerisque felis imperdiet proin fermentum leo vel orci porta. Tellus id interdum velit laoreet. Sed elementum tempus egestas sed sed risus pretium quam. Facilisi nullam vehicula ipsum a arcu. Sapien nec sagittis aliquam malesuada bibendum arcu vitae elementum curabitur. Elit sed vulputate mi sit. Cursus euismod quis viverra nibh cras pulvinar mattis nunc. Purus gravida quis blandit turpis cursus in hac habitasse. Et molestie ac feugiat sed. Scelerisque felis imperdiet proin fermentum leo. Aliquam sem et tortor consequat id porta nibh venenatis.
      

      where the referenced image is a 1000x250 px image at 300dpi.

      It would look something like this in wiki mode:

      • Export this page to rtf or odt.
      • Open the exported file with LibreOffice Writer (mine is version 7.0.3.1 on Ubuntu)
        • If the export was to odt, select View -> Normal from the menu to view it as a printable page

      Expected result:

      • The image is displayed to fit 100% width of the page of the document

      Actual result:

      • The image is inserted in the document at actual size, not resized, so it's not all visible on the document, it overflows:

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response: