Title: feature request, custom Ghostscript PDF thumbnail parameter
Last modified: June 28, 2017

---

# feature request, custom Ghostscript PDF thumbnail parameter

 *  [chauraph](https://wordpress.org/support/users/chauraph/)
 * (@chauraph)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/feature-request-custom-ghostscript-pdf-thumbnail-parameter/)
 * Hello,
 * Two years ago, someone reported when using Ghostscript to generate thumbnail 
   a white bar will randomly appear on the image.
 * I realize that it is due to -dPDFFitPage is being used in the gs command, where-
   dPDFFitPage will resize the output png according to the default paper size of
   the server, (i.e. A4 or letter), depending on the locale setting. If the PDF 
   does not have the same aspect ratio as the default paper size of the server, “
   white bar” will be appended to fit the page.
 * For generating thumbnails with various document dimensions, like me, I changed
   to use -dUseCropBox for the gs command. I hope in future DG will add the support
   of allowing different gs option, say -dPDFFitPage or -dUseCropBox
 * Raphael

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

 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/feature-request-custom-ghostscript-pdf-thumbnail-parameter/#post-9290706)
 * Hi Raphael,
 * Interesting request. Are you thinking a plain text field for people to modify
   all arguments or just a few specific options for how the command line is generated(
   such as whether to use `dPDFFitPage` or `dUseCropBox`? I could see arguments 
   for either, but the former option is probably too daunting for about 99.999% 
   of DG users.
 * -Dan
 *  Thread Starter [chauraph](https://wordpress.org/support/users/chauraph/)
 * (@chauraph)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/feature-request-custom-ghostscript-pdf-thumbnail-parameter/#post-9345330)
 * Hi Dan,
 * Eventually I used the option -ddFitPage to fulfil my purpose, as my documents
   are all variable in size.
 * The plugin is superb. Thank you for your good work.
    Raphael

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

The topic ‘feature request, custom Ghostscript PDF thumbnail parameter’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [chauraph](https://wordpress.org/support/users/chauraph/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/feature-request-custom-ghostscript-pdf-thumbnail-parameter/#post-9345330)
 * Status: not resolved