Skip to content

Add pillow-lunasvg to third-party plugins list - #10016

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
Maksim-Burtsev:add-pillow-lunasvg
Sep 18, 2026
Merged

radarhere merged 1 commit into
python-pillow:mainfrom
Maksim-Burtsev:add-pillow-lunasvg

Conversation

@Maksim-Burtsev

@Maksim-Burtsev Maksim-Burtsev commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

I wrote a plugin that lets Pillow open SVG files. It wraps LunaSVG, and importing pillow_lunasvg registers the loader. The wheels are self-contained, so there's no cairo to install.

It's read-only and doesn't do filters or animation. For the icons and logos people ask about in #3509 it should be enough.

@radarhere

Copy link
Copy Markdown
Member

It looks like you created and released the plugin today. Are you sure you wouldn't like to test it a bit first?

@Maksim-Burtsev

Copy link
Copy Markdown
Contributor Author

Fair question. It is new on PyPI, yes. Before releasing I ran it against resvg's test suite (about 1,300 files) and a few thousand icons from simple-icons, and compared the output pixel for pixel with LunaSVG's own svg2png. The script and results are in the repo. CI builds and tests the wheels on Linux, macOS and Windows.

The LunaSVG author has already added it to the list of projects in their README (sammycage/lunasvg#273).

It's not my first binding either. I did similar-rs for the Rust similar crate (linked upstream in mitsuhiko/similar#103) and pyjpegli for jpegli (google/jpegli#250, waiting in their queue). I just enjoy doing these.

If you'd still prefer to wait, no problem at all. Should I ping here again in a couple of weeks?

@radarhere

Copy link
Copy Markdown
Member

No, that's fine. Thanks for the extra information.

@radarhere
radarhere merged commit ec16a57 into python-pillow:main Sep 18, 2026
8 checks passed
@hugovk

hugovk commented Sep 18, 2026

Copy link
Copy Markdown
Member

@Maksim-Burtsev btw, if you'd be interested in a Framework :: Pillow Trove classifier, leave a comment at:

#8892

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants