Python 提高PIL中RGB的强度

Python 提高PIL中RGB的强度,python,colors,python-imaging-library,rgb,imaging,Python,Colors,Python Imaging Library,Rgb,Imaging,我有一个图像,我可以导入到我的终端和打印成4个不同的图片,原始,一个只有R,G和B显示。然而,我现在想做的是能够增加一个色带的强度,例如g*1.2(或者可以增加100个单位),然后能够在最后一个色带修改后将图像重新组合在一起。以下是我到目前为止的情况: from PIL import Image im = Image.open('RedSunset.jpg') #from _future_ import print_function print(im.format, im.size, im.m

我有一个图像,我可以导入到我的终端和打印成4个不同的图片,原始,一个只有R,G和B显示。然而,我现在想做的是能够增加一个色带的强度,例如g*1.2(或者可以增加100个单位),然后能够在最后一个色带修改后将图像重新组合在一起。以下是我到目前为止的情况:

from PIL import Image
im = Image.open('RedSunset.jpg')

#from _future_ import print_function
print(im.format, im.size, im.mode)

im.show()

rgbim = im.convert('RGB')
r, g, b = rgbim.split()
#im = Image.merge("RGB", (b, g, r)) #thinking of using this to put them back

b.show()
r.show()
g.show()