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

Large embedded images are not displayed within pdf macro

XMLWordPrintable

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

      Symptoms:

      • If image is embedded into file then it won't be displayed.
      • Scanned PDF document (which is effectively consists of single embedded image) won't be displayed at all.
      • There is next log statement in logs: WARN [DefaultSlideCacheManager:thread-1] [com.benryan.conversion.MemoryAwarePDFRenderer] drawImage Image of size 2464*3448 px dropped for memory protection

      Reason:

      • Image rendering takes considerable amount of memory and makes some OD instances crash.
      • Temporary workaround applied on confluence side is to have image rendering disabled if image is large.

      OD workaround:
      At the moment there is no workaround for OD (OnDemand) customers except scan documents into JPEG format instead of pdf. We're are plan to roll out on better memory calculation algorithm and better handling of concurrent macro rendering however there is no ETA.

      BTF workaround:
      For BTF (Behind The Firewall) admins could start confluence with -Dpdf.render.memory.guard.disabled=true property in order to disable memory guard. That will make all pdfs to be rendered.
      Note: Disabling this memory guard can cause OutOfMemoryErrors if a high resolution image is embedded in a PDF.

      EDIT 21/04/2015
      Current pdf macro is deprecated and replaced by `Files and Images` (available from toolbar). More details are onto https://confluence.atlassian.com/display/Cloud/Displaying+Files+and+Images

      Update 23/11/2015
      Condition was reversed. You won't need to put system property and by default images size within pdf is not limited for BTF installations.

        1. Custompostcard_final_2014.pdf
          1.46 MB
        2. log.txt
          54 kB
        3. PDF thumbnail error.png
          PDF thumbnail error.png
          10 kB
        4. screenshot.png
          screenshot.png
          30 kB

              psemeniuk Petro Semeniuk (Inactive)
              psemeniuk Petro Semeniuk (Inactive)
              Votes:
              26 Vote for this issue
              Watchers:
              36 Start watching this issue

                Created:
                Updated:
                Resolved: