8000
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 3eff2c7 commit 3c92762Copy full SHA for 3c92762
CHANGELOG.rst
@@ -5,6 +5,7 @@
5
- improve generation of `enums.py`
6
- add `stream.py` example
7
- fix a missing reference issue with custom sources
8
+- fix `addalpha` with scrgb images [RiskoZoSlovenska]
9
10
## Version 2.2.2 (released 4 Jan 2023)
11
pyvips/vimage.py
@@ -1886,6 +1886,8 @@ def addalpha(self):
1886
"""Add an alpha channel."""
1887
if self.interpretation == 'grey16' or self.interpretation == 'rgb16':
1888
max_alpha = 65535
1889
+ elif self.interpretation == 'scrgb':
1890
+ max_alpha = 1.0
1891
else:
1892
max_alpha = 255
1893
return self.bandjoin(max_alpha)
0 commit comments