-
Notifications
You must be signed in to change notification settings - Fork 318
Can't import previous code #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
update I thought import data should be css, but actually it's json. So I do like seems like there is no way to recover... |
Hi! I'm so sorry to hear that you lost your browser data, however having the CSS info we may be able to recover your project. The problem here it is exactly what you pointed out in the second message, the data that you stored was the CSS data but the data that you need to import a project is a bit different, which includes more info such as: all frames info, palette colors, num columns and num rows (you can find an example in the EXPORT section), in a format like the following:
I can try to create a script to recover your work, the only thing I would need is the number of columns of your drawing. |
@jvalen I'm now coming to recover. Below is what I found. Maybe this is a bug.
As you see, it's almost recovering. Only 5 pixels are still gone, so dog's nose is broken. And I think missing cells are maybe transparent cells. I'm gonna dig more. P.S. It was transparent as I expected. # colors that occured 5 times is only `""`.
❯ cat test.colors| sort | uniq -c
1
5 "",
84 "rgba(0, 0, 0, 1)",
80 "rgba(0, 150, 136, 1)",
84 "rgba(0,150,136,1)",
1699 "rgba(10,10,27,1)",
94 "rgba(121, 85, 72, 1)",
3683 "rgba(15,9,23,1)",
114 "rgba(16,51,51,1)",
435 "rgba(17,26,31,1)",
10 "rgba(19,51,63,1)",
33 "rgba(225,138,36,1)",
2024 "rgba(23,43,64,1)",
135 "rgba(251,200,109,1)",
13 "rgba(255, 255, 255, 1)",
1055 "rgba(26,37,50,1)",
597 "rgba(27,65,56,1)",
2305 "rgba(31,152,173,1)",
180 "rgba(35,115,178,1)",
704 "rgba(35,65,43,1)",
1333 "rgba(38,71,124,1)",
2 "rgba(48, 63, 70, 1)",
570 "rgba(60,83,132,1)",
122 "rgba(89,122,103,1)",
190 "rgba(9,12,16,1)",
1 "rgba(96, 125, 139, 1)", |
Really good work finding the issue! Using the current version of the app, the colors should appear always as rgba for both export and CSS output , for instance:
Is this an old drawing or you created it recently? I got a slightly different result than yours though, using the original CSS of your first message (pixel.txt), I'm missing only 3 pixels, that happen to be transparent, see in the image below (I just set the In the project imported I only need 107 columns instead of 108, (rows don't matter), as you can see in the following screenshot: I hope it helps! Please let me know if you need further assistance, I'll be happy to help! |
I created this since 5 days ago. Thank you for your support! I really appreciate your support.
Thank you! I've always wanted to create some drawing from childhood, but I've never. This OSS is really great, I appreciate so much. |
solved. |
Hi, thank you for this great OSS.
I've done a lot of drawing, however, I lost my data by browser-back accidently.
I copied css by each times, so I have a backup. However, I couldn't import this big data.
I attached my css below, would you kindly find any problems? I had looked in the source, but cannot figured out.
pixel.txt
The text was updated successfully, but these errors were encountered: