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

Images are overflowing the content when exported to odt/rtf

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 11.10.5
    • Office
    • None
    • Unknown

    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

        1. 655-1000x250.jpeg
          655-1000x250.jpeg
          102 kB
        2. ImageOverflow-1.jpg
          ImageOverflow-1.jpg
          452 kB
        3. LargeImage RTF and ODT.jpg
          LargeImage RTF and ODT.jpg
          439 kB
        4. Selection_016.png
          Selection_016.png
          545 kB
        5. Selection_017.png
          Selection_017.png
          699 kB
        6. xwiki_Sandbox_TestOfficeExport_WebHome.odt
          129 kB
        7. xwiki_Sandbox_TestOfficeExport_WebHome.rtf
          3.10 MB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: