mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
DNG and FITS previews showed "Preview not available" because their CLI decoders (ExifTool/ImageMagick) were not installed. Sharp can read both formats natively (DNG is TIFF-based, FITS via libvips fitsload). Added Sharp fallback to the preview endpoint, batch processing, and tool factory: when decodeToSharpCompat throws, try sharp(buffer).metadata() before returning 422. If Sharp can read the buffer, processing continues without the CLI decoder.