Images resized by percentage are not displayed correctly

XMLWordPrintable

    • 5
    • Severity 3 - Minor
    • 2

      Issue Summary

      This is reproducible on Data Center: (yes)

      Since Confluence v8.6, the images resized by percentage  are displayed as small images on the page.

      Steps to Reproduce

      1. Create a page in Confluence 
      2. Download Confluence Source Editor.
        • Go to Settings -> Manage Apps screen and install Confluence Source Editor by selecting Upload app and choosing the Confluence source editor jar file.
      3. Edit the page and click the <> button 
      4. Insert the storage format below:
        1. <p> 
            <ac:image ac:align="center" ac:width="80%" 
              <ri:attachment ri:filename="image-2023-11-21_11-42-29.png" /> 
            </ac:image> 
          </p>  
      1. Save the page

      Expected Results

      The image should be displayed as expected:

      Actual Results

      The. image is displayed as a small image:

      Workaround

      Use pixel values instead of the percentage: 

      <p> 
        <ac:image ac:align="center" ac:width="650"
            <ri:attachment ri:filename="image-2023-11-21_11-42-29.png" />
        </ac:image> 
      </p>  

      Another possible workaround is to use the custom CSS below. This was shown to work in at least two different environments.

      .wiki-content .confluence-embedded-file-wrapper.confluence-embedded-manual-size {
      max-width: none !important;
      }

            Assignee:
            Unassigned
            Reporter:
            Suat Kandiş (Inactive)
            Votes:
            8 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: