XStitch

From wiki.benjaminwolsey.de

Jump to: navigation, search

XStitch is a project to create high-quality cross-stitch patterns from images.

This software was created as a challenge. There is a range of programs, some freeware, some relatively expensive, that convert pictures automatically into cross-stitch patterns. There is no free software that does this. Perhaps the overlap between handicraft enthusiasts and free software advocates is relatively small.

The author is also not a handicraft enthusiast, but improved the output based on feedback from someone who is.

XStitch is not designed for home users to use (though it is possible, particularly for those familiar with the command line), but rather for automatic document generation, for instance on a web server.

XStitch is written entirely in Perl.

There are two parts to the software: a perl module XStitch.pm and a front end xstitch.pl.

Contents

XStitch.pm

This is a perl module that processes a bitmap to produce a cross-stitch pattern. The only dependency is the PDF API2 module, though you must use an image class that can write to a PNM file and satisfy certain other interface requirements.

XStitch.pm matches each bitmap pixel to the closest wool colour. It can produce a title page and the pattern itself. This module can be used independently of the frontend.

xstitch.pl

The frontend uses ImageMagick to convert images to an appropriate bitmap format. This part resizes and recolours the image. See using XStitch.

Licence

XStitch is licensed under the GNU Affero Public Licence version 3.

Download

The software is hosted at Launchpad.

Personal tools