Media Management
TractStack provides comprehensive media management through the Images section in StoryKeep, allowing you to upload, organize, and manage all media files used across your site.
Media Storage System
Section titled “Media Storage System”File Storage Location
Section titled “File Storage Location”Development: ~/t8k/t8k-go-server/config/default/media/
Production: /home/t8k/t8k-go-server/config/default/media/
Directory Structure
Section titled “Directory Structure”media/├── images/ # Uploaded images├── css/ # Generated stylesheets└── uploads/ # User uploads
Supported File Types
Section titled “Supported File Types”Image Formats
Section titled “Image Formats”Primary formats:
- JPG/JPEG: Photographic images, complex color images
- PNG: Images with transparency, simple graphics
- GIF: Animated images, simple graphics
- SVG: Vector graphics, logos, icons
- WebP: Modern format for optimized web delivery
File Size Considerations
Section titled “File Size Considerations”Upload limits:
- Maximum file size determined by system configuration
- Automatic optimization for web delivery
- Format conversion for performance
Image Upload Process
Section titled “Image Upload Process”Basic Upload
Section titled “Basic Upload”- Access media management: Navigate to Content → Manage Content → Images
- Upload interface: Use drag-and-drop or file browser
- File processing: Automatic optimization and format handling
- Media library: Images appear in site-wide registry
Bulk Upload
Section titled “Bulk Upload”- Multiple file selection: Upload several images simultaneously
- Progress tracking: Monitor upload status for each file
- Error handling: Clear feedback for failed uploads
Image Optimization
Section titled “Image Optimization”Automatic Processing
Section titled “Automatic Processing”TractStack automatically optimizes uploaded images:
- Compression: Reduce file sizes without visible quality loss
- Format selection: Choose optimal format for each image
- Responsive sizing: Generate multiple sizes for different screen densities
Web Performance
Section titled “Web Performance”Optimization features:
- Next-gen formats: WebP and AVIF when supported
- Lazy loading: Images load as needed during page scroll
- Responsive delivery: Appropriate image size for device
- CDN integration: Fast delivery through content networks
Media Organization
Section titled “Media Organization”Site-Wide Registry
Section titled “Site-Wide Registry”The Images section provides:
- Complete media library: All uploaded images and files
- Usage tracking: See where images are used across the site
- File information: Size, format, upload date, dimensions
File Management
Section titled “File Management”Available actions:
- Preview: View images within the interface
- Download: Retrieve original files
- Replace: Update files while maintaining links
- Delete: Remove unused media (with usage verification)
Integration with Content
Section titled “Integration with Content”Image Usage in Pages
Section titled “Image Usage in Pages”Pane integration:
- Image panes: Dedicated image content sections
- Inline images: Images within text content
- Background images: Visual design elements
- Social images: Open graph and sharing images
Responsive Image Delivery
Section titled “Responsive Image Delivery”Automatic adaptation:
- Screen size: Appropriate image dimensions
- Device pixel density: Retina and high-DPI display support
- Connection speed: Optimized delivery based on bandwidth
- Format support: Modern formats for compatible browsers
Brand Asset Management
Section titled “Brand Asset Management”Logo and Brand Images
Section titled “Logo and Brand Images”Special handling for brand assets:
- Logo files: Primary brand identity images
- Wordmark: Text-based logo variants
- Favicon: Browser tab icons
- Social images: Default sharing images
Asset Optimization
Section titled “Asset Optimization”Brand assets receive special optimization:
- SVG preservation: Vector graphics maintain scalability
- Multi-format delivery: Fallbacks for older browsers
- Size optimization: Minimal file sizes for fast loading
Media Analytics
Section titled “Media Analytics”Usage Tracking
Section titled “Usage Tracking”Monitor media performance:
- View frequency: How often images are displayed
- Page association: Which pages use specific images
- Performance impact: Loading time and user experience effects
Storage Management
Section titled “Storage Management”File system monitoring:
- Storage usage: Track total media storage consumption
- File organization: Identify unused or duplicate files
- Cleanup suggestions: Remove orphaned media files
File Permissions and Security
Section titled “File Permissions and Security”Development Environment
Section titled “Development Environment”File permissions:
chmod -R 755 ~/t8k/t8k-go-server/config/default/media/
Production Environment
Section titled “Production Environment”Secure file handling:
sudo chown -R t8k:t8k /home/t8k/t8k-go-server/config/default/media/sudo chmod -R 755 /home/t8k/t8k-go-server/config/default/media/
Security Considerations
Section titled “Security Considerations”File security measures:
- Type validation: Only allow safe file formats
- Size limits: Prevent excessive file uploads
- Access control: Secure file serving
- Malware scanning: Protect against malicious uploads
Multi-Tenant Media
Section titled “Multi-Tenant Media”Tenant Isolation
Section titled “Tenant Isolation”For multi-tenant installations:
- Separate storage: Each tenant has isolated media directory
- Access control: Tenants can only access their own media
- Storage quotas: Configurable limits per tenant
Shared Resources
Section titled “Shared Resources”Global media assets:
- System images: Shared brand and interface elements
- Template assets: Common design elements
- Fallback images: Default images when tenant assets unavailable
Backup and Recovery
Section titled “Backup and Recovery”Media Backup
Section titled “Media Backup”Backup strategies:
- Regular automated backups: Scheduled media file backups
- Version control: Track changes to important brand assets
- Disaster recovery: Restore procedures for media loss
File Recovery
Section titled “File Recovery”Recovery options:
- Individual file restore: Recover specific lost images
- Bulk restoration: Restore entire media libraries
- Version rollback: Return to previous file versions
Performance Optimization
Section titled “Performance Optimization”Delivery Optimization
Section titled “Delivery Optimization”Content delivery strategies:
- CDN integration: Global content distribution
- Caching headers: Browser and server-side caching
- Compression: Optimal file size reduction
- Format serving: Best format for each browser
Load Performance
Section titled “Load Performance”Site speed optimization:
- Image lazy loading: Load images as needed
- Critical path optimization: Prioritize above-fold images
- Progressive loading: Show low-quality images while high-quality loads
Effective media management ensures fast-loading, visually appealing content while maintaining organized file systems and optimal performance across all devices.