Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-53298

image in edit mode adds "confluence-thumbnail" class unnecessarily causing poor image to be displayed

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 6.1.2, 6.2.4, 6.3.3, 6.4.0, 6.9.0, 6.13.6, 6.15.2, 7.13.5
    • Content - Attachments

      Summary

      Copy and pasting image into pages while editing, or uploading images while editing does not work correctly with Internet Explorer.

      Internet Explorer imports the image file with the tag ac:thumbnail="true" causing the image to be blurry. This does not affect other web browsers when they are used to upload/paste images to pages as they will not include the ac:thumbnail=true" tag once saved. 

      Environment

      • Internet Explorer 11
      • Microsoft Edge Version 81.0.416.68 (Official build) (64-bit)

      Steps to Reproduce

      1. In Windows use Snipping Tool
      2. Create a new Image
      3. Copy the image with the copy button
      4. Ctrl+V to Confluence page, or upload a saved image to a page using the image upload feature

      Expected Results

      Image inserted in Internet Explorer should be sharp as appear in Chrome like below.

      Actual Results

      Image show as blurry in Internet Explorer

      Notes

      Comparing the Storage Format of the page you will see:

      • Chrome
        <p><ac:image ac:height="162"><ri:attachment ri:filename="image2017-8-30_14-1-9.png" /></ac:image></p>
        
      • Internet Explorer
        <p><ac:image ac:thumbnail="true" ac:height="162"><ri:attachment ri:filename="image2017-8-30_14-0-51.png" /></ac:image></p>
        

      Workaround

      Option 1: Use a different web browser other than IE to upload images to the page while editing
      Option 2: Resize the blurry image, then resize it back to the desired size and it will appear correctly once saved, as this removes the tag

      Mass clean-up

      Run the following SQL statement to replace the ac:thumbnail="true" value with a blank value in all pages and all previous versions of pages including drafts:

      works on Postgres
      UPDATE BODYCONTENT
      SET body = replace(body,'ac:thumbnail="true"','') 
      WHERE body LIKE '%ac:thumbnail="true"%';
      
      works on MS SQL
      UPDATE BODYCONTENT
         SET BODY = REPLACE (CONVERT(VARCHAR(MAX), BODY), 'ac:thumbnail="true"','')
       WHERE BODY LIKE '%ac:thumbnail="true"%';
      

       Always make a full backup of the database and be prepared to roll back before directly editing the db. 

      When done with the search and replace statement above, go to General Configuration -> Cache Management -> "Advanced View" and click "Flush All" at the very bottom of the page. This is so cached versions of pages which have this code still in their storage format will be reloaded from the database at next page visit.

      You may need to clear browser cache as well or hold down shift+refresh on the page to load the page not from existing browser cache. 

       Note: using Internet Explorer to upload new images into pages moving forward will embed the ac:thumbnail="true" value again. This can be avoided by resizing the image to anything else while editing, then resizing back to the size you want before saving the page.  

            [CONFSERVER-53298] image in edit mode adds "confluence-thumbnail" class unnecessarily causing poor image to be displayed

            Microsoft Edge browsers are our corporate default browsers.
            Given that Edge is now the number two popular browser (bigger than Safari and Firefox combined), I would hope you will be able to pay more attention to issues like these.

            Rick Carini added a comment - Microsoft Edge browsers are our corporate default browsers. Given that Edge is now the number two popular browser (bigger than Safari and Firefox combined), I would hope you will be able to pay more attention to issues like these.

            Beth L. added a comment -

            Still an active issue. 

            Beth L. added a comment - Still an active issue. 

            We need this fixed. It seems to still be happening with Chromium version of Microsoft Edge.
            Version 81.0.416.68 (Official build) (64-bit)

            Rick Carini added a comment - We need this fixed. It seems to still be happening with Chromium version of Microsoft Edge. Version 81.0.416.68 (Official build) (64-bit)

            with the new 6.4 version we focus also this issue, so we urgently need to align that. Not sure why we the new version we do have also same bugs as before plus new.

            Laura de sabbata added a comment - with the new 6.4 version we focus also this issue, so we urgently need to align that. Not sure why we the new version we do have also same bugs as before plus new.

            Agreed, not a good look for a clean modern view that confluence provides but then fuxxy pictures.

            Suprised it does not have a higher priority

            Greg Roberts added a comment - Agreed, not a good look for a clean modern view that confluence provides but then fuxxy pictures. Suprised it does not have a higher priority

            It would be nice if this issue could be fixed. Thus IE11 is our companies default-browser we are not able to upgrade confluence until the problem has been solved.

            Florian Bodenheimer added a comment - It would be nice if this issue could be fixed. Thus IE11 is our companies default-browser we are not able to upgrade confluence until the problem has been solved.

              Unassigned Unassigned
              aabouharga Aya Mohamed (Inactive)
              Affected customers:
              18 This affects my team
              Watchers:
              28 Start watching this issue

                Created:
                Updated: