Can't see PDF thumbnails in new grid view (but works in the demo instance)

docker
nc15

#1

I’m trying to get my nextcloud instance to show thumnail images of pdf files when in the new grid view in Nextcloud 15.

In the demo (demo.nextcloud.com) when viewing in grid view this works just as I would like it to. However, a new fresh instance of nextcloud (installed from the nextcloud docker) doesn’t have this. I don’t see any difference in the settings between my instance and the demo instance.

What do I need to do to make pdf thumbnails show up like the demo instance has?


#2

Is there a way to look at the config.php file for the demo.nextcloud.com instance so I can see how it manages to make PDF thumbnails show up?

It must not be difficult to make PDF thumbnails show up since the demo does it.

Anyone know how? Thanks for helping!


#3

Maybe try installing ghostscript.


#4

Can you give any more details? I searched google for “nextcloud ghostscript” but most of the results had to do with people’s posts about problems with previewgenerator.
How do I install ghostscript? Is there a way to tell if it is already installed? If ghostscript is for creating a preview of PDF files (which based on its website it seems to be) then I must already have it installed because I can see PDFs in nextcloud no problem when I click on the filename (opens in a full-sized preview of the entire PDF). Doesn’t that mean I must already have ghostscript?

The problem I’m having is with there being no thumbnail preview of a file in the grid view. I can see PDFs when they are clicked on to open just fine.

I.e., Here is my problematic install:

And here is the demo.nextcloud.com (working) version:

If you still think the problem is ghostscript, can you give me any further pointers?

If anyoneone knows how I can view the config.php from the demo instance, can you let me know? Then I could just see what settings are used there. Thanks!


#5

Anyone? There must be an easy way to make my instance of Nextcloud work the same as the demo instance.


#6

I think for previewing, Nextcloud uses imagemagick. And for previewing pdf files, imagemagick needs ghostscript. So you would need to install the ghostscript package on your system, not in NC.


#7

Right. But there’s no problem for me in previewing pdf files. I click on the file, and the preview shows up, full size.

So unless I’m mistaken, this isn’t a ghostscript or imagemagick problem. Previews are working for me.

The problem I have is that in the grid view, I see generic icons, instead of the icon-sized previews.

I want this: (seen in the nextcloud demo–notice the two files on the right, labeled Nextclo… and User Da…–these are both previews of pdfs instead of generic adobe acrobat pdf icons)

But I have this:

What am I missing?


#8

Well, shame on me for just assuming that it couldn’t be a imagemagick/ghostscript problem.

I did docker exec -it nextcloud /bin/bash to get into my nextcloud docker
Then I did apt update and then apt install imagemagick and let it install
And then went back to nextcloud in the browser, and just like that, pdf icon previews are working!

You were right!

Thanks for your help