Add ExifTool worker and Pinia store for off-thread metadata reads.

Warm up WASM in a dedicated worker with a tiny JPEG probe and expose init/read RPC to the main thread.
This commit is contained in:
2026-10-15 17:18:21 +02:00
parent 321c67fa3d
commit b47c5c7696
7 changed files with 240 additions and 0 deletions
@@ -0,0 +1,6 @@
import { base64ToBytes } from '@/utils/base64ToBytes';
const EXIFTOOL_WORKER_INIT_JPEG_BASE64 =
'/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////2wBDAf//////////////////////////////////////////////////////////////////////////////////////wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AL+AD//Z';
export const EXIFTOOL_WORKER_INIT_JPEG = base64ToBytes(EXIFTOOL_WORKER_INIT_JPEG_BASE64);