似乎将图像尺寸调整为较小的缩略图是正常运作的。但是,将图像尺寸调整为更大的尺寸时却无法正常工作。你知道为什么吗?你会建议尝试哪些替代方案吗?
可以双向操作
>>> from PIL import Image # .INIT
>>> im = Image.open( "ColorLookUpTABLE___TEST_CHART.png" ) # .GET 258,200 [px]
>>> imB = im.resize( ( 516, 400 ) ) # .SET 516,400 [px] a double
>>> imB # .CHK instance
<PIL.Image.Image image mode=P size=516x400 at 0x19D9968>
>>> imB.show() # .GUI shown