Commit Graph
6 Commits
Author SHA1 Message Date
Dominik Schmidt 17a9874be2 feat(webdav): make the Tika thumbnail preset configurable
OC_TIKA_THUMBNAIL_PRESET (WEBDAV_TIKA_THUMBNAIL_PRESET) names the catalog
preset webdav unpacks thumbnails with, "thumbnail" by default. A preset of
your own has to bring the same filter, only the raster images Tika marks as
THUMBNAIL or RENDERING, since webdav takes the first image in the answer.
An empty preset fails at startup.

Changing the preset needs the thumbnail cache emptied, as a Tika upgrade
does.
2026-12-02 16:22:19 +01:00
Dominik Schmidt 253b2d4d52 fix(webdav): key the source cache by extractor, keep no empty entry per size 2026-11-27 16:40:24 +01:00
Dominik Schmidt 31b6cf6bd9 docs(webdav): say how a Tika before 4.2.0 activates the preset
Both answer with the same image for the same file, only the package differs, and a 4.1.x server has no preview for erf, orf and rw2. The 404 now names both ways to activate the preset.
2026-11-27 16:38:29 +01:00
Dominik Schmidt 9dbe0b7956 feat(webdav): use Tika's merged thumbnail preset
Tika merged the thumbnail catalog preset and ThumbnailUnpackSelector
(TIKA-4856): PUT /unpack/preset/thumbnail returns exactly the one raster
image a client would show for the document, a stored thumbnail, the
rendering of a metafile thumbnail, or the rendered first page. The
client-side selection over /unpack/all (embedded-resource-type marks,
metafile renderings, id-path matching) moves to the server; the preset
zip carries one image without metadata sidecars, so the entry's
extension names the type and the bytes break the tie. The preset has to
be active, so this needs a Tika 4.2.0 or newer started with
TIKA_PRESETS=thumbnail, and a 404 says so.
2026-11-27 16:37:50 +01:00
Dominik Schmidt 69e13657e4 feat(webdav): take the thumbnail tika marks, and the rendering of a metafile 2026-11-27 16:37:41 +01:00
Dominik Schmidt 1c7b19f009 feat(webdav): thumbnails through a Tika server
Every file the built-in converters cannot render goes to /unpack/thumbnail
(Tika 4.1) and comes back with the image Tika marks as its thumbnail.
2026-11-27 16:36:39 +01:00