We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a1eca commit ae835d2Copy full SHA for ae835d2
nibabel/loadsave.py
@@ -78,7 +78,7 @@ def guessed_image_type(filename):
78
raise ImageFileError(f'Cannot work out file type of "{filename}"')
79
80
81
-def save(img, filename):
+def save(img, filename, **kwargs):
82
""" Save an image to file adapting format to `filename`
83
84
Parameters
@@ -96,7 +96,7 @@ def save(img, filename):
96
97
# Save the type as expected
98
try:
99
- img.to_filename(filename)
+ img.to_filename(filename, **kwargs)
100
except ImageFileError:
101
pass
102
else:
0 commit comments