[deleted]
Jul 11, 2014 - 17:13
I have a problem where I'm trying to copy an animated gif to my clipboard from a remote url and I get the image but it only appears to be the first frame of the gif?
import Image
import clipboard
from urllib import urlopen
from io import BytesIO
url = clipboard.get()
img = Image.open(BytesIO(urlopen(url).read()))
clipboard.set_image(img)
I came up which this code but not sure where I am going wrong? Hoping I'm on the right lines.