4 Commits

Author SHA1 Message Date
chenpei
3bac4f0e11 fix: Remove thumbnailData reference (TypeScript error)
- ag-psd type definition doesn't include thumbnailData
- Simplified error handling for missing composite image data
- Fixes build error during Docker deployment
2025-10-26 17:30:42 +08:00
chenpei
ab66b8cf72 fix: Add canvas support for PSD preview generation
- Add canvas as optional dependency in package.json
- Install canvas system dependencies in Dockerfile (cairo, pango, etc.)
- Initialize canvas in psd-processor with fallback support
- Add detailed logging for PSD processing
- Support both composite image data and thumbnail fallback
- Canvas will be available in Docker environment but optional locally
2025-10-26 16:42:00 +08:00
chenpei
0666edc4a8 feat: Update preview image dimensions to 300x500
- Modify PSD processor to crop long images to top 1200px
- Update image processor to support maxHeight parameter (1000px)
- Change homepage card height from 300px to 500px
- Update upload API to use new image processing parameters
- Support vertical/portrait images better with 300x500 display
2025-10-26 16:15:14 +08:00
chenpei
e69f15337d feat: Add automatic PSD preview generation
- Add psd-processor library to auto-generate previews from PSD files
- Update upload API to detect PSD files and generate previews automatically
- Make preview image optional for PSD file uploads
- Update UploadModal UI to show PSD files don't require manual preview upload
- Install ag-psd package for PSD processing
2025-10-26 15:49:33 +08:00