Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. WordPress (Managed)
  3. PDF Thumbnail Generation Broken

PDF Thumbnail Generation Broken

Scheduled Pinned Locked Moved Unsolved WordPress (Managed)
6 Posts 5 Posters 1.2k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      W Offline
      WebbleVince
      wrote on last edited by
      #1

      Hi there,

      Lately, there seems to be a swath of people (outside of Cloudron, at least) reporting their PDFs no longer get thumbnails generated. I recently had to force regenerate all thumbnails on one of my WP sites on Cloudron, and faced the same issue: PDFs no longer get thumbnails.

      While investigating, it seems that ImageMagick could be the culprit here. I think WordPress uses ImageMagick to do the conversion. Using wp media regenerate outputs lines like:

      Warning: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408 (ID 5110)
      Warning: No metadata. (ID 5110)
      3/558 Couldn't regenerate thumbnails for "<redacted>" (ID 5110).
      

      I traced it to the /etc/ImageMagick-6/policy.xml file that must've changed recently in the base image used by Cloudron. Could you perhaps look into it? I'm using PDF thumbnails heavily on one of my hosted sites and it used to work just fine 😞

      Thanks in advance!

      All the best,
      Vince.

      nebulonN 1 Reply Last reply
      1
      • W WebbleVince

        Hi there,

        Lately, there seems to be a swath of people (outside of Cloudron, at least) reporting their PDFs no longer get thumbnails generated. I recently had to force regenerate all thumbnails on one of my WP sites on Cloudron, and faced the same issue: PDFs no longer get thumbnails.

        While investigating, it seems that ImageMagick could be the culprit here. I think WordPress uses ImageMagick to do the conversion. Using wp media regenerate outputs lines like:

        Warning: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408 (ID 5110)
        Warning: No metadata. (ID 5110)
        3/558 Couldn't regenerate thumbnails for "<redacted>" (ID 5110).
        

        I traced it to the /etc/ImageMagick-6/policy.xml file that must've changed recently in the base image used by Cloudron. Could you perhaps look into it? I'm using PDF thumbnails heavily on one of my hosted sites and it used to work just fine 😞

        Thanks in advance!

        All the best,
        Vince.

        nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        @webblevince well spotted! I have pushed a new app package which hopefully fixes the issue. I think there are several other apps also being affected by this.

        Please check for updates on your instance and apply the update and let us know if this has fixed it for you, then we can go through the other apps to see which one also needs this.

        necrevistonnezrN 1 Reply Last reply
        1
        • nebulonN nebulon

          @webblevince well spotted! I have pushed a new app package which hopefully fixes the issue. I think there are several other apps also being affected by this.

          Please check for updates on your instance and apply the update and let us know if this has fixed it for you, then we can go through the other apps to see which one also needs this.

          necrevistonnezrN Offline
          necrevistonnezrN Offline
          necrevistonnezr
          wrote on last edited by
          #3

          @nebulon will this fix heic/heif previews via imagemagick as well?

          nebulonN 1 Reply Last reply
          0
          • necrevistonnezrN necrevistonnezr

            @nebulon will this fix heic/heif previews via imagemagick as well?

            nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            @necrevistonnezr not really, this will just not forbid to create PDF thumbnails.

            1 Reply Last reply
            0
            • coniunctioC Offline
              coniunctioC Offline
              coniunctio
              wrote on last edited by
              #5

              Must we install ImageMagick/Imagick on our server hosting Cloudron in order to have PDF previews function correctly or are ImageMagick/Imagick installed as part of the initial Cloudron installation script during the original setup? I am using Ubuntu 20.04 and Cloudron installed on a VM located on my home NAS.

              With gratitude,
              James

              girishG 1 Reply Last reply
              0
              • coniunctioC coniunctio

                Must we install ImageMagick/Imagick on our server hosting Cloudron in order to have PDF previews function correctly or are ImageMagick/Imagick installed as part of the initial Cloudron installation script during the original setup? I am using Ubuntu 20.04 and Cloudron installed on a VM located on my home NAS.

                With gratitude,
                James

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                @coniunctio That shouldn't be required. imagemagick is already installed in the WP app container. Are you seeing any failure? If so, can you tell me how to reproduce this?

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search