JSPM

eimgd

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q19638F
  • License MIT

Earth Image Downloader - Download and process Earth images with cross-platform support

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)

PyPI version NPM version Python versions License Downloads

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

  1. Get your API key:

    • Visit NASA API Portal
    • Click "Generate API Key"
    • Fill in your information
    • Copy your API key
  2. 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

๐Ÿ“ž Support

๐Ÿค Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Add tests for new functionality
  5. Run tests: python tests/test_basic.py
  6. Commit changes: git commit -m 'Add amazing feature'
  7. Push to branch: git push origin feature/amazing-feature
  8. 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 ๐ŸŒโœจ