Fit images to window for images without width attribute

XMLWordPrintable

    • 1
    • 1

      Issue Summary

      When converting pages from TinyMCE (legacy) editor to the Fabric (new) editor/editing experience, images without a width specified are displayed at the original resolution.

      Context

      In the case of high resolution images (>3000px), images expand beyond the page width, even on ultra wide monitors, and must be scrolled horizontally.

      For customers migrating from Confluence Data Center, where images may not have a width attribute, many pages become unwieldy to navigate and difficult to read.

      Steps to Reproduce

      1. Create a TinyMCE page with an image. Do not specify a width.
        1. The storage format (for this issue) should be:
          <ac:image><ri:attachment ri:filename="image-2024-10-9_14-24-7.png" ri:version-at-save="1" /></ac:image>
          

          There are no ac:width or ac:height like attributes.

      2. Make a call to sitename.atlassian.net/wiki/rest/api/contentbody/convert/{format} endpoint with any valid format: view, styled_view, export_view, editor
      3. Publish the page
      4. View the published page

      Expected Results

      Images are contained within the width of the Confluence window.

      Actual Results

      Images are displayed in the original size of the image.

            Assignee:
            Josh Ramos
            Reporter:
            Jimmy Van
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: