mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:53:44 +08:00
1 parent
c51ae86876
commit
7bce701907
3 files changed
+23
-5
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user