Commit graph

4 commits

Author SHA1 Message Date
DJP
7d1cd03a32 Add multi-user support with 24-hour image expiration
Implemented complete session management system for multiple users:

**New Features:**
- Isolated user sessions with unique session IDs
- File-based image storage (not in PHP session)
- Automatic 24-hour image expiration
- Session directories: uploads/sessions/{session_id}/
- Images stored with metadata (creation time, expiry, MIME type)

**New Files:**
- session_manager.php - Complete session management class
- cleanup.php - Cron script to delete expired images
- uploads/.htaccess - Security: prevent direct file access

**Updated Files:**
- api.php - Uses SessionManager for file-based storage
- index.php - Loads images from disk via SessionManager
- .gitignore - Exclude user uploads from repository

**Usage:**
- Each user gets isolated session automatically
- Images auto-delete after 24 hours
- Run cleanup.php via cron: `0 * * * * php cleanup.php`

**Security:**
- Session IDs regenerated on first access
- Upload directory protected by .htaccess
- User images isolated by session

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2025-12-16 08:56:26 -05:00
DJP
bf5fa7fd48 Add all 40+ cinematography application presets
Complete integration of prompt studio with full preset library:

- Added 40+ application/lighting presets across all categories
- Studio & Portrait (2)
- Product & Macro (5)
- Outdoor & Natural (3)
- Action & Motion (1)
- Creative & Artistic (6)
- Auteur Styles (9)
- Professional Production (6)
- Editorial & Fashion (4)
- Documentary & Journalism (3)
- Architectural & Interior (2)

All lighting physics data now matches original React app.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2025-12-16 08:44:06 -05:00
DJP
0271c2bb8f Add Cinematography Prompt Studio integration
- Created enhance_prompt.php API endpoint for AI prompt enhancement
- Integrated cinematography controls into main UI
- Added camera body, lens kit, and lighting application selections
- Implemented creative freedom slider for prompt customization
- Enhanced prompts now auto-fill into image generation form
- Seamless workflow: enhance prompt → generate image

Features:
- Real camera physics (Arri Alexa 35, Sony Venice 2, etc.)
- Professional lens characteristics (Cooke, Panavision, Canon K-35)
- Lighting presets (Golden Hour, Blue Hour, Neon Cyberpunk, etc.)
- Gemini AI integration for prompt optimization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2025-12-16 08:40:35 -05:00
DJP
4deed84ba0 Initial commit: Nano AI Image Generator
- Complete working image generation app using Imagen 3
- PHP backend with Gemini API integration
- Dark themed UI with prompt enhancement
- Session management and logging system

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2025-12-16 08:35:02 -05:00