Can you convert a TIFF to CGM

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
tteboe
Posts: 1
Joined: 2015-12-15T14:22:08-07:00
Authentication code: 1151

Can you convert a TIFF to CGM

Post by tteboe »

I see posts about CGM to TIFF, but can a TIFF to CGM be done.
I'm looking at converting a number of TIFF image drawing files to CGM.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Can you convert a TIFF to CGM

Post by Bonzo »

You can see which formats are supported here http://www.imagemagick.org/script/formats.php and it looks like CGM is read only.

Just noticed this "Requires ralcgm to render CGM files."
sruthinesan
Posts: 2
Joined: 2016-10-19T02:08:32-07:00
Authentication code: 1151

help in converting cgm to png

Post by sruthinesan »

Hi

I am trying convert CGM image to PNG image using Image magick and ralcgm delegate but im getting an error

C:\Users\home>ralcgm -d ps -oC c:\caution.cgm c:\caution.ps
RAL CGM Interpreter Version 3.50

***FATAL ERROR: CGMibin [146] Wrong Version number


C:\Users\home>convert c:\caution.ps c:\caution.png
convert: FailedToExecuteCommand `"gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOP
AUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=
pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g612x792 "-sOutput
File=C:/Users/home/AppData/Local/Temp/magick-5388JtVccwSRLQKp%d" "-fC:/Users/hom
e/AppData/Local/Temp/magick-5388HXT0mKrFRBka" "-fC:/Users/home/AppData/Local/Tem
p/magick-5388ysT_0chmZWIV"' (The system cannot find the file specified.
) @ error/delegate.c/ExternalDelegateCommand/460.
convert: FailedToExecuteCommand `"gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOP
AUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=
pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g612x792 "-sOutput
File=C:/Users/home/AppData/Local/Temp/magick-5388JtVccwSRLQKp%d" "-fC:/Users/hom
e/AppData/Local/Temp/magick-5388HXT0mKrFRBka" "-fC:/Users/home/AppData/Local/Tem
p/magick-5388ysT_0chmZWIV" -c showpage' (The system cannot find the file specifi
ed.
) @ error/delegate.c/ExternalDelegateCommand/460.
convert: Postscript delegate failed `The system cannot find the file specified.
' @ error/ps.c/ReadPSImage/949.
convert: no images defined `c:\caution.png' @ error/convert.c/ConvertImageComman
d/3253.

.ps file im getting but it is corrupted

What is the solution for this?

Please help me and i needed this for my project
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Can you convert a TIFF to CGM

Post by snibgo »

You issued two commands, ralcgm and convert. They both failed. I suspect the second failed because the first failed.

ralcgm isn't an ImageMagick program.
snibgo's IM pages: im.snibgo.com
sruthinesan
Posts: 2
Joined: 2016-10-19T02:08:32-07:00
Authentication code: 1151

Re: Can you convert a TIFF to CGM

Post by sruthinesan »

how to convert cgm file to png file using imagemagick?
Post Reply