/imfun

Convert an image to cartoon

Primary LanguagePythonMIT LicenseMIT

ImFun PyPI version PyPI status PyPI pyversions

ImFun

Convert an image to cartoon!

Installation

This application (package) is available on PyPI, so it can be installed using pip or pipx.

$ pipx install imfun
  installed package imfun 0.1.0, Python 3.8.5
  These apps are now globally available
    - imfun
done! ✨ 🌟 ✨

Usage

One can run the imfun app to convert an image to a cartoon like this

$ imfun -i examples/prague-castle.jpg -o examples/prague-castle-cartoon.jpg
Converting image 'examples/prague-castle.jpg'
Cartoon image saved as 'examples/prague-castle-cartoon.jpg'

assuming that examples/prague-castle.jpg exists - or try it on any other image ;)

Examples

Prague castle (original)

Prague castle (cartoon)

Development

Development setup requires Poetry to be installed. Once the repository is cloned, one can setup everything with

make setup