Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 [2]   Go Down

Author Topic: PDF First page thumbnail plugin  (Read 27752 times)

0 Members and 1 Guest are viewing this topic.

AnnuN

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: PDF First page thumbnail plugin
« Reply #20 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
Logged

AnnuN

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: PDF First page thumbnail plugin
« Reply #21 on: June 05, 2011, 09:57:44 am »

Dear Please help me in this regard
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: PDF First page thumbnail plugin
« Reply #22 on: June 11, 2011, 04:55:37 pm »

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.
Logged

Fabrian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 126
Re: PDF First page thumbnail plugin
« Reply #23 on: October 17, 2011, 02:32:11 am »

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.
Logged

Fabrian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 126
Re: PDF First page thumbnail plugin
« Reply #24 on: October 17, 2011, 02:42:16 am »

Just realized I left the domain out.
Lakelandimagegallery.com
Logged

hoeksma

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 4
Re: PDF First page thumbnail plugin
« Reply #25 on: November 08, 2011, 02:19:05 pm »

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
Logged

mlodszy

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: PDF First page thumbnail plugin
« Reply #26 on: February 03, 2013, 04:37:12 pm »

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

(http://testowausluga.osloskop.eu/albums/userpics/10001/normal_info.jpg)
Logged

mlodszy

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: PDF First page thumbnail plugin
« Reply #27 on: February 05, 2013, 03:27:45 pm »

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.

Code: [Select]
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
Code: [Select]
-r=WIDTHxHEIGHT
Can any developer help me with replacing imagemagic/conver with this tool? It's placed in /usr/bin
Logged

mlodszy

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: PDF First page thumbnail plugin
« Reply #28 on: February 05, 2013, 05:58:22 pm »

Ok, I menage to change some code and now get error like this:
Code: [Select]
images/thumbs/thumb_pdf.png
This is oryginal code:
Code: [Select]
$cmd = "{$CONFIG['thumbnail_pdf_path']} -q -o $ff_dest_file -sDEVICE=jpeg -dPDFFitPage {$src_file}";And I replace with this:
Code: [Select]
$cmd = 'gs -dQUIET -dSAFER -dBATCH -dNOPAUSE -dJPEGQ=70 -sDEVICE=jpeg -dTextAlphaBits=4 -sOutputFile='."{$src_file}".' '.$ff_dest_file;
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.018 seconds with 20 queries.