Batch conversion from raster to verctor (PNG/JPG to PDF/SVG)
Hi everybody,
I am trying to improve the quality of printing of some low-resolution raster pics.
I tried autotrace that has the ideal interface for me (i.e. "autotrace infile.jpg --output-file outfile.pdf"). However the quality is really low (especially on photos) because it generates random triangles and leave white spaces.
I am very satisfied with Inkscape's quality using the item in the menu: "Path - Trace Bitmap." (multiple scans - Colors after adjusting some options).
I wonder if I can convert the pictures that I have (they are in JPG but I can convert them to PNG) in PDF (or SVG) through some command line options or a batch script (that I don't have idea if it exists and how it works). The process should run on a OpenSolaris box that has not any X client configured.
Is this feasible or I need to mess up with Inkscape's source code?
Best,
Chris
On Thu, Mar 12, 2009 at 5:33 AM, Chris Cinelli wrote:
I am very satisfied with Inkscape’s quality using the item in the menu: “Path – Trace Bitmap…” (multiple scans – Colors after adjusting some options).
Inkscape uses potrace(.sourceforge.net) for vectorization. It has both command line tool and batch-abale GUIs.
Alexandre
Alexandre Prokoudine wrote:
On Thu, Mar 12, 2009 at 5:33 AM, Chris Cinelli wrote:
I am very satisfied with Inkscape’s quality using the item in the menu: “Path – Trace Bitmap…” (multiple scans – Colors after adjusting some options).
Inkscape uses potrace(.sourceforge.net) for vectorization. It has both command line tool and batch-abale GUIs.
and maybe you'll find some good guidance in Pierre Huyghebaert's (from OSP) post on potrace: http://ospublish.constantvzw.org/tools/potrace-alphamax-1334-or-the-limit-be...
Thanks for your answers! I was aware of potrace, but for what I know it only work on B/W images (http://potrace.sourceforge.net/faq.html). I have photos. The potrace algorithm has been brilliantly apply to color images in inkscape. Even if I understand the principles how this has been done, I would prefer to avoid to reinvent the wheel.
-----Original Message----- From: ricardo lafuente [mailto:bollecs@...1994...] Sent: Thursday, March 12, 2009 10:18 AM To: Inkscape Devel List Subject: Re: [Inkscape-devel] Batch conversion from raster to verctor (PNG/JPG to PDF/SVG)
Alexandre Prokoudine wrote:
On Thu, Mar 12, 2009 at 5:33 AM, Chris Cinelli wrote:
I am very satisfied with Inkscape's quality using the item in the menu: "Path - Trace Bitmap." (multiple scans - Colors after adjusting some options).
Inkscape uses potrace(.sourceforge.net) for vectorization. It has both command line tool and batch-abale GUIs.
and maybe you'll find some good guidance in Pierre Huyghebaert's (from OSP) post on potrace: http://ospublish.constantvzw.org/tools/potrace-alphamax-1334-or-the-limit-be tween-artificial-and-natural
---------------------------------------------------------------------------- -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (3)
-
Alexandre Prokoudine
-
Chris Cinelli
-
ricardo lafuente