Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  2. CONFSERVER-26016

pdf export fails to retrieve image if the image on the page is a web image and url contains "download/attachments"




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

      If you insert a web image to a page whose url contains the text download/attachments (such as this image http://confluence.atlassian.com/download/attachments/139467/confluence-3-0-profile-view.png?version=2&modificationDate=1243658607572), and then export that page as pdf, the image will not resolve, and you will get a warning in the logs

      [confluence.extra.flyingpdf.ConfluenceExportUserAgent] getImageResource Could not retrieve image resource http://confluence.atlassian.com/download/attachments/139467/confluence-3-0-profile-view.png?version=2&modificationDate=1243658607572 during Confluence export : The byte array is not a recognized imageformat.

      The pdf exports continue, but where the image should've been, is instead an empty space.


      • If the image is from Confluence, insert the image directly from the page using Confluence's file tools, rather than linking to the image URL. This will also have the added benefit of keeping the image updated if a new version of the image is ever uploaded:
        1. Click the "Insert Files and Images" button on the toolbar.
        2. Select "Search on other pages" in the dialogue sidebar.
        3. Enter the page you'd like to insert the image from in the search bar, then click Search.
        4. Select the images you'd like to insert.
        5. Click Insert.
        6. The page should now export successfully with the images.
      • If the image is from an external site, add the problematic image as an attachment first, and then replace the web image with the attachment on the page before exporting.


          Issue Links



              • Votes:
                36 Vote for this issue
                47 Start watching this issue


                • Created:
                  Last commented:
                  5 days ago