Coder of Salvation™ — programming / opensource / console / minimal
/ Home Actionscript trace cpu hogs
Advanced git aliases for ninjas
Automatic tracing handdrawn scans into vector images in linux
Avs vjgen an triggercode generator
Bash coffeescript es6 and the curly religion
Clever code toggling
Conditional cron is our friend
Emailing poormans ascii graphs using unix tree
Flexible sql columns for production servers
Githooks the minimist quality assurance tool
Imapmunch easy way to select and parse imap email on the commandline
Javascript errors on productionservers
Javascript memory leaks
Javascript simple plugin system
Looping over array in node red nodejs iteration
Md2x a minimalistic markdown bashscript
Mobile webapps are great
Mysql pagers get more overview
Npm git cloning private bitbucket repository with ssh key on openshift
Shellscript framework make quick bash scripts
Simple bash script to document REST api
Snippy autocompletion for console and browser window manager using bash
Storing retrieving hierarchical trees between php and mysql
Switch coffeescript and javascript in vim like a ninja
The ultimate dataformat for bash is tabular data but how to use it
Typesafe functions and nested variables in php javascript and coffeescript using typesafe
Utilities for xi and sf2 looped instruments to aiff wav
Vim mappingmanager organize your mappings
Xdebug bashscript to profile and debug php
You better use snippets son
Tracing handdrawn scans
Ever wanted a quick simple way to convert your handdrawn scans into something fancy?
Problem
Handdrawn scans introduce colorproblems
Its hard to hint the computer to curve stuff smoothly
Black and white (marker) drawings are hard to convert to black/white pixels
Perfect scaling..How to get from pixels to vectors?
Scanned handdrawn comics are not easily converted to digital comics
Input Format
Just a scan of your handdrawing, almost any format will work.
Output Formats
EPS (.eps)
POSTSCRIPT (.ps)
PDF (.pdf)
Standard Vector Graphic (.svg)
Drawing Interchange Format (.dxf)
Portable Greymap (.pgm)
GimpPath (.svg)
Xfig (.xfig)
Requirements
You need a linux system with the following packages:
imagemagick convert
potrace
Examples
Before:
Commandline:
/comicize tag_1.jpg tag_1_out.jpg "tag 1" 600 1 100 20 1
Before:
Commandline:
/comicize tag_2.jpg tag_2_out.jpg "tag 2" 600 1 100 20 1
Notes
I included the last picture to point out, that sometimes one needs to fiddle with the settings. In any case, the better the picture, the less you have to fiddle.
Downloads
Install the script below like this:
$ wget "https://raw.github.com/gist/4261783/f45be51919e11fb93dfb0f6dabb6d404a1400bc5/comicize" -O comicize
$ chmod 755 comicize
Please enable JavaScript to view the comments powered by Disqus.
comments powered by
All rights reserved by Leon van Kammen under this license