Tui.image-editor: Save Object data to allow editing after save

Created on 16 Jan 2019  路  11Comments  路  Source: nhn/tui.image-editor

Hi,Is it possible to save object data so we can go back and edit the image after save

Question

Most helpful comment

@adoptavia
What do you mean object data?
Is that TOAST UI Image-Editor's Drawing, Text, Icon and Shape?

Hi,
I mean what i would like to do is somehow save the canvas objects (is that the right word) as code? so for example if I add a text area and a triangle, save those objects properties (X Y etc) as a string. so effectively i could click save, and rather than save as an image, just save the object data and then when i repopened that file i could access the object data to repopulate the canvas and carry on editing

All 11 comments

@adoptavia
What do you mean object data?
Is that TOAST UI Image-Editor's Drawing, Text, Icon and Shape?

@adoptavia
What do you mean object data?
Is that TOAST UI Image-Editor's Drawing, Text, Icon and Shape?

Hi,
I mean what i would like to do is somehow save the canvas objects (is that the right word) as code? so for example if I add a text area and a triangle, save those objects properties (X Y etc) as a string. so effectively i could click save, and rather than save as an image, just save the object data and then when i repopened that file i could access the object data to repopulate the canvas and carry on editing

@adoptavia
Unfortunately, There is no API for save & restore canvas objects via canvas object's properties.
Yet, TOAST UI Image-Editor is built for simple image editing & drawing on the single image.
I think I'll add Image-Editor's event listener for what you want to do. I'll enhance Image-Editor event listeners for manipulating canvas objects.
ex) changeObject and removeObject event

Adding canvas objects is available by add[something]() APIs.

Hello! I saw the question and the replies above about "save the canvas objects ". It seem that no answer or no solutions now? So anybody know how to save the middle status of the canvas objects like this? Im also really want to know it ...... Thank you so much.

I'd also be interested in that. Even for simple edits like just adding a text it's super useful to be able to edit that later. It would be a killer feature!

First of all great job with the image editor guys. Congratulations for that.

And yes I'm looking for save meta-data of the image editing too, to implement "save and edit later" functionality.

This issue has been automatically marked as inactive because there hasn鈥檛 been much going on it lately. It is going to be closed after 7 days. Thanks!

This would be very useful.

This issue will be closed due to inactivity. Thanks for your contribution!

I would like to reopen this issue ... it would be great to have a way to save the current image editor state (objects on the image) as json and load them afterword from a json object when editing the same image.

Is there any way to do this? I mean, "save and edit later" functionality.

Was this page helpful?
0 / 5 - 0 ratings