Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 4, 2022. It is now read-only.
/ cartoonist Public archive
forked from honzajavorek/cartoonist

Tool to help lazy cartoonists to convert photo of a hand drawing into an SVG/PDF vector file

License

Notifications You must be signed in to change notification settings

Katoga/cartoonist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cartoonist

Tool to help lazy cartoonists to convert photo of a hand drawing into an SVG/PDF vector file.

cartoonist

Installation

$ ./install.sh

Note: Feel free to contribute installation of dependencies with your favorite package manager if the install.sh script doesn't work for you.

Usage

$ ./cartoonist.sh photo-of-my-drawing.jpg

Produces

  • photo-of-my-drawing.png - PNG, black/transparent
  • photo-of-my-drawing-i.png - PNG, white/transparent
  • photo-of-my-drawing.pdf - PDF, black/transparent
  • photo-of-my-drawing-i.pdf - PDF, white/transparent
  • photo-of-my-drawing.svg - SVG, black/transparent
  • photo-of-my-drawing-i.svg - SVG, white/transparent

Why?

  • Black versions are useful for embedding the image on light backgrounds.
  • White versions are useful for embedding the image on dark backgrounds.
  • PDF versions can be imported to Keynote as vector graphics.
  • SVG versions are useful anywhere else as vector graphics.
  • PNG versions are useful as ugly pixelated bitmaps when neither PDF and SVG versions can be used.

Tests

I assembled a little test suite (or rather verification-by-eye suite) to develop this script. Sample images are in the test directory. You can run the suite by executing ./test.sh. It uses throwaway ./build directory where it produces the results.

License

The script is licensed under MIT. If you want to use it, please note that dependencies (especially Fred's ImageMagick Scripts) can have different licensing and you should respect it.

You can freely use the images inside of the ./test directory to develop changes in the cartoonist, but you are not permitted to use them anywhere else unless permitted by me personally. ./test is NOT licensed by MIT and is, for any other use than for debugging this script, a subject of my copyright.

About

Tool to help lazy cartoonists to convert photo of a hand drawing into an SVG/PDF vector file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%