[TYPO3-windows] [Typo3-windows] imagemagick+ghostscript.

Rainer (Rene) Suthoelder t3 at boswel-remove-me.de
Mon Feb 6 18:31:57 CET 2006


Nick Weisser wrote:
> No DELEGATE_PATH there. Hm?
> But ImageMagick works fine. Everything works despite PDF/AI read.

hmmm...
if you go to the "install tool", "image processing", "reading image 
formats", you will see the command that is issued to read (convert) PDF & AI 
(mine looks like this: "F:\WWW\server\ImageMagick\convert.exe -geometry 
170x241! -colorspace RGB -sharpen 50 -quality 80 
F:/WWW/sites/ext.elgato.inc/typo3/sysext/install/imgs/pdf_from_imagemagick.pdf[0] 
F:/WWW/sites/ext.elgato.inc/typo3temp/pics/install_read_pdf.jpg"). copy that 
command and try to run in a dos shell.

>> now, the executable gswin32 (reads "gswin32.exe") must be found.
>> you may either hardcode the full path for every occurence of gswin32
>> to for example F:\tools\gs8.14\bin\gswin32.exe (bad) or add the GS
>> bin folder to your %PATH% (better, like i have done in the above
>> example).
>
> How is this done under Windows?


you mean setting the environment variable? well, you already were at the 
right point: Control Panel->System->Advanced->Environment->Varibles. then 
choose the PATH and append ";C:\Program Files\gs\gs8.53\bin\" to it. save 
the changes. stop the webserver, restart it so that it reads in the new 
environment.
OR
edit delegate.mgk and replace "gs" with "C:\Program 
Files\gs\gs8.53\bin\gswin32.exe" - it's up to you.

while you are in Control Panel->System->Advanced->Environment->Varibles, add 
a new "system variable" named DELEGATE_PATH and give it the value 
"C:\ImageMagick\" (or wherever you installed IM, in any case delegate.mgk 
must be in this folder). if that doesn't help, add  "c:\ImageMagick\" to 
your PATH as well.

another common pitfall: "convert" is also a MS system program used to 
convert file systems (FAT to NTFS)... should "this" convert be in the PATH 
before IM's convert, things may go wrong...

> If I enter
>
> c:\ImageMagick/identify.exe
> C:/xampp/htdocs/intranet/typo3/sysext/install/imgs/pdf_from_imagemagick.pdf[0] 
> ...

after all this changes, "identify a_test_pdf.pdf" must produce an output 
like
C:\test.pdf=>F:\Temp\mag24A6 526x706 DirectClass 35kb PDF 1s

thumbs up,

rainer







More information about the TYPO3-windows mailing list