Skip to content

Conversation

@br0ns
Copy link
Contributor

@br0ns br0ns commented May 27, 2025

Recently I was experiencing problems loading many images with chafa.py so I went to investigate. It turns out that chafa.loader.Loader() does not destroy the MagicWand object after exporting the image's pixels.

This PR is a minimal fix. The loader should probably check for error conditions and raise an appropriate exception in that case.

@br0ns
Copy link
Contributor Author

br0ns commented May 27, 2025

BTW, thank you for your work. I just realized that in an effort to keep the PR brief, it may have come across as a bit salty. That was not the intention.

@GuardKenzie
Copy link
Owner

Amazing work and a good catch! I'll merge this now and release it alongside the updated bindings for chafa 1.16 when those are ready!

Also, really awesome you wrote a test for this too! Above and beyond!

Best,
Erica 🩵

@GuardKenzie GuardKenzie merged commit ddad0c2 into GuardKenzie:main May 27, 2025
7 checks passed
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