D
D
Dimazsever2014-09-12 12:38:30
JavaScript
Dimazsever, 2014-09-12 12:38:30

How to reduce image resolution?

I want to write a small photo editor in JavaScript. How to reduce image resolution? Let's say the resolution is 1280*800, but I want to reduce it to 640*400 and save it to the user's computer. By what algorithm can this be done? I know that there is something similar in PHP, but I need it in Js, i.e. do all the work on the client side. Maybe there are ready-made solutions? If not, how to write such an algorithm? Somehow they make them. I'm probably already tired with such questions, but still, maybe someone knows :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Grechushnikov, 2014-09-12
@Dimazsever

read about canvas

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question