lanye

项目中遇到GIF图片读取问题,使用PIL中Image

 1 im=Image.open("D:\\yzm\\0009.gif")
 2 mode = \'RGB\'
 3 im.seek(0)
 4 im.convert(mode).save("D:\\sss_0003_0.jpg")
 5 
 6 print "11111"
 7 i=2
 8 try:
 9     while 1:
10         im.seek(im.tell()+1)
11         im.convert(\'RGB\').save("1.jpg")
12 except EOFError:
13     pass
14 print  im.format, im.size, im.mode

 

分类:

技术点:

相关文章:

  • 2021-10-05
  • 2021-12-14
  • 2021-12-25
  • 2021-09-13
  • 2021-08-30
  • 2021-11-17
  • 2022-01-02
  • 2021-09-20
猜你喜欢
  • 2021-12-12
  • 2019-01-23
  • 2021-11-09
  • 2021-12-14
  • 2021-10-09
  • 2021-11-29
相关资源
相似解决方案