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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Nextcloud pdf and video preview

    Nextcloud
    4
    15
    1761
    Loading More Posts
    • 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.
    • B
      byspy last edited by

      Hi to everybody, I need to enable preview PDF and Video on my Nextcloud.
      I need to execute this command:

      apt install ffmpeg imagemagick ghostscript
      

      and this

      nano /etc/ImageMagick-6/policy.xml
      

      to change some parameter.

      If I try to execute: apt install ffmpeg imagemagick ghostscript

      I receive this message:
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package ghostscript is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source

      Package ffmpeg is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source

      W: Not using locking for read only lock file /var/lib/dpkg/lock
      E: Package 'ffmpeg' has no installation candidate
      E: Package 'ghostscript' has no installation candidate

      1 Reply Last reply Reply Quote 3
      • nebulon
        nebulon Staff last edited by

        Welcome! On Cloudron all apps run on a read-only filesystem, this means apt cannot install additional package. This is on purpose actually. We have to include such dependencies in the app package itself. I will see how this can be done with the next Nextcloud package release. Do you know how I can test that your desired functionality works then?

        1 Reply Last reply Reply Quote 2
        • B
          byspy last edited by

          I can show you:
          This image Is without the mod in Nextcloud Cloudron:
          Schermata 2020-03-04 alle 17.27.18.png
          And this image show how it work in my Nextcloud:
          Schermata 2020-03-04 alle 17.27.51.png

          With the mod you can see a preview of PDF, Image and if you want OFFICE ecc... (but I do not need)

          1 Reply Last reply Reply Quote 2
          • B
            byspy last edited by

            I have follow this guide:
            https://www.allerstorfer.at/nextcloud-install-preview-generator/
            and
            https://www.allerstorfer.at/imagemagick-fix-policymap/

            Thats all

            1 Reply Last reply Reply Quote 2
            • nebulon
              nebulon Staff last edited by

              Thanks for the reply. I have created an issue with the app package repo, so we can fix this with the next package release https://git.cloudron.io/cloudron/nextcloud-app/issues/74

              1 Reply Last reply Reply Quote 3
              • girish
                girish Staff last edited by

                Had a look at this issue now. Nextcloud enable_previews setting is true by default - https://docs.nextcloud.com/server/18/admin_manual/configuration_server/config_sample_php_parameters.html#previews . In a new installation, I can see thumbnails generated for images and text documents. PDF and Document previews are not generated as outlined in the docs.

                1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff last edited by

                  For PDF previews, please follow the docs - https://cloudron.io/documentation/apps/nextcloud/#previews

                  B jdaviescoates 2 Replies Last reply Reply Quote 1
                  • B
                    byspy @girish last edited by

                    @girish thank you. work like a charm.

                    jdaviescoates 1 Reply Last reply Reply Quote 1
                    • jdaviescoates
                      jdaviescoates @byspy last edited by

                      @byspy did you manage to sort video previews too?

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff last edited by

                        @jdaviescoates It seems to work here atleast. What video file are you trying?

                        bfc8aa88-7087-4520-a9ba-6e32ef471a45-image.png

                        jdaviescoates 1 Reply Last reply Reply Quote 1
                        • jdaviescoates
                          jdaviescoates @girish last edited by

                          @girish oh, no particular video file, but given you said in Nextcloud pdf and video preview:

                          For PDF previews, please follow the docs - https://cloudron.io/documentation/apps/nextcloud/#previews

                          I wasn't sure if that covered video too (and not just PDF as mentioned), but now actually looking at that link I see that it includes the code for loads of different previews, thanks, I'll give it a try!

                          I use Cloudron with Gandi & Hetzner

                          1 Reply Last reply Reply Quote 0
                          • B
                            byspy last edited by

                            I have only PDF and video MP4 and work perfect.

                            1 Reply Last reply Reply Quote 1
                            • jdaviescoates
                              jdaviescoates @girish last edited by

                              @girish said in Nextcloud pdf and video preview:

                              For PDF previews, please follow the docs - https://cloudron.io/documentation/apps/nextcloud/#previews

                              Whilst trying to paste that code in I've managed to mess up my config file (and stupidly didn't download a copy beforehand).

                              Easiest way to get it back to original state?

                              Thanks!

                              I use Cloudron with Gandi & Hetzner

                              jdaviescoates 1 Reply Last reply Reply Quote 0
                              • jdaviescoates
                                jdaviescoates @jdaviescoates last edited by

                                @jdaviescoates said in Nextcloud pdf and video preview:

                                Easiest way to get it back to original state?

                                I restored a backup from 8 hours ago. 🙂

                                Now to try again... But asting into the web console doesn't seem to work properly (perhaps a bug?), so will try downloading, editing and then uploading or something...

                                I use Cloudron with Gandi & Hetzner

                                jdaviescoates 1 Reply Last reply Reply Quote 0
                                • jdaviescoates
                                  jdaviescoates @jdaviescoates last edited by

                                  All sorted now 🙂

                                  I use Cloudron with Gandi & Hetzner

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post
                                  Powered by NodeBB