Skip to content

Migrate research images from external URLs to local storage#155

Merged
cgreene merged 7 commits intomainfrom
migrate-images-to-local
Jul 11, 2025
Merged

Migrate research images from external URLs to local storage#155
cgreene merged 7 commits intomainfrom
migrate-images-to-local

Conversation

@cgreene
Copy link
Member

@cgreene cgreene commented Jun 30, 2025

Attempt to get back to working images in the research page.

cgreene and others added 2 commits June 30, 2025 14:54
- 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
@github-actions
Copy link
Contributor

PR Preview Action v1.4.7
🚀 Deployed preview to https://greenelab.github.io/greenelab.com/preview/pr-155/
on branch gh-pages at 2025-06-30 20:57 UTC

cgreene and others added 5 commits June 30, 2025 15:26
- 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.
@cgreene cgreene merged commit bc33c83 into main Jul 11, 2025
@cgreene cgreene deleted the migrate-images-to-local branch July 11, 2025 12:27
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.

1 participant