Skip to content

kennyp/potracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Potracer is a wrapper for libpotrace.

<img src=“https://travis-ci.org/kennyp/potracer.png” /> <img src=“https://codeclimate.com/github/kennyp/potracer/badges/gpa.svg” /> <img src=“https://coveralls.io/repos/kennyp/potracer/badge.svg?branch=master” alt=“Coverage Status” />

About Potrace

Potrace is a tool for tracing a bitmap, which means, transforming a bitmap into a smooth, scalable image. 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.

About Potracer

Potracer wraps the Potrace library in an easy to use Ruby binding. Input can be in the form of a multi-dimensional array of 1s and 0s or string image data. Suitable string data can be gotten from Rmagick’s export_pixels_to_str or be crafted by hand.

Usage

See the examples directory for sample usage.

Contact

Feel free to post any issues to the issue tracker and submit pull requests.

You can also email me at k.parnell ‘at’ gmail.com