desuwa / tegaki

Oekaki-style painter app in JavaScript
MIT License
92 stars 12 forks source link

I want to redraw from a `.tgkr` file while retaining layer information #10

Open satopian opened 1 year ago

satopian commented 1 year ago
Tegaki.open({
  replayMode: true,
  replayURL: 'https://path/to/replay.tgkr' // Store replay files preferably with the .tgkr extension
});

By reading the .tgkr file and reproducing the drawing procedure, I were able to reproduce operations such as adding layers. However, I don't know how to treat .tgkr like a .psd file and continue drawing while preserving layer information. I was able to load the merged image and add it to the Canvas tag. However, this method loses layer information. The old OEKAKI applet (shi-Painter) can draw from files very similar to (.tgkr) files. (.spch) I would like to use such a function.

desuwa commented 1 year ago

I'll try to add a way to resume drawing from a replay some time soon. Basically a function to switch from replay mode to normal mode.

satopian commented 1 year ago

Thank you for your reply.

Basically a function to switch from replay mode to normal mode.

It will be very convenient if this is realized.