J
J
JustAleksei2015-06-13 17:48:36
Django
JustAleksei, 2015-06-13 17:48:36

Is it possible to draw a canvas element on the backend (Django/Python)? For example, using any evaluateJS libraries?

Hello!
The essence of the task: draw simple (but highly non-standard) diagrams / graphs on the backend and return them to the client.
There are already written JS codes that draw the canvas on the client.
It is necessary either to learn how to run this JS and get a picture on the server, or to find another mechanism for rendering images using the backend itself, but it is desirable to somehow use existing algorithms. Those. at least not rewrite the rendering code from scratch.
Is there a solution?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ranwise, 2015-06-14
@JustAleksei

phantomjs to save to images + selenium\Ghost.py

S
sim3x, 2015-06-13
@sim3x

It all depends on the specifics,
and we are not aware of everything

T
twobomb, 2015-06-13
@twobomb

I did not quite understand, do I need to run js code on the server? Well, use Node js. Or is it not?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question