S
S
stichii2016-09-21 18:34:12
css
stichii, 2016-09-21 18:34:12

How to convert png image to json?

Good afternoon! You need to make a hall scheme using the d3 js library. Vots has an example on the site itself bl.ocks.org/mbostock/5349951 There, the coordinates are driven into json. And I only know png image. 9b38bb3b4b40430eadeca8918656a982.png
Do not tell me how to convert it to an image in json, or maybe there is an example of how to do it using svg?
Or maybe it's better to do it with another library? Just encountering this for the first time

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xtala zen, 2016-09-21
@xtala

Is it a prerequisite to use the d3 js library? If the condition is not mandatory, then you can not solve the problem head-on, but try to find an alternative solution. As I understand it, the task is to highlight various parts of the image on mouse hover? You can try to complete the task using this tool en.crazysquirrel.ru/tools/generators/map-area

A
Archakov Dennis, 2016-09-21
@archakov06

Convert to base64 and save to JSON

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question