Package Exports
- eimgd
- eimgd/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eimgd) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
๐ Earth Image Downloader (eimg)
A secure, feature-rich command-line tool and web application to download stunning Earth images from NASA's EPIC API (Earth Polychromatic Imaging Camera).
๐ Quick Start
Installation
# Python package
pip install eimg
# NPM package
npm i eimgd
# With web interface
pip install eimg[web]
# With video processing capabilities
pip install eimg[video]
# Full installation with all features
pip install eimg[all]
Get Started in 30 seconds
# 1. Get your free NASA API key at https://api.nasa.gov/
# 2. Setup eimg
eimg setup
# 3. Download your first Earth image
eimg download
# 4. Launch the web interface
eimg web
๐ NASA API Key Setup
Get your API key:
- Visit NASA API Portal
- Click "Generate API Key"
- Fill in your information
- Copy your API key
Configure eimg:
eimg setup # Enter your API key when prompted # Optional: Enable encryption for extra security
โจ Features
๐ฅ๏ธ Command Line Interface
- ๐ฅ Smart Downloads: Latest images, batch downloads, date ranges
- ๐จ Image Processing: Brightness, contrast, saturation, sharpness adjustments
- ๐ Advanced Filters: Blur, sharpen, edge enhance, emboss, and more
- ๐ท๏ธ Watermarks: Add custom text with flexible positioning
- ๐ฌ Timelapse Creation: Generate GIF and MP4 animations
- โญ Favorites System: Save and organize your favorite images
- ๐ Smart Search: Find images by date, metadata, or keywords
- ๐ Usage Analytics: Track downloads, cache usage, and statistics
๐ Web Interface
- ๐ฑ Responsive Design: Works on desktop, tablet, and mobile
- ๐๏ธ Interactive Dashboard: Real-time stats and quick actions
- ๐ผ๏ธ Image Gallery: Browse, preview, and manage your collection
- ๐ Progress Tracking: Live download progress indicators
- โ๏ธ Settings Panel: Configure preferences through UI
๐ Security & Privacy
- ๐ API Key Encryption: Optional password-protected encryption
- ๐๏ธ Secure Deletion: Overwrite files when clearing cache
- โ Input Validation: Comprehensive security checks
- ๐ก๏ธ Safe URLs: Validate all external connections
๐พ Smart Caching
- ๐ผ๏ธ Thumbnails: Fast image previews
- ๐ฆ Metadata Storage: Efficient data organization
- ๐งน Auto Cleanup: Configurable cache management
- ๐ Usage Tracking: Monitor cache size and performance
๐ค Automation
- ๐ป Daemon Mode: Background auto-downloading
- โฐ Scheduled Downloads: Configurable intervals
- ๐ค Data Export: Backup your collection
- ๐ฅ Data Import: Restore from backups
๐ Usage Examples
Basic Operations
# Download the latest Earth image
eimg download
# Download with image enhancements
eimg download --enhance --brightness 1.3 --contrast 1.2
# Download to specific directory
eimg download --directory ./earth-images --output earth-today.png
Batch Operations
# Download images for a date range
eimg batch --start-date 2025-01-01 --end-date 2025-01-07
# Create a timelapse video
eimg batch --start-date 2025-01-01 --end-date 2025-01-07 \
--create-timelapse --format mp4 --fps 10
# Download with custom output directory
eimg batch --start-date 2025-01-01 --end-date 2025-01-07 \
--output-dir ./january-2025
Image Processing
# Apply filters to existing images
eimg process image.png --filter sharpen --output sharp-image.png
eimg process image.png --filter blur --output blurred-image.png
# Add watermarks
eimg process image.png --watermark "Earth ยฉ NASA" \
--watermark-position bottom-right
# Enhance images
eimg process image.png --brightness 1.5 --contrast 1.3 \
--saturation 1.2 --sharpness 1.1
Management & Monitoring
# View system statistics
eimg stats
# Check system health
eimg doctor
# Manage favorites
eimg favorite ./earth-images/beautiful-earth.png
eimg favorites
# Search your collection
eimg search --query "2025-01"
# Cache management
eimg cache # View cache statistics
eimg clear --type images # Clear image cache
Automation & Advanced Features
# Run as background daemon
eimg daemon --auto-download --interval 3600 --max-downloads 24
# Export your collection
eimg export --include-images --output my-earth-collection.zip
# Import from backup
eimg import-data earth-backup.zip
# Web interface with custom settings
eimg web --port 8080 --host 0.0.0.0 --debug
๐ Web Interface
Start the web interface:
eimg web
Then open your browser to http://localhost:5000
Web Features:
- ๐ Dashboard: Overview of your collection and quick actions
- ๐ผ๏ธ Gallery: Browse and manage your Earth images
- โญ Favorites: Easy favorite management with visual interface
- ๐จ Processing: Apply filters and enhancements through web UI
- ๐ Analytics: Visual statistics and usage charts
- โ๏ธ Settings: Configure all options through web interface
๐ Links & Resources
- ๐ Bug Reports: GitHub Issues
- ๐ก Feature Requests: GitHub Discussions
- ๐ Documentation: Project Wiki
- ๐ NASA EPIC: Official EPIC Website
- ๐ NASA API: NASA API Portal
๐ Support
- ๐ง Email: dev@sxscli.com
- ๐ฌ Discussions: GitHub Discussions
- ๐ฆ Twitter: @StasX_Official
๐ค Contributing
We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Make your changes
- Add tests for new functionality
- Run tests:
python tests/test_basic.py
- Commit changes:
git commit -m 'Add amazing feature'
- Push to branch:
git push origin feature/amazing-feature
- Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- NASA for providing the incredible EPIC API
- Earth Polychromatic Imaging Camera team for the amazing imagery
- Open Source Community for the excellent tools and libraries
- Contributors who help improve this project
Made with โค๏ธ by Kozosvyst Stas (STASX)
Download the beauty of Earth, one image at a time ๐โจ