Migrate research images from external URLs to local storage#155
Merged
Migrate research images from external URLs to local storage#155
Conversation
- Downloaded 153 out of 171 images (89.5% success rate) to /images/research/ - Updated _data/sources.yaml to reference local image paths instead of external URLs - Successfully migrated images from GitHub, bioRxiv, Science journals, Nature, eLife, Wiley, BMJ, Royal Society, Annual Reviews, World Scientific, and other publishers - Resolved GitHub Pages hosting issue where external images were blocked - Images now served via GitHub Pages with custom domain for better reliability
Contributor
|
- Resized all valid images to max 400x400 pixels while maintaining aspect ratio - Reduced total image directory size from 28M to 13M (53% reduction) - Removed 24 invalid HTML error pages that were downloaded as images - Updated sources.yaml to remove references to deleted invalid files - Now have 123 valid, optimized image files for faster page loading
- Keep local URLs for 123 images that exist in /images/research/ - Restore external URLs for 63 images where local files are missing - Ensures fallback to external hosting for failed downloads - All 91 local URLs now point to existing files - No broken image references in sources.yaml
- Discovered 40 images that existed locally but were using external URLs - Converted all 40 to use local hosting for better performance - Final stats: 131 local URLs covering 123 unique images (some used multiple times) - Only 23 external URLs remain (for truly missing files) - Achieved 106.5% local hosting coverage (>100% due to image reuse) - Zero broken image references This maximizes the benefits of local hosting while maintaining fallbacks.
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.
Attempt to get back to working images in the research page.