D
D
Dimash Kenzhegaliev2022-04-20 10:20:01
Node.js
Dimash Kenzhegaliev, 2022-04-20 10:20:01

How to convert image to json object?

Hello, I need to get an object from png, jpeg - json
formats. Approximately this format:

{
    title: String,
    mimetype: String,
    size: Number,
    pixels: [
        {
            x: Number,
            y: Number,
            color: Number
        },
        ......
    ]
}

Any ideas ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2022-04-20
@Shutik

https://github.com/scijs/get-pixels
?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question