NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      When adding an image and re-sizing that image to 300px the image gets blurry. 

      In Internet Explorer, the issue affect an image that have bigger than 300px size and resizing the image to anything larger than 300px seems to workaround the issue.

      Upon closer inspection. You will see that the Confluence is trying to resize a thumbnail

      src="/download/thumbnails/753668/2013-10-14%2009.03.34.png?version=1&modificationDate=1381934123961&api=v2"
      

      instead of the source

      src="/download/attachments/753668/2013-10-14%2009.03.34.png?version=1&modificationDate=1381934123961&api=v2"
      

        1. 100px.png
          100px.png
          46 kB
        2. 300px.png
          300px.png
          326 kB
        3. 500px.png
          500px.png
          23 kB
        4. image_300_301.png
          image_300_301.png
          85 kB
        5. landscape-img-1.png
          landscape-img-1.png
          190 kB
        6. portrait-img-1.png
          portrait-img-1.png
          103 kB
        7. Screen Shot 2014-07-04 at 3.58.49 PM.png
          Screen Shot 2014-07-04 at 3.58.49 PM.png
          700 kB
        8. testimage3.png
          testimage3.png
          20 kB

          Form Name

            [CONFSERVER-28189] Images re-sized to 300px appear blurry

            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.

            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)

            Frank Claesen added a comment - - edited

            We have come across this problem in version 6.10.2.  With an image width up to 300px its source is /download/thumbnails/... . When the width is > 300px its source is /download/attachments/... .  For the time being we will be implementing the workaround of resizing existing images to be larger than 300px.  

            We have advised our users to edit their pages whenever they come across this issue.  It is a bit of a pain as Confluence is used by customer facing users.  Having to click on an image to make it readable impacts their ability to provide an efficient service.  And having to edit existing pages impacts their productivity. 

            Frank Claesen added a comment - - edited We have come across this problem in version 6.10.2.  With an image width up to 300px its source is /download/thumbnails/... . When the width is > 300px its source is /download/attachments/... .  For the time being we will be implementing the workaround of resizing existing images to be larger than 300px.   We have advised our users to edit their pages whenever they come across this issue.  It is a bit of a pain as Confluence is used by customer facing users.  Having to click on an image to make it readable impacts their ability to provide an efficient service.  And having to edit existing pages impacts their productivity. 

            Our instance started to be affected by this bug after the update to 6.6.2 (choosen because it's an Enterprise release).

            This behavior has been reported to Confluence. This was their answer:

            Unfortunately the bug is a regression. It was fixed in 5.5.4 version but there was a regression that is why the bug is still open. The only workaround is to resize the image > 300px.

            We apologise for this inconvenience. Looking forward to hearing from you.

            Stéphane Chandonnet added a comment - Our instance started to be affected by this bug after the update to 6.6.2 (choosen because it's an Enterprise release). This behavior has been reported to Confluence. This was their answer: Unfortunately the bug is a regression. It was fixed in 5.5.4 version but there was a regression that is why the bug is still open. The only workaround is to resize the image > 300px. We apologise for this inconvenience. Looking forward to hearing from you.

            Same issue on Confluence Version 6.5.1.

             

            Workaround try to size Images > 300px.

            Christoph Lasecki added a comment - Same issue on Confluence Version 6.5.1.   Workaround try to size Images > 300px.

            Eric Maras added a comment - - edited

            Hmm, this seems like a long time for a bug like this to go unresolved. Looks like it is assigned to someone who is inactive..

            Eric Maras added a comment - - edited Hmm, this seems like a long time for a bug like this to go unresolved. Looks like it is assigned to someone who is inactive..

            Joe Hohertz added a comment - - edited

            Confirmed that this is still the case in v6.4.0.

            Was reported as a comparison from the cloud instance we have to the DC instance we are trying to migrate to in user testing.

            It appears that the cloud product is using an entirely different media API to acquire thumbnails, and only the server product(s) are affected?

            Still digging into this, will share any other details I find.

            Update: Additional findings:

            1) 300px is just one possible "line" at which the quality degrades in presentation, seems to be related to the size of image thumbnailed, maybe 300px is an upper bound, but have seen the line at what appears to be <original width>/4+1 for other images

            2) I've pulled generated thumbnails off the server to have a look, they are pretty terrible looking as-is (so this is not a browser or other layer causing this)

            3) Did some inspection of the classes, looks to be generated in com.atlassian.core.util.thumbnail.Thumber which appears to be using AWT to perform resizing (which is well known to be terrible at downscaling)

            4) The cloud version is definitely not using the same resize logic, which is why everything looks fine over there... (has a dedicated media URL, where sizing is sent via the URL)

             

            Joe Hohertz added a comment - - edited Confirmed that this is still the case in v6.4.0. Was reported as a comparison from the cloud instance we have to the DC instance we are trying to migrate to in user testing. It appears that the cloud product is using an entirely different media API to acquire thumbnails, and only the server product(s) are affected? Still digging into this, will share any other details I find. Update: Additional findings: 1) 300px is just one possible "line" at which the quality degrades in presentation, seems to be related to the size of image thumbnailed, maybe 300px is an upper bound, but have seen the line at what appears to be <original width>/4+1 for other images 2) I've pulled generated thumbnails off the server to have a look, they are pretty terrible looking as-is (so this is not a browser or other layer causing this) 3) Did some inspection of the classes, looks to be generated in com.atlassian.core.util.thumbnail.Thumber which appears to be using AWT to perform resizing (which is well known to be terrible at downscaling ) 4) The cloud version is definitely not using the same resize logic, which is why everything looks fine over there... (has a dedicated media URL, where sizing is sent via the URL)  

            Judy added a comment -

            If I make a screenshot on a low resolution screen and paste it into Confluence without resizing, it doesn't look blurry. It seems that the resizing is what causes the blurriness problem. But unfortunately I can't just avoid resizing the image as a workaround, because if I make the screenshot on a lower resolution screen then the image looks blurry on a higher resolution screen (because I need a higher quality image to look good on a higher resolution screen). If I make the screenshot on a higher resolution screen (e.g. my mac retina), the image is extra big when I paste it (which is good because I need a better quality image) but then I can't resize smaller using Confluence because of the blurriness bug. So I'm stuck.

            Note that whether I'm creating the image by making a screenshot or uploading a pre-made image, it's the same problem. I need a bigger image but I can't resize.

            Judy added a comment - If I make a screenshot on a low resolution screen and paste it into Confluence without resizing, it doesn't look blurry. It seems that the resizing is what causes the blurriness problem. But unfortunately I can't just avoid resizing the image as a workaround, because if I make the screenshot on a lower resolution screen then the image looks blurry on a higher resolution screen (because I need a higher quality image to look good on a higher resolution screen). If I make the screenshot on a higher resolution screen (e.g. my mac retina), the image is extra big when I paste it (which is good because I need a better quality image) but then I can't resize smaller using Confluence because of the blurriness bug. So I'm stuck. Note that whether I'm creating the image by making a screenshot or uploading a pre-made image, it's the same problem. I need a bigger image but I can't resize.

            Judy added a comment -

            I'm on 5.8.8. Steps to reproduce:

            • Take a screenshot of a portion of my screen.
            • Paste into a Confluence document in edit mode. The image is about 400px wide.
            • Resize the image. If I make the image 300px wide or less, it's blurry. If I make it 301px or larger, it's not blurry.

            Judy added a comment - I'm on 5.8.8. Steps to reproduce: Take a screenshot of a portion of my screen. Paste into a Confluence document in edit mode. The image is about 400px wide. Resize the image. If I make the image 300px wide or less, it's blurry. If I make it 301px or larger, it's not blurry.

            Minh Tran added a comment -

            biz17 Can you please share the Confluence version and steps to reproduce the problem with your case?

            Minh Tran added a comment - biz17 Can you please share the Confluence version and steps to reproduce the problem with your case?

            Judy added a comment -

            This bug was logged over 4.5 years ago, and the problem is still happening! All of my images < 301px are blurry. I was frustrated by this problem in a previous job back in 2012. Now in 2017, a few jobs later, I'm using Confluence again and facing all the same frustrations. Please fix this!!

            Judy added a comment - This bug was logged over 4.5 years ago, and the problem is still happening! All of my images < 301px are blurry. I was frustrated by this problem in a previous job back in 2012. Now in 2017, a few jobs later, I'm using Confluence again and facing all the same frustrations. Please fix this!!

            Hi, 

            Sorry for the delay, 

            To reproduce him it's very simply, just insert new image in your page, put her size to initial size : image quality is good.

            Now, on the same image, resize it to 70% of her original value, and the display quality is very bad.

            This is very problematic for us because, we include many pictures with details in our wiki and we must open-it in full screen to see the good quality.

            Thanks for your investigations

            Best Regards

            Baptiste

            Baptiste RIEUBLANC added a comment - Hi,  Sorry for the delay,  To reproduce him it's very simply, just insert new image in your page, put her size to initial size : image quality is good. Now, on the same image, resize it to 70% of her original value, and the display quality is very bad. This is very problematic for us because, we include many pictures with details in our wiki and we must open-it in full screen to see the good quality. Thanks for your investigations Best Regards Baptiste

            Martin Kellner added a comment - - edited

            I raised an issue in the past concerning the same error (confluence 5.7.x) . It should have been fixed until then. We are on 5.9.14 and it is still there.

            The left image has a width of 300, the right image has 301:

            • Take a screenshot of the Atlassian website
            • insert the image via the clipboard twice
            • set one to 300 pixels width
            • set one to 301 pixels width
            • compare the results ...

             

            Martin Kellner added a comment - - edited I raised an issue in the past concerning the same error (confluence 5.7.x) . It should have been fixed until then. We are on 5.9.14 and it is still there. The left image has a width of 300, the right image has 301: Take a screenshot of the Atlassian website insert the image via the clipboard twice set one to 300 pixels width set one to 301 pixels width compare the results ...  

            Hi Minh,

            Thanks for the answer. We are currently using Confluence 6.1.3.

            Thanks

            Balthazar Giraux added a comment - Hi Minh, Thanks for the answer. We are currently using Confluence 6.1.3. Thanks

            Minh Tran added a comment -

            Hi baptiste_rieublanc / balthazar.giraux,

            Thanks for raising comments. Can you share with me the steps to reproduce with that issue and some screenshots?
            balthazar.giraux Can you provide me the confluence version that you met the problem?

            Thanks,
            Minh Tran

            Minh Tran added a comment - Hi baptiste_rieublanc / balthazar.giraux , Thanks for raising comments. Can you share with me the steps to reproduce with that issue and some screenshots? balthazar.giraux Can you provide me the confluence version that you met the problem? Thanks, Minh Tran

            Several of our clients are still having this issue to this date

            Balthazar Giraux added a comment - Several of our clients are still having this issue to this date

            Hi, this issue still present in confluence server 6.1.3 ...

            Baptiste RIEUBLANC added a comment - Hi, this issue still present in confluence server 6.1.3 ...

            Stefan Hett added a comment - - edited

            @Minh Tran I take it the affected version set to 5.7 should have been removed when you closed the issue again as fixed, no? Otherwise the current state makes little sense to me without an additional comment to clarify, why an issue marked as fixed in 5.5.x is still marked to affect 5.7.

            Stefan Hett added a comment - - edited @Minh Tran I take it the affected version set to 5.7 should have been removed when you closed the issue again as fixed, no? Otherwise the current state makes little sense to me without an additional comment to clarify, why an issue marked as fixed in 5.5.x is still marked to affect 5.7.

            None of those "fixes" work for me, my image is still blurry.

            Elisabeth Gie added a comment - None of those "fixes" work for me, my image is still blurry.

            RP added a comment -

            Workaround: add and remove borders to the pictures.

            RP added a comment - Workaround: add and remove borders to the pictures.

            Images with 300 px width are still blurry. If you set them to 301 px it works. Setting the width back to 300 px brings back the blurry image. We are on Confluence 5.7.4 and we hoped that this issue was fixed as announced when we updated from 5.5.x to 5.7.x. 300 px was one of the presets in the past, so we have a lot of images with 300 px.

            Martin Kellner added a comment - Images with 300 px width are still blurry. If you set them to 301 px it works. Setting the width back to 300 px brings back the blurry image. We are on Confluence 5.7.4 and we hoped that this issue was fixed as announced when we updated from 5.5.x to 5.7.x. 300 px was one of the presets in the past, so we have a lot of images with 300 px.

            Actually, we can avoid touching every thumbnails by running the following script in the browser console while we are in edit mode.

            $("iframe").contents().find("img").click(function(){$("#image-size-input").trigger("change");}); $("iframe").contents().find("img").click();
            

            Hope you don't hate this hack :").

            Regards,

            Hoang Nguyen (Inactive) added a comment - Actually, we can avoid touching every thumbnails by running the following script in the browser console while we are in edit mode. $( "iframe" ).contents().find( "img" ).click(function(){$( "#image-size-input" ).trigger( "change" );}); $( "iframe" ).contents().find( "img" ).click(); Hope you don't hate this hack :"). Regards,

            Thanks for your input, Hoang Nguyen.

            Unfortunately editing and saving is not enough. You have to "touch" every single image and change the thumbnail size back and forth in order to force a new generated thumbnail.

            That's too much effort to put on the users.

            Florian G. added a comment - Thanks for your input, Hoang Nguyen. Unfortunately editing and saving is not enough. You have to "touch" every single image and change the thumbnail size back and forth in order to force a new generated thumbnail. That's too much effort to put on the users.

            Hi florian.goehlke,

            Unfortunately, we haven't found any solution for your issue.
            In my opinion, a page which renders thumbnails incorrectly should be edited and saved again.
            I know this solution is quite tedious, but I do not have a better solution right now.

            Regards,

            Hoang Nguyen (Inactive) added a comment - Hi florian.goehlke , Unfortunately, we haven't found any solution for your issue. In my opinion, a page which renders thumbnails incorrectly should be edited and saved again. I know this solution is quite tedious, but I do not have a better solution right now. Regards,

            Florian G. added a comment -

            We have updated to 5.5.4. I can confirm new thumbnails are of better quality, but all the old ones which were already generated before the update are still of bad quality.

            Is there any way to enforce a "rebuild" of all the existing thumbnails?

            Florian G. added a comment - We have updated to 5.5.4. I can confirm new thumbnails are of better quality, but all the old ones which were already generated before the update are still of bad quality. Is there any way to enforce a "rebuild" of all the existing thumbnails?

            It is very annoying and makes design documentation inefficient. Surprisingly the bug doesn't affect all the previews. How is that possible? I hope that this bug will be fixed soon.

            Martin von Siebenthal added a comment - It is very annoying and makes design documentation inefficient. Surprisingly the bug doesn't affect all the previews. How is that possible? I hope that this bug will be fixed soon.

            This is a very annoying bug, please fix it.

            Anastasia Semenova added a comment - This is a very annoying bug, please fix it.

            Hi Robert,

            I understand your frustration, but we prioritise bugs based on many criteria - technical severity, number of votes, user impact and more. Rest assured that this bug has enough votes so that it will get fixed at some point (but maybe not right away).

            Thanks
            David Rizzuto
            Atlassian

            David Rizzuto added a comment - Hi Robert, I understand your frustration, but we prioritise bugs based on many criteria - technical severity, number of votes, user impact and more. Rest assured that this bug has enough votes so that it will get fixed at some point (but maybe not right away). Thanks David Rizzuto Atlassian

            Robert Fülle added a comment - - edited

            Unfortunately this is the kind of bug, which never gets fixed.

            Robert Fülle added a comment - - edited Unfortunately this is the kind of bug, which never gets fixed.

            Pablo Culebras added a comment - - edited

            I am also experiencing this annoying problem. As we have lots of pictures with that size everything looked really bad. My workaround for this was setting the size to 301px.

            I hope you can solve this minor issue soon.

            Thanks!

            PS: I am using Confluence 5.4.2

            Pablo Culebras added a comment - - edited I am also experiencing this annoying problem. As we have lots of pictures with that size everything looked really bad. My workaround for this was setting the size to 301px. I hope you can solve this minor issue soon. Thanks! PS: I am using Confluence 5.4.2

            Actually I have seen this as an issue that gets progressively worse with growing aspect ration (going from landscape to portrait), i.e., the effect is more pronounced the longer an image is with a given width. I have seen this with landscape images when sized under 300px, but not as noticeable. With a really long image, it is very pronounced when sized under 300px. In most cases, my workaround has been to place a portrait image on top of a white landscape rectangle within Illustrator, then export to PNG, followed by adjusting the size to get the visual width I need. But that only works if I am not constrained on the sides of the placed image.

            I have seen this issue in every version from 4.0 to 4.3.7 (non on-demand).

            Bill Bailey added a comment - Actually I have seen this as an issue that gets progressively worse with growing aspect ration (going from landscape to portrait), i.e., the effect is more pronounced the longer an image is with a given width. I have seen this with landscape images when sized under 300px, but not as noticeable. With a really long image, it is very pronounced when sized under 300px. In most cases, my workaround has been to place a portrait image on top of a white landscape rectangle within Illustrator, then export to PNG, followed by adjusting the size to get the visual width I need. But that only works if I am not constrained on the sides of the placed image. I have seen this issue in every version from 4.0 to 4.3.7 (non on-demand).

            The image formatting bar offers to define the width only. If you choose a width of less than 301 pixels, a thumbnail image is used. This medium thumbnail image, seems to be resized to a maximum width AND height of 300px. For example:

            For an original 400x600 pixel image, Comfluence generates a medium thumbnail (width 200px, height 300 pixels).
            As soon as you define a width of 300 px (or less), that 200x300 px thumbnail is blown up to 300x450 pixels.

            This bug is pretty annoying, when documenting design work in Confluence. It’s probably a pretty quick fix.

            Robert Fülle added a comment - The image formatting bar offers to define the width only. If you choose a width of less than 301 pixels, a thumbnail image is used. This medium thumbnail image, seems to be resized to a maximum width AND height of 300px. For example: For an original 400x600 pixel image, Comfluence generates a medium thumbnail (width 200px, height 300 pixels). As soon as you define a width of 300 px (or less), that 200x300 px thumbnail is blown up to 300x450 pixels. This bug is pretty annoying, when documenting design work in Confluence. It’s probably a pretty quick fix.

            Tested in OnDemand 5.0-OD-28.

            Marlon Aguiar added a comment - Tested in OnDemand 5.0-OD-28.

              Unassigned Unassigned
              maguiar Marlon Aguiar
              Affected customers:
              78 This affects my team
              Watchers:
              77 Start watching this issue

                Created:
                Updated: