Skip to content

fix(brushes): generate previews when imported brush previews are blank - #141

Open
wesleydanieell wants to merge 1 commit into
artcraft-android:mainfrom
wesleydanieell:fix/imported-brush-preview
Open

wesleydanieell wants to merge 1 commit into
artcraft-android:mainfrom
wesleydanieell:fix/imported-brush-preview

Conversation

@wesleydanieell

Copy link
Copy Markdown
Contributor

This PR fixes an issue where some imported brushes appeared without a preview in the brush library.

Some brush files contain an embedded preview image that is completely blank. Previously, ProCraft used that image as the brush preview, even when the brush itself could draw normally.

Now, completely blank embedded previews are treated as missing, allowing ProCraft to generate a new preview using the brush's actual settings.

This improves compatibility with brushes imported from other applications without changing their painting behavior.

Testing

Verified with a round pen brush containing an empty PNG preview.

Some brush files from other apps carry a preview image that is empty. The
library took it as the brush's preview and showed nothing, even where the
brush paints on the canvas. A blank file preview is now treated as none:
the brush draws its own preview from its settings, as an edited brush does.

Tested with a blank PNG hung on a round pen.
bearinmindcat added a commit that referenced this pull request Nov 11, 2026
…preview (#141)

Co-authored-by: Wesley <danielwesley266@gmail.com>
@bearinmindcat

Copy link
Copy Markdown
Contributor

e56b21b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants