Plugin Directory

Document Gallery

This plugin generates thumbnails for documents and displays them in a gallery-like format for easy sharing.

Q: Ghostscript is installed on my server, but it's not working!

A: Document Gallery does a pretty good job of detecting where Ghostscript is installed, but on some installs it may need a little help. To check whether this is the case, navigate to Dashboard -> Settings -> Document Gallery and see if there is a notice next to the Ghostscript checkbox indicating that your server is not properly configured. If that notice does exist, the next step is to go to the Advanced tab on that same page and see if the Ghostscript path is set. If it is not, you'll need to manually fill it with the location for your Ghostscript install (eg: /usr/local/bin/gs). Once that change is saved, the Ghostscript checkbox should be enabled on the first tab.

Q: Why are all of my document icons in a single column?

A: Assuming that you do not have the columns attribute set to 1, the likely cause of this behavior is that descriptions are enabled. To fix this, simply use

[dg descriptions=false]


Q: Why is [insert thumbnail generation method] enabled on one of my WordPress installs, but not on another one?

A: Document Gallery works very hard behind the scenes to ensure that it enables as much as is possible for any given server, but some servers just can't do some of the things that the plugin supports. Document Gallery detects when a server can't do something (run Ghostscript, for example) and disables that option. If you later modify your server to handle one of the thumbnail generation methods, Document Gallery will notice this and re-enable the option on the settings page, though you will need to go in and tell Document Gallery that it should use this newly-enabled method.

Q: Why is Ghostscript so much faster than Imagick?

A: This comes down to how the two programs work. Imagick actually delegates handling of PDFs to Ghostscript behind the scenes, but it doesn't do so intelligently. Before passing off the PDF, it first reads the entire contents of the PDF into memory. Since we only need a single page to generate the thumbnail, this is much more work than is needed. Ghostscript, on the other hand, can handle reading only one page into memory, thus doing much less work before returning our thumbnail.

Requires: 3.6 or higher
Compatible up to: 4.1.3
Last Updated: 2015-3-17
Active Installs: 8,000+


4.9 out of 5 stars


15 of 20 support threads in the last two months have been resolved.

Got something to say? Need help?


Not enough data

1 person says it works.
0 people say it's broken.

100,1,1 100,2,2
0,1,0 100,1,1 100,1,1 100,1,1 100,1,1 0,1,0 100,1,1
100,1,1 0,1,0 80,5,4
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,2,2
100,1,1 50,2,1 100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,2,2 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,3,3 100,2,2 100,3,3 100,1,1 100,2,2 100,2,2 100,2,2 100,1,1 100,2,2 100,1,1
100,2,2 100,3,3 100,1,1 100,1,1
100,2,2 67,3,2 100,2,2
100,1,1 0,1,0 100,3,3