feat(压缩能力): 修复版本压缩并优化资源扫描
build.yaml / build (push) Successful in 50s

This commit is contained in:
xiaoqidun committed 2026-10-12 16:39:05 +08:00
1 parent c51ae86876
commit 7bce701907
3 files changed
+23 -5

No files matched your search

+6
View File
@@ -61,6 +61,12 @@ func (r *Reader) compressionImagePlan(ctx context.Context, options CompressionOp
}
return nil, nil, err
}
if len(catalog) == 0 {
if document != r {
document.Close()
}
continue
}
var demands map[string]image.Point
masks, geometry, err := document.compressionImageSafety(ctx, catalog)
if err == nil && geometry {