Convert CGM to jpg
Posted: 2011-03-22T03:33:54-07:00
Hi,
I want to use ImageMagick to convert *.cgm files to *.jpg .
My operating system is windows XP 32bit.
I have already installed ImageMagick 6.6.8 (downloaded from ImageMagick.org http://www.imagemagick.org/script/downl ... 0u01299vq6)
To convert those files, i follow this link http://www.imagemagick.org/script/formats.php. So, I have installed ralCGM 3.50 module (downloaded from ImageMagick.org http://www.imagemagick.org/download/delegates/)
I set the install directory of ralcgm.exe to my environement variable "PATH"
I also set the directory of ./ralcgm/data/ to a new environnement variable "CGMDATA"
So, i try this:
-
Following this link: http://www.wizards-toolkit.org/discours ... =1&t=15989
I try this:
That's the result:
So ralcgm make the "detail.ps" file but it's corrupted...
I try this anyway:
The result:
I try the same with
Can you help me please? Do you have a link which explain me how use ImageMagick to convert CGM files?
I want to use ImageMagick to convert *.cgm files to *.jpg .
My operating system is windows XP 32bit.
I have already installed ImageMagick 6.6.8 (downloaded from ImageMagick.org http://www.imagemagick.org/script/downl ... 0u01299vq6)
To convert those files, i follow this link http://www.imagemagick.org/script/formats.php. So, I have installed ralCGM 3.50 module (downloaded from ImageMagick.org http://www.imagemagick.org/download/delegates/)
I set the install directory of ralcgm.exe to my environement variable "PATH"
I also set the directory of ./ralcgm/data/ to a new environnement variable "CGMDATA"
So, i try this:
-
Code: Select all
convert C:\temp\sources\detail.cgm C:\temp\output\detail.jpg
Code: Select all
Magick: delegate failed `ralcgm -d ps "%i." "%o." "%u."' @ error/delegate.c/InvokeDelegate/1058.
That's the result:
Magick: `%s' (%d) "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignTo
Pixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g612x792 "-sOutputFile=C:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-JGapMa7M--0000001" "-fC:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-Z9AO9WeL" "-fC:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-xMv1KAxQ" @ error/utility.c/SystemCommand/2094.
Magick: `%s' (%d) "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignTo
Pixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g612x792 "-sOutputFile=C:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-JGapMa7M--0000001" "-fC:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-Z9AO9WeL" "-fC:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-xMv1KAxQ" -c showpage @ error/utility.c/SystemCommand/2094.
Magick: Postscript delegate failed `C:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-njow1c-a': No such file or directory @ error/ps.c
/ReadPSImage/806.
Magick: missing an image filename `C:\temp\output\detail.jpg' @ error/convert.c/ConvertImageCommand/2974.
I try this:
Code: Select all
ralcgm -d ps -oC C:\temp\sources\detail.cgm C:\temp\output\detail.ps
Code: Select all
RAL CGM Interpreter Version 3.50
***FATAL ERROR: CGMibin [146] Wrong Version number
I try this anyway:
Code: Select all
convert C:\temp\output\detail.ps C:\temp\output\detail.jpg
Code: Select all
Magick: `%s' (%d) "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignTo
Pixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g612x792 "-sOutputFile=C:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-fz6m42EV--0000001" "-fC:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-oUIyJyca" "-fC:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-BpVGtjZw" @ error/utility.c/SystemCommand/2094.
Magick: `%s' (%d) "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignTo
Pixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g612x792 "-sOutputFile=C:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-fz6m42EV--0000001" "-fC:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-oUIyJyca" "-fC:/DOCUME~1/J8818~1.PAU/LOCALS~1/Temp/magick-BpVGtjZw" -c showpage @ error/utility.c/SystemCommand/2094.
Magick: Postscript delegate failed `C:\temp\output\detail.ps': No such file or directory @ error/ps.c/ReadPSImage/806.
Magick: missing an image filename `C:\temp\output\detail.jpg' @ error/convert.c/ConvertImageCommand/2974.
It doesn't work anyway .......Edit delegates.xml and change the CGM delegate to
<delegate decode="cgm" thread-support="False" command="ralcgm -d ps "%i." "%o." "%u.""/>
Can you help me please? Do you have a link which explain me how use ImageMagick to convert CGM files?