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. Nextcloud
  3. Nextcloud pdf and video preview

Nextcloud pdf and video preview

Scheduled Pinned Locked Moved Solved Nextcloud
15 Posts 4 Posters 4.5k Views 4 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.
  • B Offline
    B Offline
    byspy
    wrote on last edited by
    #1

    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
    3
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      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
      2
      • B Offline
        B Offline
        byspy
        wrote on last edited by
        #3

        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
        2
        • B Offline
          B Offline
          byspy
          wrote on last edited by
          #4

          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
          2
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #5

            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
            3
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              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
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

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

                B jdaviescoatesJ 2 Replies Last reply
                1
                • girishG girish

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

                  B Offline
                  B Offline
                  byspy
                  wrote on last edited by
                  #8

                  @girish thank you. work like a charm.

                  jdaviescoatesJ 1 Reply Last reply
                  1
                  • B byspy

                    @girish thank you. work like a charm.

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by
                    #9

                    @byspy did you manage to sort video previews too?

                    I use Cloudron with Gandi & Hetzner

                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #10

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

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

                      jdaviescoatesJ 1 Reply Last reply
                      1
                      • girishG girish

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

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

                        jdaviescoatesJ Offline
                        jdaviescoatesJ Offline
                        jdaviescoates
                        wrote on last edited by
                        #11

                        @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
                        0
                        • B Offline
                          B Offline
                          byspy
                          wrote on last edited by
                          #12

                          I have only PDF and video MP4 and work perfect.

                          1 Reply Last reply
                          1
                          • girishG girish

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

                            jdaviescoatesJ Offline
                            jdaviescoatesJ Offline
                            jdaviescoates
                            wrote on last edited by
                            #13

                            @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

                            jdaviescoatesJ 1 Reply Last reply
                            0
                            • jdaviescoatesJ jdaviescoates

                              @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!

                              jdaviescoatesJ Offline
                              jdaviescoatesJ Offline
                              jdaviescoates
                              wrote on last edited by
                              #14

                              @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

                              jdaviescoatesJ 1 Reply Last reply
                              0
                              • jdaviescoatesJ jdaviescoates

                                @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...

                                jdaviescoatesJ Offline
                                jdaviescoatesJ Offline
                                jdaviescoates
                                wrote on last edited by
                                #15

                                All sorted now 🙂

                                I use Cloudron with Gandi & Hetzner

                                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