mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-04-26 14:57:47 +00:00
✨ Major AI functionality improvements and documentation enhancements: 📏 Smart Image Compression: • Auto-detects large images (>5MB) and compresses to 2048px for optimal AI processing • Uses macOS native sips tool for quality resizing while preserving aspect ratio • Preserves original screenshots untouched while creating temporary compressed versions • Significantly improves AI analysis speed and reliability 🛠️ Enhanced Ollama Integration: • Fixed AppleScript file writing to handle large JSON payloads (replaces shell limitations) • Improved base64 encoding with newline removal for clean API calls • Added robust JSON response parsing with proper escape handling • Enhanced error handling for model availability and API connectivity 🎯 Argument Parsing Improvements: • Fixed flag parsing to properly handle --verbose --ask combinations • Added fullscreen mode support for --ask without app targeting • Improved app identifier resolution with fullscreen handling • Enhanced validation and error reporting 📖 Comprehensive README Enhancements: • Highlighted smart image resizing feature with technical details • Added complete step-by-step Ollama setup guide with multiple installation options • Enhanced model comparison table with sizes, strengths, and use cases • Added pro usage examples showcasing automatic compression benefits • Improved formatting with clear sections and visual highlights 🧪 AI Testing Validation: • All AI tests now passing with reliable Ollama API integration • Verified one-step and two-step AI analysis workflows • Confirmed smart compression works seamlessly with various image sizes 🚀 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
6 KiB
6 KiB