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

Nick Weisser typo3 at openstream.ch
Mon Feb 6 10:21:24 CET 2006


Rainer (Rene) Suthoelder wrote:
> if you type SET in your windows shell, something like this should appear:
> 
> C:\>set
> [...]
> DELEGATE_PATH=F:\tools\ImageMagick\
> Path=F:\tools\gs8.14\bin;%PATH
> [...]

Hi Rainer,

Thanks for your quick reply!

The SET commmand gives me the following information on the PATH variable:

Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\PROGRA~1\CA\ETRUST~1;C:\Program 
Files\Microsoft SQL 
Server\80\Tools\BINN;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\TIBCO\TIBRV\BIN;D:\TIBCO\TIBRV\BIN

No DELEGATE_PATH there. Hm?

But ImageMagick works fine. Everything works despite PDF/AI read.



> DELEGATE_PATH points to your IM's delegate file called "delegate.mgk".
> within delegate.mgk you should find lines like these
> 
> [...]
> pdf<=>ps
>  gswin32 -dMaxBitmap=300000000 -sDEVICE=pswrite -q -dNOPAUSE -dSAFER \
>    -sOutputFile="%o" -- "%i" -c quit
> [...]

That's how it looks like in my ImageMagick's delegates.mgk file:

pdf<=>ps
	gs -dMaxBitmap=300000000 -sDEVICE=pswrite -q -dNOPAUSE -dSAFER \
	  -sOutputFile="%o" -- "%i" -c quit




> "gswin32" is the binary responsible for converting PDF's to PS's (and 
> vice-versa).
> 
> 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?


> if you don't wan't to poisen your %PATH%, another option would be to set the 
> environment variable GS or GSC to
> 
> GS=F:\tools\gs8.14\bin\gswin32.exe
> GSC=F:\tools\gs8.14\bin\gswin32.exe

I've set GS to C:\Program Files\gs\gs8.53\bin\gswin32.exe, but this 
doesn't work. (done via Control Panel->System->Advanced->Environment 
Varibles)

> restart apache (!) and everything should be OK.

Even after restarting Apache.



If I enter

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

in a DOS shell, I get this:

identify: no delegates configuration file found (delegates.mgk)
identify: Missing an image file name.


If I copy the delegates.mgk file directly to the ImageMagick folder 
(currently it is in a subfolder), I get this here:

identify: Portable Document delegation failed 
(C:\DOCUME~1\E_OPEN~1\LOCALS~1\Temp\mag9BC).
identify: Missing an image file name.


Any other suggestions would be very welcome :-)
-- 
Kind regards
Nick Weisser

Openstream Internet Solutions
http://openstream.ch



More information about the TYPO3-windows mailing list