diff --git a/libs/indibase/indiccd.cpp b/libs/indibase/indiccd.cpp index 782582e940..3a9e8ca620 100644 --- a/libs/indibase/indiccd.cpp +++ b/libs/indibase/indiccd.cpp @@ -2456,7 +2456,10 @@ bool CCD::ExposureCompletePrivate(CCDChip * targetChip) if (targetChip->SendCompressed) { - image.setCompression(LibXISF::DataBlock::LZ4); + if(LibXISF::DataBlock::CompressionCodecSupported(LibXISF::DataBlock::ZSTD)) + image.setCompression(LibXISF::DataBlock::ZSTD); + else + image.setCompression(LibXISF::DataBlock::LZ4); image.setByteshuffling(targetChip->getBPP() / 8); }