Title: Thumbnails generation
Last modified: August 24, 2016

---

# Thumbnails generation

 *  [intrelis](https://wordpress.org/support/users/intrelis/)
 * (@intrelis)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/thumbnails-generation-2-2/)
 * Here I am again, sorry. But I have a strange (I think) problem with the thumbnail
   generation. I use PDF files and some of them work well, others though do not 
   generate any thumbs, only the title appears. If I save them again with a different
   name (I’m guessing it has something to do with the PDF generation settings, as
   I’m not the one to create them), then when I open the page for the first time
   I get internal server error 500. After refreshing, it loads, but the thumbs are
   the default PDF ones.
 * link: [http://bratskalubov.com/?page_id=71](http://bratskalubov.com/?page_id=71)
   
   File that generates thumbs normally: [http://bratskalubov.com/wp-content/uploads/2015/04/March1-2015.pdf](http://bratskalubov.com/wp-content/uploads/2015/04/March1-2015.pdf)
   File that does not generate any thumbs: [http://bratskalubov.com/wp-content/uploads/2015/05/БРАТСКА-ЛЮБОВ-1505.pdf](http://bratskalubov.com/wp-content/uploads/2015/05/БРАТСКА-ЛЮБОВ-1505.pdf)
   File that generates error, then default thumbs: [http://bratskalubov.com/wp-content/uploads/2015/04/April2015.pdf](http://bratskalubov.com/wp-content/uploads/2015/04/April2015.pdf)
 * [https://wordpress.org/plugins/document-gallery/](https://wordpress.org/plugins/document-gallery/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/thumbnails-generation-2-2/#post-6083021)
 * Hmm… Off the top of my head, I’m not sure how non-ASCII characters would be handled
   when being passed to Ghostscript. That may not be interpreted correctly.
 * In the DG Settings (Dashboard -> Settings -> Document Gallery), can you please
   enable logging in the Advanced tab, purge all existing thumbnails in the Thumbnail
   Management tab, then view the gallery where these documents are included. If 
   you could report any non-Detail log entries present after performing these actions
   that would be useful.
 * Additionally, are you using IMagick or Ghostscript? Or both?
 * I’ll do some local testing with the PDFs provided and will post an update if 
   I find any useful information.
 * -Dan
 *  Thread Starter [intrelis](https://wordpress.org/support/users/intrelis/)
 * (@intrelis)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/thumbnails-generation-2-2/#post-6083119)
 * Sorry for the late reply. I’m using only IMagick, my server’s not configured 
   for Ghostscript.
 * `(DG_Thumber::getImagickThumbnail) Failed to open file in Imagick: Postscript
   delegate failed /home/www/bratskalubov.com/www/wp-content/uploads/2015/04/April2015.
   pdf: No such file or directory`
    `DG_Thumber::getImagickThumbnail) Failed to 
   open file in Imagick: Postscript delegate failed /home/www/bratskalubov.com/www/
   wp-content/uploads/2015/04/May2015.pdf: No such file or directory`
 * It’s the same. Some PDFs don’t generate thumbs, others the default.
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/thumbnails-generation-2-2/#post-6083124)
 * Hi intrelis,
 * It sounds like your IMagick is incorrectly configured — something along the lines
   of this issue: [http://stackoverflow.com/questions/10455985/issue-with-imagick-and-also-with-phmagick-postscript-delegate-failed-no-such](http://stackoverflow.com/questions/10455985/issue-with-imagick-and-also-with-phmagick-postscript-delegate-failed-no-such).
   Based on what I’m seeing, your install is claiming to be able to handle Postscript
   files, but doesn’t actually have its dependencies (or in the case of the link
   above, may not know where its dependency is).
 * Unfortunately there is not a whole lot I can do at this point besides recommend
   that you speak with your host.
 * Sorry I can’t be of more help 🙁
 * -Dan
 *  Thread Starter [intrelis](https://wordpress.org/support/users/intrelis/)
 * (@intrelis)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/thumbnails-generation-2-2/#post-6083132)
 * And I assume, that if I want to use Ghostscript, I’d have to do the same, contact
   my host? In either case, what should I tell them?
 * Thanks for answering so quickly!
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/thumbnails-generation-2-2/#post-6083153)
 * Yeah, unfortunately both would require speaking with your host.
 * With Ghostscript, the issue is either that a Ghostscript executable is not available,
   it is in a non-standard location where DG can’t find it, or your PHP is not configured
   to allow running `exec()`. You can rule out the last option if on the Advanced
   tab you don’t have an error message at the top of the page. What you need to 
   ask your host is is Ghostscript installed (and where its executable is located)
   and, if you weren’t able to rule out the third item above, whether they allow
   enabling of `exec()`.
 * With IMagick, it’s a bit more challenging to track down what is wrong. I would
   simply link your host to this support thread or to the Stackoverflow link above.
 * If after initial contact with your host you have any more questions, please feel
   free to ask and I’ll provide whatever help I can.
 * -Dan

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Thumbnails generation’ is closed to new replies.

 * ![](https://ps.w.org/document-gallery/assets/icon.svg?rev=983329)
 * [Document Gallery](https://wordpress.org/plugins/document-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/document-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/document-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/document-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/document-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/document-gallery/reviews/)

## Tags

 * [thumbs](https://wordpress.org/support/topic-tag/thumbs/)

 * 5 replies
 * 2 participants
 * Last reply from: [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/thumbnails-generation-2-2/#post-6083153)
 * Status: not resolved