Shrink image using python?

前端 未结 0 1954
情书的邮戳
情书的邮戳 2020-12-01 04:29
import image

img = image.Image("test_image.png")
ratio = 0.5

#Make new image screen.
new_width = img.getWidth()*(ratio)
new_height = img.getHeight()*(rat         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题