convert fails for fig to jpg

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
selmna
Posts: 1
Joined: 2017-06-19T04:24:31-07:00
Authentication code: 1151

convert fails for fig to jpg

Post by selmna »

I am trying to convert fig files to jpg using ImageMagick. When i am trying the basic command "convert input.fig output.jpg", it fails with the below error message.
convert: UnsupportedCellTypeInTheMatrix `input.fig' @ error/mat.c/ReadMATImage/838.
fig2dev(Transfig) - supports to read fig file in imagemagick.
How can i check that do i have that libray?. if library is not available how can i include it?
I installed Imagemagick(6.9.3-0) using yum install in unix machine.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert fails for fig to jpg

Post by anthony »

The Fig file format is a vector image format saved by the program "xfig" . This has not seem any real changes for at least 20 years, but is still available using Linux. Heck.. I'm so old I still use it for basic line drawings (even combined with small raster images).
The best way to output fig files is to a printer.. That is what it is designed to output to. However to generate a raster of the fig file at a specific size and resolution, I would probably yse the xfig program itself.

The "fig2dev" program is part of the xfig packages, in redhat/fedora linux it was included in "transfig" package. The "dev' format is a device independent raster format which can then convert to most raster and vector formats.

I hope this answers your questions.

As a matter of interest, what are you using "fig" for? Last time I used xfig was to draw up plans for a house renovation for my daughter just 3 months ago.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply