Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-82240

Fit images to window for images without width attribute

XMLWordPrintable

    • 1
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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.

              jramos@atlassian.com Josh Ramos
              887e911e3c81 Jimmy Van
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: