Cartfoon πŸ–ΌπŸ¦Έβ€β™‚οΈ

Turn imgs into cartoons!

Using TensorflowJS and deeplab.

Example

Examples from Unsplash.

Picture of a person
Person

How to Use

Add these before your closing body tag.

TO DO

Add the cartfoon class to your img tags.

<img src="/path/to/image" class="cartfoon"/>

That's it. Cartfoon will begin working automatically! πŸ–Œ

⚠ Performance will vary based on the capability of each browser client. Images will render faster with a GPU. Cartfoon ES6 class syntax.

Advanced

Flags

Not yet implemented.

Cartfoon.dataMask = true; // Automatically apply `data-mask` to images.
Cartfoon.dispatch = true; // Trigger 'cartfoon.transform' events every time an image is updated. Contains img element and, if enabled, mask data.
Methods

Not yet implemented.

How it works

Magic... ✨