Skip to content

Commit

Permalink
python-codecs: add missing band extraction named argument
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 18, 2023
1 parent 06ef146 commit a683951
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/python-codecs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/python-codecs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/python-codecs",
"version": "0.1.12",
"version": "0.1.13",
"description": "Python Codecs for Scrypted",
"keywords": [
"scrypted",
Expand Down
2 changes: 1 addition & 1 deletion plugins/python-codecs/src/vips.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def format():
elif options['format'] == 'rgb':
def format():
if vipsImage.vipsImage.hasalpha():
rgb = vipsImage.vipsImage.extract_band(0, vipsImage.vipsImage.bands - 1)
rgb = vipsImage.vipsImage.extract_band(0, n=vipsImage.vipsImage.bands - 1)
else:
rgb = vipsImage.vipsImage
mem = memoryview(rgb.write_to_memory())
Expand Down

0 comments on commit a683951

Please sign in to comment.