- Smart PSD Parsing: Automatically parse layers, slices, groups, and text from Photoshop files
- Batch Export: Support multi-scale exports (1x, 2x, 4x)
- Project Management: Complete project lifecycle management
- Real-time Preview: Layer preview and property viewing
- Incremental Updates: Smart export based on content hash, only exporting changed content
- Batch Operations: Support batch selection, deletion, and export
- File Tracking: Export history and file change detection
- Multi-format Support: Support for PSD and PSB file formats
# Pull and run the pre-built image from Docker Hub
docker run -d \
-p 4567:4567 \
-v /path/to/data:/data \
mark24code/sliceway:latest# Install all dependencies and initialize database
rake project:init# Start Sinatra server (port 4567)
rake server:start# Start frontend development server (port 5173)
rake server:frontend- Frontend Interface: http://localhost:5173
- Backend API: http://localhost:4567
cd frontend
npm run buildRACK_ENV=production bundle exec ruby app.rbdocker build -t sliceway:1.0.0 -t sliceway:latest .Linux/MacOS
docker run -d \
--name sliceway \
-p 4567:4567 \
-v /path/to/data:/data \
mark24code/sliceway:latestWindows
docker run -d ^
-p 4567:4567 ^
-v "C:\path\to\exports:/data" ^
mark24code/sliceway:latest- Uploaded Files:
/data/uploads - Exported Files:
/data/exports - Database:
/data/db - Processed Files:
/data/public/processed
For better parsing results, it's recommended to pre-process your PSD files using Photoshop scripts before uploading:
-
Run the Layer Processing Script
- Use script:
ps-plugins/convert_effects_to_smart_object/convert_effects_to_smart_object.jsx - This script converts layer effects to smart objects for better compatibility
- Use script:
-
How to Run Photoshop Scripts
- Open your PSD file in Photoshop
- Go to menu:
File→Scripts→Browse... - Select and import the
.jsxscript file mentioned above - Wait for the script to complete execution
-
Save the Processed File
- Save the processed PSD file as a copy
- Upload this copy to the platform
Note: While pre-processing is optional, it's highly recommended for PSD files with complex effects to ensure optimal parsing and export results.
- Open the frontend interface
- Click "New Project" button
- Upload PSD/PSB file (preferably pre-processed)
- Set project name and export path
- System automatically parses PSD files
- View parsed layers, slices, and groups
- Support filtering and search by type
- Select layers to export
- Set export scales (1x, 2x, 4x)
- Click export button
- Exported images saved to specified directory
- Support multi-project batch deletion
- Status-aware confirmation dialogs
- Real-time progress display
# Server Configuration
RACK_ENV=production
UPLOADS_PATH=/data/uploads
PUBLIC_PATH=/data/public
DB_PATH=/data/db/production.sqlite3
EXPORTS_PATH=/data/exports
STATIC_PATH=/app/dist- Backend Service: 4567
- Frontend Development: 5173
- Docker Container: 4567
- Ruby 3.0+
- Node.js 18+
- SQLite3
- Docker 20.10+
- 2GB+ RAM
- 10GB+ Disk Space
- Port Conflicts: Check if ports 4567 and 5173 are occupied
- File Permissions: Ensure data directories have read/write permissions
- Insufficient Memory: Ensure enough memory when processing large files
DEBUG=true bundle exec ruby app.rbMade with ❤️ for designers and developers