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
The topic ‘feature request, custom Ghostscript PDF thumbnail parameter’ is closed to new replies.