ENH: Add support for WebP#1111
Conversation
I'm less concerned about line coverage as I am about making sure the feature actually works as desired. For example, you could modify some |
|
@larsoner I'm a bit at a loss: tests run locally (Win10 / Python 3.10) without errors (218 passed out of 218 collected, nothing skipped). Do you happen to have any idea how to tackle this? Installed Pillow version is 9.4.0 on CI - the same as on my local machine. |
|
You incremented the file counter but I don't see a new example, did you forget a |
|
OMG, yes of course - there should be a |
42c1423 to
46e2501
Compare
and update docs on supported formats
|
Tests |
|
Wonderful @StefRe ! |
… to version 0.13.0 v0.13.0 ------- **Implemented enhancements:** - ENH: Create backreferences for default roles `#1122 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1122>`__ (`StefRe <https://github.com/StefRe>`__) - ENH raise error in check_jupyterlite_conf with unknown key `#1119 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1119>`__ (`lesteve <https://github.com/lesteve>`__) - ENH Add functionality to modify Jupyterlite notebooks based on their content `#1113 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1113>`__ (`lesteve <https://github.com/lesteve>`__) - ENH: Add support for WebP `#1111 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1111>`__ (`StefRe <https://github.com/StefRe>`__) **Fixed bugs:** - ENH Clean-up code by early initialization of sphinx_gallery_conf `#1120 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1120>`__ (`lesteve <https://github.com/lesteve>`__) - FIX JupyterLite button links `#1115 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1115>`__ (`lesteve <https://github.com/lesteve>`__) - Fix thumbnail text formatting `#1108 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1108>`__ (`StefRe <https://github.com/StefRe>`__) (NEWS truncated at 15 lines)
and update docs on supported formats.
WebP yields much smaller file sizes than optimized png in only very little more time. For the Matplotlib docs with 2637
sphx-glr...files I got the following results:My first thought was to integrate the
_KNOWN_IMG_EXTSlist into the docstring ofmatplotlib_scraperbut the only solution I found for it is https://stackoverflow.com/a/10308363/3944322 and I think it's a bit of overkill, isn't it?Do we need tests for it?
test_custom_scraper_thumbnail_alphacould be parameterized with_KNOWN_IMG_EXTSbut I'm not sure if this really gives more/better test coverage.Closes #1055