简体   繁体   中英

Editing a image in the browser using Javascript then saving the image in Google App Engine

I would like a user to be able to edit an image that I serve, using Javascript, and then upload that image back into App Engine.

  1. Original image is stored as Blob in DataStore.
  2. Image is served (currently) just using
  3. Currently user can only view the image, but i want user to be able to edit the images (adding text and lines at most, no complex transformation needed).
  4. User can save the image back into the web application.

What is the quickest way to do this?

Will it be easy to integrate with 3rd party javascript image libraries (which has the editing tools already)?

Your starting point (and minimum requirement) for line art (read: not pixels but as you say: text and lines) will be the HTML5 Canvas Object:

Depending on your use case you may want to 'underlay' the pixel image to be decorated.

For saving refer to

If the end results shall be pixels, Canvas2Image might by for you.

Sorry to just throw general links at you, but since you asked in a general way. Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM