PDF First page thumbnail plugin - Page 2 PDF First page thumbnail plugin - Page 2
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

PDF First page thumbnail plugin

Started by hoeksma, November 09, 2010, 07:48:22 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

AnnuN

Dear this is already set to ImageMagik...

Should I mention the ImageMagik path D:/ImageMagick/ or D:/ImageMagick/convert.exe

AnnuN

Dear Please help me in this regard

papukaija

Quote from: AnnuN on May 27, 2011, 07:56:26 AM
Dear this is already set to ImageMagik...

Should I mention the ImageMagik path D:/ImageMagick/ or D:/ImageMagick/convert.exe

It's documented here, there's also a Windows specific warning . Finally, please follow board rules if you need more help.

Fabrian

Hopefully this plugin is still supported and active.  I've read the thread, verified with my host that both ImageMagick and ghostscript are installed and what their paths are.

Having this information and trying everything I can think of, including changing the position of active plugins and checking file and folder permissions, I can't get this plugin to work.  This is a real bummer since it's exactly what I need.

Any suggestions would be great.

Fabrian

Just realized I left the domain out.
Lakelandimagegallery.com

hoeksma

Hi all,

Sorry for not responding and maitaining pluging for sometime. I did some investigations and found out that there are problems with this plugin and the version of convert. The version i use (ImageMagick 6.6.9-6 2011-04-26 on linux) has problems with PDF documents created with abobe version 9 and above. It cannot read the document, causing convert to crash. This again is not logged by plugin.

To test if your system works, enter on commandline : convert <yourpdffile>  -colorspace RGB -geometry 2048 <imagefile>

If file is created then your system is capable of running plugin.


Sierk

mlodszy

I have a problem with this plugin. After convert I'm get something like that:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Ftestowausluga.osloskop.eu%2Falbums%2Fuserpics%2F10001%2Fnormal_info.jpg&hash=46a999f6ac70c9331f4848cdcaa7771f234c8edc)

mlodszy

Hi, after some investigation I find a way not only get a good quality of pdf first page but either of "eps" files. I used for it ghostscipt used directly. Only problem is that I don't know how to input it into this plugin.

gs -dQUIET -dSAFER -dBATCH -dNOPAUSE -dJPEGQ=70 -sDEVICE=jpeg -dTextAlphaBits=4 -sOutputFile=$outputfile $inputfile

After run this "gs" generate image from first page. There can be added option
-r=WIDTHxHEIGHT

Can any developer help me with replacing imagemagic/conver with this tool? It's placed in /usr/bin

mlodszy

Ok, I menage to change some code and now get error like this:
images/thumbs/thumb_pdf.png

This is oryginal code:
$cmd = "{$CONFIG['thumbnail_pdf_path']} -q -o $ff_dest_file -sDEVICE=jpeg -dPDFFitPage {$src_file}";
And I replace with this:
$cmd = 'gs -dQUIET -dSAFER -dBATCH -dNOPAUSE -dJPEGQ=70 -sDEVICE=jpeg -dTextAlphaBits=4 -sOutputFile='."{$src_file}".' '.$ff_dest_file;