![]() |
|
PDF thump and user upload - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: PDF thump and user upload (/thread-11346.html) |
PDF thump and user upload - sonson - 2013-09-12 Hello, Thanks for the help and excuse my bad english! sonson Hallo, Vielen DAnk für die Hilfe!!! sonson PDF thump and user upload - acrylian - 2013-09-12
I have naturally no knowledge about the 3rd party plugin pdf-thumb-generation. In any case it requires to install Ghostscript binary on the server itself. Unless you have your own server you most likely cannot respectively are not allowed to do that at all (e.g. on shared hosting). You have to follow these instructions: http://www.zenphoto.org/news/problems-with-albums-and-images#thumbnails-for-videos-are-not-created
PDF thump and user upload - Jaanus - 2013-10-04 I found once a code that seems to work without Ghostscript, even w/o ImageMagick (both are missing in my host's server!) although the authors insisted that this needs IM. And the output file could be not only jpg but also png. // Start $pdf_file = './originalfile.pdf'; exec('convert "'.$pdf_file.'" -colorspace RGB -resize 300 "'.$save_to.'"', $output, $return_var); // Just to verify if($return_var == 0) { //if exec successfuly converted pdf to jpg // End Where (and which parts of the code) should I put to be able to test it? Of course I mean not only thumbs but also the "details size" PDF thump and user upload - fretzl - 2013-10-05 Why not just try the PDF thump and user upload - acrylian - 2013-10-05 @fretzl: The reason is of course to not have to create and upload the thumbs manually. @Jaanus: There exists also a PHP PDF extensions: The easiest without is to use what fretzl recommended. |