Skip to content

Commit d11e3e2

Browse files
committed
fix bandrank
We were not forming the argument image list correctly. see #195
1 parent a95fbcb commit d11e3e2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ All notable changes to `:vips` will be documented in this file.
66

77
- improve FFI startup [West14]
88
- revise example use of composer [jcupitt]
9+
- fix bandrank [axkirillov]
910

1011
## 2.1.1 - 2022-11-13
1112

src/Image.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,11 @@ public function bandrank($other, array $options = []): Image
18851885
$other = (array) $other;
18861886
}
18871887

1888-
return VipsOperation::call('bandrank', $this, $other, $options);
1888+
return VipsOperation::call(
1889+
'bandrank',
1890+
null,
1891+
[array_merge([$this], $other)],
1892+
$options);
18891893
}
18901894

18911895
/**

0 commit comments

Comments
 (0)