Skip to content

Conversation

@Sola-ris
Copy link
Contributor

Summary

Add support for rendering .clip thumbnails.
Fixes #1146

.clip project files embedd an SQLite database at the end of the file which contains the thumbnail in the CanvasPreview table.

Before

before

After

after

Sources for the file format

File used for testing

Drawing by Surendra Rajawat hosted on Clip Studio Paint's website

Tasks Completed

  • Platforms Tested:
    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested For:
    • Basic functionality
    • PyInstaller executable

@Pheubel
Copy link
Contributor

Pheubel commented Sep 25, 2025

I just tried this PR on windows 10 (x86_64) with a simple illustration i quickly drew together and an illustration that uses a newer version of CSP and it works like expected, this will be a nice addition for my artist friend. 👍

@TrigamDev
Copy link
Contributor

Checked and it appears to be working as expected

@CyanVoxel CyanVoxel added Type: UI/UX User interface and/or user experience Status: Review Needed A review of this is needed Thumbs/Previews File thumbnails or previews labels Sep 28, 2025
@CyanVoxel CyanVoxel added this to the Alpha v9.5.7 milestone Oct 8, 2025
@CyanVoxel CyanVoxel self-assigned this Dec 15, 2025
Copy link
Member

@CyanVoxel CyanVoxel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay on reviewing this! Everything looks great outside of the hanging sqlite connection to the .clip file. I know it's been a while since you've submitted this PR, and I'd be more than happy to implement the change on your behalf if you don't have the time to.

@CyanVoxel CyanVoxel removed the Status: Review Needed A review of this is needed label Dec 15, 2025
@CyanVoxel CyanVoxel moved this to 🚧 In progress in TagStudio Development Dec 15, 2025
@Sola-ris
Copy link
Contributor Author

Sorry for the delay on reviewing this! Everything looks great outside of the hanging sqlite connection to the .clip file. I know it's been a while since you've submitted this PR, and I'd be more than happy to implement the change on your behalf if you don't have the time to.

No worries^^

I'm kinda surprised about the indent on conn.close(). It works, but I would have expected that it should be part of the with block.

Copy link
Member

@CyanVoxel CyanVoxel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your work on this, and the quick update!

@CyanVoxel CyanVoxel merged commit 7ae3a6b into TagStudioDev:main Dec 15, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from 🚧 In progress to ✅ Done in TagStudio Development Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Thumbs/Previews File thumbnails or previews Type: UI/UX User interface and/or user experience

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Thumbnail preview for clip files

4 participants