PIL: Image resizing : Algorithm similar to firefox's

前端 未结 4 1989
刺人心
刺人心 2021-02-03 11:35

I\'m getting about the same bad looking resizing from all the 4 algorithms of PIL

>>> data = utils.fetch(\"http://wavestock.com/images/beta-ico         


        
4条回答
  •  南方客
    南方客 (楼主)
    2021-02-03 11:55

    Try using the resize() method instead of thumbnail(). In my experience, they behave very differently.

    Also, your code shows reading a .gif, but your original is .png. Make sure you really have all the original data before you start reducing it.

提交回复
热议问题