H
H
hollanditkzn2017-02-14 14:37:19
PHP
hollanditkzn, 2017-02-14 14:37:19

How to get the changed image to the server?

I can not figure out how to get an already edited photo to the server. That is, a certain image editor was used by js for canvas text. I have a question how to take all the edited data and save it to the server. There, in the editor, the user can add an additional image, like 2 layers, add text and, of course, change it, rotate the image or change the scale.
If this is done on base64, then the question is how to get all the image data from it, when the code does not know how the user can change the image.
Here is a complete code example of what it looks like https://jsfiddle.net/hollanditkzn/fguqm63v/
Or the second point is to rewrite the entire editor on canvas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Korotaev, 2017-02-15
@hollanditkzn

I think the point here is to transfer the print order, which means you need acceptable quality, which means that base64 disappears by itself (generating base64 for A4 format will cause a freeze on the client). There are not so many manipulations here, so you can simply pass them as a regular form and build the final image on the server, you can even give a preview from the server so as not to support 2 types of visualization

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question