bitmap (gif) -> vector (eps)

bitmap (gif) -> vector (eps)

Post by Matthew » Tue, 12 Sep 1995 04:00:00



Has anyone come across a prog. (preferably in Linux) which can read a
bitmap file (e.g. gif, bmp, ...), perform line tracing and then save
it as a vector-based file format (e.g. eps, wmf)?

I have a prog. which displays a few simple objects such as squares,
lines, circles, etc... on the screen. I then capture it and save it as
a gif. I want to include the picture in my*file. There are progs
that can produce eps from gif, but they don't do line tracing. The gif
is just simply stored as bitmap in the eps file. I've tried corelTrace
(CorelDraw 3), but their line tracing is poor. The result is almost
unrecognizable.

Storing the pic in a vector-based format has two benefits 1)less
storage 2)easily scalable

I'd be very grateful for any suggestions or pointers. Thanks in
advance.

Matthew

 
 
 

bitmap (gif) -> vector (eps)

Post by Bhroam Man » Tue, 12 Sep 1995 04:00:00




>Has anyone come across a prog. (preferably in Linux) which can read a
>bitmap file (e.g. gif, bmp, ...), perform line tracing and then save
>it as a vector-based file format (e.g. eps, wmf)?

The best thing for you to do is pick up a copy of pbmplus.  There are
converters for everything to everything (not quite true).  You will need to
convert the gif a few times before it is a ps file, but it is posible.  I also
saw a giftops program out there a while ago... forgot where it was... try to
archie for it.

Another good idea is to look at an archive for comp.sources.postscript.  There
are some good converters in there...

latz
Bhroam
--
--------------------------------------------------------------------------------
                               Bhroam Alex Mann

--------------------------------------------------------------------------------

 
 
 

bitmap (gif) -> vector (eps)

Post by Christian Kirsc » Sat, 16 Sep 1995 04:00:00



>Has anyone come across a prog. (preferably in Linux) which can read a
>bitmap file (e.g. gif, bmp, ...), perform line tracing and then save
>it as a vector-based file format (e.g. eps, wmf)?

>I have a prog. which displays a few simple objects such as squares,
>lines, circles, etc... on the screen. I then capture it and save it as
>a gif. I want to include the picture in my*file. There are progs
>that can produce eps from gif, but they don't do line tracing.

If you want a vector output, why don't you produce it in the first place?
Drawing lines and such things first, then capture them -- I assume you
use xwd or some such -- just to reconvert the pixels to lines seems a bit
to contrived for me. If all you want to do is drawing squares, lines, and
circles, eps-output should be simple.

What you are looking for is difficult to implement -- at least if you want it
to work in more than just the most simple cases. That's probably the reason why
you can't find an appropriate program.

Christian

 
 
 

bitmap (gif) -> vector (eps)

Post by Matthew » Sun, 17 Sep 1995 04:00:00



Quote:>If you want a vector output, why don't you produce it in the first place?
>Drawing lines and such things first, then capture them -- I assume you
>use xwd or some such -- just to reconvert the pixels to lines seems a bit
>to contrived for me. If all you want to do is drawing squares, lines, and
>circles, eps-output should be simple.

In most cases, I do not have a choice. For example, a graph/chart scanned
using a scanner will produce a bitmap file, or in some other occasion someone
gave me a flow chart diagram or circuit drawing diagram but only they were
in bmp file format. Under all these circumstances, I do not have a choice
'cos I did not produce these images. In order to scale these diagrams/charts
to the desired size and with minimal distortion, it's best to convert them
to vectors first. Coming back to the example I gave in my original post,
my prog displays some animation on the screen (a simulation prog). I use
xv to capture a particular instant and store it as a gif. I later want to
include it in my*file (with some scaling). I suppose I can go away
and learn about postscript, and then rewrite my program so that it can
produce eps. But I was hoping there is a less-effort solution :)

Quote:>What you are looking for is difficult to implement -- at least if you want it
>to work in more than just the most simple cases. That's probably the reason why
>you can't find an appropriate program.

In theory, CorelTrace (utility from CorelDraw) suppose to do this exactly.
It traces the outline of the obj, and display/store it as a vector obj.
However, in practice, the algorithm they use is not that stable and
occasionally produce an image unrecognisable from the orginal.

Matthew

 
 
 

bitmap (gif) -> vector (eps)

Post by Ian MacPhedr » Wed, 20 Sep 1995 04:00:00


: Has anyone come across a prog. (preferably in Linux) which can read a
: bitmap file (e.g. gif, bmp, ...), perform line tracing and then save
: it as a vector-based file format (e.g. eps, wmf)?

There is a program called pbmtofig by Martin Winnick which will take
pbm (bitmap) files and convert them to FIG 2.1 files. You'll need most
of pbmplus (or netpbm) and xfig to get eveything to work.

: I have a prog. which displays a few simple objects such as squares,
: lines, circles, etc... on the screen. I then capture it and save it as
: a gif. I want to include the picture in my*file. There are progs
: that can produce eps from gif, but they don't do line tracing. The gif
: is just simply stored as bitmap in the eps file. I've tried corelTrace
: (CorelDraw 3), but their line tracing is poor. The result is almost
: unrecognizable.

Well, this one will not any better, but you can try it. Another thing you
could do is bring the gif file into xfig, and trace over it. Not automatic,
but it does let you get it into vector format.

: I'd be very grateful for any suggestions or pointers. Thanks in
: advance.

The only pointer I found for this program through Archie is:
ftp://news.rrz.uni-koeln.de/graph/pbm/pbmtofig1.0.tar.Z

: Matthew

Ian.
----------------------------------------------------------------------------
Ian MacPhedran,    Engineering Computer Centre,   2B13 Engineering Building,
University of Saskatchewan,  57 Campus Drive,  Saskatoon SK  S7N 5A9, CANADA

 
 
 

bitmap (gif) -> vector (eps)

Post by Hannu Krosin » Sat, 23 Sep 1995 04:00:00



>>What you are looking for is difficult to implement -- at least if you want it
>>to work in more than just the most simple cases. That's probably the reason why
>>you can't find an appropriate program.

>In theory, CorelTrace (utility from CorelDraw) suppose to do this exactly.
>It traces the outline of the obj, and display/store it as a vector obj.
>However, in practice, the algorithm they use is not that stable and
>occasionally produce an image unrecognisable from the orginal.

StreamLine from Adobe has succeeded for me in most cases
(its available at least for Windows PSs and Macs, I don't
know if it runs under Wine or Executor)

------------------------------