D
D
Denis Nicholas2017-12-03 12:13:32
JavaScript
Denis Nicholas, 2017-12-03 12:13:32

How to draw over an uploaded image?

Hello. I use the wysiwyg imperavi editor for yii2 https://github.com/vova07/yii2-imperavi-widget
I needed the ability to draw simple lines over the uploaded image. I thought to use the drawer plugin under imperavi https://www.drawerjs.com/ for this, but it didn’t even start, maybe I didn’t do something right.
I wondered if there are similar libraries that, before uploading an image to the server, make it possible to draw a couple of lines on it, on the client side? Ideally, as a module / plugin for yii2 or imperavi, but in principle, it doesn’t matter, you can also use a standalone library.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2017-12-03
@BorisKorobkov

On the client: mousedown / mousemove / mouseup
On the server: gd or imagick

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question