feat(cover): add thumbnail generation and serve via thumbnail endpoint

This commit is contained in:
neon
2026-01-01 21:43:48 -06:00
parent 57b58a9404
commit c4f521abf9
9 changed files with 38 additions and 6 deletions
@@ -20,7 +20,7 @@ const primaryFile = computed(() => props.book.files.find((f) => f.role === 'prim
// Only show format chips when there are multiple files
const extraFiles = computed(() => (props.book.files.length > 1 ? props.book.files : []))
const coverUrl = `/api/books/${props.book.id}/cover`
const coverUrl = `/api/books/${props.book.id}/thumbnail`
const coverLoaded = ref(false)
const coverFailed = ref(false)