Album Module
The album module manages image collections and screenshots.
Data Structure
interface AlbumItem {
id: string
name: string // Image name
filePath: string // File path
thumbnailData: string // Thumbnail base64
width: number // Original width
height: number // Original height
fileSize: number // File size
source?: 'screenshot' | 'favorite' | 'manual' // Source
favoriteId?: string // Associated favorite ID
tags?: string[] // Tags
createdAt: string
}
IPC Channels
| Channel | Parameters | Returns |
|---|---|---|
album-get-all | - | AlbumItem[] |
album-get-file | id | { fileData, mimeType } |
album-delete | id | boolean |
album-add-from-favorite | favoriteId | AlbumItem |
album-get-attachments-meta | - | Map<id, meta> |
Features
- Grid layout thumbnail display
- Fullscreen preview (zoom/page-flip)
- Import images from favorites
- Right-click delete
- Sort by time