mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Ensure tile overlap option works as expected (#1921)
This commit is contained in:
committed by
Lovell Fuller
parent
ca52894651
commit
d5b7040557
@@ -575,7 +575,7 @@ function tile (options) {
|
||||
if (options.overlap > this.options.tileSize) {
|
||||
throw is.invalidParameterError('overlap', `<= size (${this.options.tileSize})`, options.overlap);
|
||||
}
|
||||
this.options.tileOverlap = tile.overlap;
|
||||
this.options.tileOverlap = options.overlap;
|
||||
} else {
|
||||
throw is.invalidParameterError('overlap', 'integer between 0 and 8192', options.overlap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user