All tools, scripts, and utilities available in PixelProbe v2.5.57+.
Note: Database migrations run automatically on application startup via
app_startup_migration.py. No manual intervention is required.
Purpose: Emergency database schema fix script
Usage:
python3 scripts/fix_database_schema.pyWhen to use: When database schema is corrupted or out of sync
Purpose: Verify database integrity and consistency
Usage:
python3 scripts/check_db_integrity.pyPurpose: Create performance indexes on database tables
Usage:
python3 scripts/create_indexes.pyPurpose: Test database connection and basic operations
Usage:
python3 scripts/test_database.pyPurpose: Create a test database with sample data
Usage:
python3 scripts/create_test_database.py --num-files 1000These tools fix common false positives in media file corruption detection:
Purpose: Fix H.264/H.265 NAL unit false positives
Fixes: "NAL unit" warnings in video files
Purpose: Batch fix all NAL unit warnings
Purpose: Reset NAL-flagged files for re-scanning
Purpose: Fix HEIF/HEIC tile data warnings
Purpose: Fix GIF header validation false positives
Fixes: "Invalid GIF header" errors
Purpose: Fix WebP EXIF metadata false positives
Fixes: "Invalid WebP EXIF" warnings
Purpose: Fix ImageMagick color profile warnings
Purpose: Fix UTF-8 encoding errors in image metadata
Purpose: Analyze patterns in GIF header errors
Output: Statistics and patterns of GIF errors
Purpose: Analyze WebP file errors and patterns
Purpose: Manually add missing database columns
Purpose: Add warning tracking columns to database
Purpose: Add scan cancellation tracking columns
Purpose: Set up and run PixelProbe locally for development
Usage:
./scripts/setup_and_run_local.shPurpose: Run the modern UI in development mode
Purpose: Run UI with test fixtures
Purpose: Run modern UI in Docker container
Usage:
./scripts/docker-run-modern.shPurpose: Download test media samples for testing
Usage:
python3 tests/fixtures/media_samples/download_missing_samples.pyPurpose: Main application tests
Purpose: Media checking engine tests
Purpose: Tests with real media files
Purpose: Scheduled scan tests
Purpose: Bulk reporting functionality tests
tests/integration/test_api_endpoints.py- API endpoint teststests/integration/test_scan_execution.py- Scan execution teststests/integration/test_admin_endpoints.py- Admin API teststests/integration/test_maintenance_endpoints.py- Maintenance API tests
tests/unit/test_scan_service.py- Scan service unit teststests/unit/test_stats_service.py- Statistics service teststests/unit/test_repositories.py- Repository pattern tests
Purpose: Delete files listed in a CSV export
Usage:
./tools/delete_files_from_csv.sh corrupted_files.csv** Warning:** This permanently deletes files!
Purpose: Direct database reset of NAL-flagged files
Purpose: Runtime patches for v2.2.47 connection issues
Applied: Automatically on startup
Fixes: Connection pooling, transaction recovery
-
Fix false positives:
python3 tools/fix_nal_warnings.py python3 tools/fix_gif_header_false_positives.py
-
Check database health:
python3 scripts/check_db_integrity.py
-
Create test database:
python3 scripts/create_test_database.py
-
Run tests:
pytest tests/
Most scripts respect these environment variables:
POSTGRES_HOST- PostgreSQL host (default: localhost)POSTGRES_PORT- PostgreSQL port (default: 5432)POSTGRES_DB- Database name (default: pixelprobe)POSTGRES_USER- Database user (default: pixelprobe)POSTGRES_PASSWORD- Database passwordSECRET_KEY- Flask secret key
Production Ready:
- All migration scripts
- Database integrity checks
- False positive fixes
Development Only:
- Test database creators
- UI development scripts
- Local setup scripts
Use with Caution:
delete_files_from_csv.sh- Deletes actual files- Direct database manipulation scripts
For issues with any script:
- Check the script's docstring for usage
- Run with
--helpflag if available - Check logs in
/app/instance/logs/ - Report issues at https://github.com/ttlequals0/PixelProbe/issues