0

Are there any tools that allow you to generate images on the server side using JavaScript langauge? I'm investigating the possibility of using the same JS code to render images on the client side and on the server side.

2 Answers 2

1

See this npm package - it can do anything from capchas to photo resazing on server sidde

https://npmjs.org/package/canvas

For client side... i do not know, but it works super for serverside. The only downside is quite tricky installation - https://github.com/learnboost/node-canvas/wiki

Sign up to request clarification or add additional context in comments.

Comments

0

What makes this tricky is that you need something that works both server side and client side.

If you are willing to limit yourself to SVG (which means you can kiss goodbye) to older versions of MSIE, then that can be constructed as per any DOM.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.