GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ben-blance/satish-image-format

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
production
production
 
 
README.md
README.md
 
 
images.jpeg
images.jpeg
 
 
prototype.py
prototype.py
 
 

Repository files navigation

SATISH Image Format

A custom image format with CLI and Python library support for encoding, decoding, viewing, and validating .satish files.

šŸ”§ Installation & Setup

Install in development mode:

# Navigate to your satish-format directory
cd satish-format/

# Install in development mode (creates the 'satish' command)
pip install -e .

šŸš€ CLI Usage Examples

1. Convert Images to SATISH Format

# Convert a single image
satish convert photo.jpg photo.satish

# Convert with specific output path
satish convert /path/to/image.png /path/to/output.satish

# Overwrite existing files
satish convert image.jpg output.satish --overwrite

2. Convert SATISH Back to Standard Images

# Convert SATISH to PNG
satish convert photo.satish photo.png

# Convert to JPEG with quality setting
satish convert photo.satish photo.jpg --quality 90

3. View SATISH Images

# Display a SATISH image
satish view photo.satish

# View without showing file info
satish view photo.satish --no-info

4. Get File Information

# Basic file info
satish info photo.satish

# Show more pixel details
satish info photo.satish --hex-preview 10

# Show raw header bytes
satish info photo.satish --show-header

5. Validate Files

# Basic validation
satish validate photo.satish

# Strict validation mode
satish validate photo.satish --strict

6. Batch Convert Multiple Files

# Convert all JPGs in current directory
satish batch *.jpg --output-dir satish_files/

# Parallel processing for faster conversion
satish batch *.jpg *.png --parallel --workers 8

# Add suffix to output files
satish batch photos/*.jpg --suffix "_converted" --output-dir output/

šŸ“‹ Complete Command Reference

Global Options

satish --help         # Show help
satish --version      # Show version
satish --verbose      # Enable verbose output

Convert Command

satish convert INPUT OUTPUT [OPTIONS]

Options:
  --quality INT       Output quality for lossy formats (1-100)
  --overwrite         Overwrite existing output file

View Command

satish view FILE [OPTIONS]

Options:
  --no-info           Don't show image information

Info Command

satish info FILE [OPTIONS]

Options:
  --hex-preview INT   Number of pixels to show in hex (default: 5)
  --show-header       Show raw header bytes

Validate Command

satish validate FILE [OPTIONS]

Options:
  --strict            Use strict validation mode

Batch Command

satish batch FILES... [OPTIONS]

Options:
  --output-dir, -o DIR    Output directory (default: current)
  --suffix TEXT           Suffix to add to filenames
  --parallel, -p          Enable parallel processing
  --workers INT           Number of worker processes (default: 4)

šŸŽÆ Real-World Usage Examples

Convert a Photo Collection

satish batch ~/Photos/*.jpg --output-dir ~/SatishPhotos/ --parallel

# Convert with progress tracking
satish batch vacation/*.* --output-dir satish/ --verbose

Quality Comparison

satish convert large_image.png compressed.satish
satish info compressed.satish

Validation Workflow

for file in *.satish; do
    echo "Checking $file..."
    satish validate "$file" --strict
done

šŸ› ļø Troubleshooting

Command Not Found

pip install -e .
which satish
python -m satish.cli.main --help

Import Errors

pip install -r requirements.txt
python -c "import satish; print('OK')"

Permission Issues

pip install --user -e .

šŸ“Š Example Workflow

satish batch *.jpg --output-dir satish_images/ --parallel
ls satish_images/
satish info satish_images/photo.satish --hex-preview 3
satish view satish_images/photo.satish
satish convert satish_images/photo.satish verification.png
satish validate satish_images/*.satish

🧱 Project Structure

satish-format/
ā”œā”€ā”€ README.md
ā”œā”€ā”€ setup.py
ā”œā”€ā”€ requirements.txt
ā”œā”€ā”€ satish/
│   ā”œā”€ā”€ __init__.py
│   ā”œā”€ā”€ core/
│   │   ā”œā”€ā”€ __init__.py
│   │   ā”œā”€ā”€ format.py
│   │   ā”œā”€ā”€ encoder.py
│   │   ā”œā”€ā”€ decoder.py
│   │   └── validator.py
│   ā”œā”€ā”€ utils/
│   │   ā”œā”€ā”€ __init__.py
│   │   ā”œā”€ā”€ colors.py
│   │   ā”œā”€ā”€ file_utils.py
│   │   └── exceptions.py
│   └── cli/
│       ā”œā”€ā”€ __init__.py
│       ā”œā”€ā”€ commands.py
│       └── main.py
ā”œā”€ā”€ tests/
│   ā”œā”€ā”€ __init__.py
│   ā”œā”€ā”€ test_core/
│   │   ā”œā”€ā”€ test_encoder.py
│   │   ā”œā”€ā”€ test_decoder.py
│   │   └── test_format.py
│   └── test_utils/
│       ā”œā”€ā”€ test_colors.py
│       └── test_file_utils.py
ā”œā”€ā”€ examples/
│   ā”œā”€ā”€ basic_usage.py
│   ā”œā”€ā”€ batch_convert.py
│   └── custom_metadata.py
└── docs/
    ā”œā”€ā”€ format_spec.md
    ā”œā”€ā”€ api_reference.md
    └── examples.md

šŸ“š Python Library Example

from satish import SatishEncoder, SatishDecoder

encoder = SatishEncoder()
success = encoder.encode_image('images.jpeg', 'test.satish')
print(f"Encoding successful: {success}")

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.