Simplest JS paint

The Painterro is a simple but powerfull embeddable open-source JS paint for any website or webapp.

It allows very fast processing of raster images. Here we will review the features.

Cropping

🖼 By default selection tool is active, so you can start selecting interested area just after you opened file in Painterro (which could be triggered by document.onpaste for example).

After selecting area which you want to leave on image, just press crop once:

Or even simpler - just press [C] on keyboard.
By the way, to learn what shortcout is used - just hover on tool and check the hint:

Pixelizing

🕶 If you accidantly got a sensitive information on image or screenshot which you want to hide just select it:

And press [P]:

Line, Rectangle, Circle primitives in js paint

⬛ One of the most common scenario for js paint librarry - is to highlight an objects on the image. You can do it with underlinining, or wrapping in rectangle/circle:

You can disable shadows:

You can select line and fill color for a tool, also it supports alpha channel:

Line width is also adjustable, e.g. here I drawn semi-transparent pink rectangle with 10px borders:

Arrows

↗ Arrows a great tool to define something on image. Since this post created on HINTY platform, here we also have a painterro inside of our editor.

Here you can control line width and arrow length:

Text tool

🔠 Adding a text - is required feature for any JS paint. Just press [T], click on the place where you want to add a test and start typing:

Formatting support? Yes!

Select a text inside and press CTRL+I, CTRL+B, CTRL+U:

As an author of Painterro, I did not want to limit you in formatting, so you can even copy a HTML-formatted text for example, create it in Google Docs:


And just copy-paste it to activaed text tool:

Rotating, resizing and scaling

For simplisity purpose we have only 90 degree rotation. Rich us on github issues if you need different angles😉

To improve image resolution you can use Scale feature:

If you need just resize image and feel with empty color, use Resize:

Mobile?

📱Sure - we use simple toollbar swipe so you can work on smaller devices:

Technicall requirements of Painterro js paint

Usefull links

#painterro
menu 16
Oct 24, 2020
by Ivan Borshchov

Best related

Using painterro with Vue.js

How to round the Painterro buttons

Painterro dark theme

Other by Ivan Borshchov

WSL 2 starter guide. Must read!

How to write an scp command in terminal

Scp background execution

Scp - not a regular file - how to fix