ImageMagic installed correctly and configured as the following:
Path to the "convert" binary = c:\imageMagick\convert.exe
When i tried the pdf to imageField module, the pdf did not converted to image. i looked into the messages and got the following
Running commandline c:\imageMagick/identify "C:\Users\test\Sites\drupal-7.33\sites\default\files\test.pdf"[9999] | grep "Requested FirstPage" | cut -d : -f2
Attempting to count the number of pages in PDF returned zero. This may be a currupt PDF, or the imagemagick tool may not be installed or working right. Please check the status page.
Invalid page count on PDF public://test.pdf
Can you please guid me to get it work under windows.
Thanks
Comments
Comment #1
phorvicheka commentedIn my windows: when I try the commandline c:\imageMagick/identify "C:\Users\test\Sites\drupal-7.33\sites\default\files\test.pdf"[9999] | grep "Requested FirstPage" | cut -d : -f2, it doesn't work and it returns error.
Try:
c:\imageMagick/identify -format %n "C:\Users\test\Sites\drupal-7.33\sites\default\files\test.pdf" and see what it outputs.
Comment #2
dman commentedLast time I looked,
grepandcutwere not available on a vanilla Windows environment.I guess it should be possible to shift those processes into PHP string manipulations instead.
Patch welcome, but it will have to be from someone who develops on Windows...
Comment #3
phorvicheka commentedIt works with ghostscript.
Comment #4
hitchshockWe stopped supporting the D7 version, so the ticket will be closed, but thanks to everyone who was working on the ticket!