This is a quick port of "potrace" (bitmap to SVG converter)
for MorphOS. There two different 68k versions included
as well for AmigaOS & WinUAE.
Please note, that:
- the 68k versions do not run under MorphOS,
they will crash the emulation
- they run under WinUAE however
- the 68k version compiled with SAS/C is not
included, since it does crash with both emulations
- so please use the PPC .elf version under MorphOS
Main changes:
- added smakefile & SCOPTIONS for SAS/C
- added makefile for VBCC
- added makefile for GCC 2.95.x of MorphOS
- added proper config.h for use with all three both
- added three test batch files and this readme
- created a "bin" folder for the binaries
- fixed bug in potracelib.c with the help of Frank Wille
(I was under impression that it'd be a VBCC bug, so
he got involved)
- fixed three more bugs (one in auxiliary.h and one
in two other source files where a "static" was missing
in a function declaration - feel free to do a "diff" to v1.7)
Usage of the tool is explained in the README - for good results
also have a look at the two test batch files.
Enjoy.
**************************************************************************
POTRACE - transform bitmaps into vector graphics
* * *
DESCRIPTION
Potrace is a utility for tracing a bitmap, which means, transforming
a bitmap into a smooth, scalable image. The input is a bitmap (PBM,
PGM, PPM, or BMP), and the default output is one of several vector
file formats. A typical use is to create EPS files from scanned
data, such as company or university logos, handwritten notes, etc.
The resulting image is not "jaggy" like a bitmap, but smooth. It can
then be rendered at any resolution.
Potrace can currently produce the following output formats: EPS,
PostScript, PDF, SVG (scalable vector graphics), PGM (for easy
antialiasing of pixel-based images), and XFig. An experimental
Gimppath backend is also provided. Additional backends might be added
in the future.
A separate program, mkbitmap, is also provided. This program can act
as a pre-processor for potrace, applying scaling and various filters
to an image before converting it to a bitmap. This is useful for
potracing greyscale and color images.
[...]
DOCUMENTATION
Usage information is contained in the man page:
http://potrace.sourceforge.net/potrace.html
Many common questions are answered in the FAQ:
http://potrace.sourceforge.net/faq.html
Some examples are given on the following web pages:
http://potrace.sourceforge.net/samples.html
http://potrace.sourceforge.net/mkbitmap.html
The inner workings of the potrace algorithm are explained here:
http://potrace.sourceforge.net/potrace.pdf
The potrace library is documented here:
http://potrace.sourceforge.net/potracelib-2up.pdf
COPYRIGHT
Copyright (C) 2001-2005 Peter Selinger
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
USA. See also http://www.gnu.org/.
See the file COPYING for details.
[...]
|