Localize tutorial card images and convert to WebP - #257
Merged
Conversation
Replaces all external image URLs in the learn page tutorial cards with local WebP files. 4 of the 8 external URLs were already returning 404 (scanpy-tutorials.readthedocs.io and squidpy.readthedocs.io images); the muon-tutorials and scirpy ones still worked but were fragile. Also converts the 4 pre-existing PNG learn images to WebP and expands the pre-commit convert-to-webp hook to cover static/img/learn/ so future additions are handled automatically. Closes #21
✅ Deploy Preview for jade-cajeta-1bcca0 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Member
Author
|
This comes at the slight cost of us potentially having to update images in two places but I think it's safer. |
flying-sheep
approved these changes
Aug 11, 2026
flying-sheep
left a comment
Member
There was a problem hiding this comment.
nice! I only did blog at first now since those were huge photographs, but this makes a lot of sense!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #21.
What
Replaces all 10 external image URLs in the learn page tutorial cards with local WebP files stored in
static/img/learn/. Also converts the 4 pre-existing PNGs in that directory to WebP.Why
scanpy-tutorials.readthedocs.io,squidpy.readthedocs.ioimages)Also
Expands the
convert-to-webppre-commit hook fromstatic/img/blog/to also coverstatic/img/learn/, so future image additions are converted automatically.