Skip to main content

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

ChannelParametersReturns
album-get-all-AlbumItem[]
album-get-fileid{ fileData, mimeType }
album-deleteidboolean
album-add-from-favoritefavoriteIdAlbumItem
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