Created
January 11, 2018 17:48
-
-
Save castaneai/79e3d13adeae68cc881ee78c89fb91c8 to your computer and use it in GitHub Desktop.
clip studio paint -> png
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
data = open('test.clip', 'rb').read() | |
sqlite_head = data.index(b'SQLite format 3') | |
with open('test.sqlite3', 'wb') as dbf: | |
dbf.write(data[sqlite_head:]) | |
sqlite = sqlite3.connect('test.sqlite3') | |
image_data = sqlite.execute('select ImageData from CanvasPreview').fetchone()[0] | |
with open('test.png', 'wb') as imf: | |
imf.write(image_data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment