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

Images exported into a PDF file are not in a high resolution

      The image resolution for a PDF and for a web site are necessarily different but Confluence uses the same image for both.

      Right now I've got one resolution for the web but I'd like a much higher resolution image for the PDF.

      One solution could be adding a size tag to images on the wiki input, e.g.

      and then attaching a high res picture with confluence downsampling for display

      A second solution coulde be to attach two images to a page and have confluence know how to do the right thing.

      A third solution would be to have confluence support svg.

      cheers,
      adrian

            [CONFSERVER-6544] Images exported into a PDF file are not in a high resolution

            Agnes Ro added a comment -

            The fix was to scale down images by 0.75. Ideally it is not the best solution but at least the images will look similar to seen on the web.

            Agnes.

            Agnes Ro added a comment - The fix was to scale down images by 0.75. Ideally it is not the best solution but at least the images will look similar to seen on the web. Agnes.

            So what was the fix?

            PDF is typicaly 200-300dpi rather than 96 or 72. Is FOP really incapable of rendering images at that resolution? If so, I suppose that means that confluence will never produce print worthy documents which is sad.

            thanks,
            --adrian

            Adrian Custer added a comment - So what was the fix? PDF is typicaly 200-300dpi rather than 96 or 72. Is FOP really incapable of rendering images at that resolution? If so, I suppose that means that confluence will never produce print worthy documents which is sad. thanks, --adrian

            Agnes Ro added a comment -

            Fixed.

            Agnes Ro added a comment - Fixed.

            Agnes Ro added a comment -

            The reason for this is because most images served on the web or on the computer are 96dpi. FOP (the library we use to generate PDF) renders images at 72dpi. Thus the images don't look as good in PDF. To fix this I will be scaling down images by 3/4 for PDF exports unless a percentage is explicitly specified on one of the parameters width or height of the image.

            Agnes.

            Agnes Ro added a comment - The reason for this is because most images served on the web or on the computer are 96dpi. FOP (the library we use to generate PDF) renders images at 72dpi. Thus the images don't look as good in PDF. To fix this I will be scaling down images by 3/4 for PDF exports unless a percentage is explicitly specified on one of the parameters width or height of the image. Agnes.

              agnes@atlassian.com Agnes Ro
              42a929ff1fba Adrian Custer
              Affected customers:
              2 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: