Forum Archive

Issues copying animated gifs to clipboard

[deleted]

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.

omz

It's not possible to copy animated gifs to the clipboard right now, sorry.