[Typo3-windows] Imagemagick 4.2.9

Editha Kuske info at editha-kuske.de
Wed Aug 3 03:38:51 CEST 2005


Hello together

In windows the convert command doesn't work fine if the destination file is given with the full path name like:

convert.exe -geometry 170x136! -colors 64  D:/xxx/dummy-3.8.0/typo3/sysext/install/imgs/jesus.gif[0] D:/xxx/dummy-3.8.0/typo3temp/pics/install_write_png.png			

Please see the convert help:
>>>>>>>>>>>>>>>>>>
By default, the image format of `file' is determined by its magic
number.  To specify a particular image format, precede the filename
with an image format name and a colon (i.e. ps:image) or specify the
image type as the filename suffix (i.e. image.ps).  Specify 'file' as
'-' for standard input or output.
<<<<<<<<<<<<<<<<<<<<<<<<<<<

It means that the 'D:' in the path of the destination-file is interpreted as a format name, and such a format doesn't exist. Therefore a png-file with an unknown format will be created.

I use a simple way to go around:

1. Create a  batch file in the Image Magick folder with name 'convert.exe.bat' and the content:
 >>>>>>>>>>>>>>>>>>
  @echo off
  for /f "tokens=1-3 delims=:" %%u in ("%6") do set outfile=%%v
  convert_ori.exe %1 %2 %3 %4 %5 %outfile%
>>>>>>>>>>>>>>>>>>>>>

2. Rename 'convert.exe' to  'convert_ori.exe'


Greetings
Editha



More information about the TYPO3-windows mailing list