animated-gif

base64 encoded animated gif as css background?

允我心安 提交于 2019-12-08 17:51:25
问题 I have an animated gif encoded into my css as such: .magicBg { background-image: url(data:image/gif;base64,R0lGODlhAQBkAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0ND ... } This animated gif is encoded to play once. However, once this animated gif plays once as background on an element, it never plays again. Using $('body').removeClass( 'magicBg' ); $('body').addClass( 'magicBg' ) Has no effect -- we start on the final frame of the gif. Any ideas how to make this play from the

Loading animated gif data in QMovie

余生长醉 提交于 2019-12-08 14:40:24
I'm very new to Qt (specifically PySide) and I'm trying write a script that loads an animated gif from file into a QByteArray and then into a QMovie. The reason for going from file to the QByteArray is because I cannot keep that gif file in memory. I want to be able to store the animated gif in such a way that it can be written out to a JSON file later (hence the QByteArray). I've tried using ekhumoro's answer from here and although no errors showed up, the animated gif also doesn't show up. (There could be something there but I don't see anything.) My code, in a nutshell, looks like this:

GIFPlayer Not working in Flex 4.6 AIR

混江龙づ霸主 提交于 2019-12-08 12:53:05
问题 I am working with Flex 4.6 AIR Application. I am using GIFPlayer for play animated gif file. I have a TileList and I use a itemRenderer for displaying this image. The problem is it hangs the AIR application when it loads. I am using the library of GIFPlayer you can download it from HERE The code of itemRenderer is below. override public function set data(value:Object):void { if(value != null) { super.data = value; var gif:GIFPlayer = new GIFPlayer(); gif.load(new URLRequest(data.image)); var

Reading animated GIF in PHP

不打扰是莪最后的温柔 提交于 2019-12-08 06:35:45
问题 I am in need of reading the individual frames of an animated GIF in PHP. I use GD all the time for image manipulation, but unfortunately it lacks the capability to handle multiple frames in a GIF image. I'm currently in the middle of carving up the GIF file format in an attempt to make my own extractor, but before I go any further I was wondering if anyone had any pointers for code that already does this - I can't be the first to want to handle animations in PHP, surely. 回答1: Yup. I think the

Interpretation of “background colour index” in GIF specification

☆樱花仙子☆ 提交于 2019-12-08 05:43:44
问题 If you look in the GIF specification and search for "Background Color Index", you see the following description: vii) Background Color Index - Index into the Global Color Table for the Background Color. The Background Color is the color used for those pixels on the screen that are not covered by an image. If the Global Color Table Flag is set to (zero), this field should be zero and should be ignored. There is an ambiguity here, which is that if the "Global Color Table Flag" is set to zero

Loading animated gif data in QMovie

自闭症网瘾萝莉.ら 提交于 2019-12-08 03:24:23
问题 I'm very new to Qt (specifically PySide) and I'm trying write a script that loads an animated gif from file into a QByteArray and then into a QMovie. The reason for going from file to the QByteArray is because I cannot keep that gif file in memory. I want to be able to store the animated gif in such a way that it can be written out to a JSON file later (hence the QByteArray). I've tried using ekhumoro's answer from here and although no errors showed up, the animated gif also doesn't show up.

Best practice of showing gif in Android

余生长醉 提交于 2019-12-08 03:20:57
问题 I tried to load a list of gifs and displays them on listview. Currently, I display each gif into a webview but it's very slow and looks ugly. I did some researches today but nothing could help me. Do you guys have any great idea that showing gifs smoothly? BTW, I got all gifs from url links. 回答1: I would recommend utilising a recently open sourced library, released by Facebook, called fresco https://github.com/facebook/fresco. From my experience, it handles GIFs quite nicely by using some

Read delay between frames in animated GIF

给你一囗甜甜゛ 提交于 2019-12-07 17:23:15
问题 How do you read the animated GIF's control block between each frame? I'm interested in the delay between each frame. I've looked at the Javadoc for ImageReader and I'm not seeing anything. Here's my code for reading all the frames from the animated GIF, how would I enhance it to read the metadata about each frame embedded in the animated GIF? List<BufferedImage> list = new ArrayList<BufferedImage>(); try { ImageReader reader = ImageIO.getImageReadersBySuffix("gif").next(); reader.setInput

Animated GIF in ImageList / TabPage

99封情书 提交于 2019-12-07 07:21:08
问题 I'd like to show an animated GIF as the tab image on a TabPage . If I add my image to an ImageList and use the TabPage.ImageIndex property, it only shows the first frame (and doesn't animate): ImageList imageList = new ImageList(); imageList.Images.Add(Properties.Resources.my_animated_gif); tabControl.ImageList = imageList; tabPage.ImageIndex = 0; A few forums on the net also suggest ImageList doesn't support animated GIFs. Is there an easy way to display an animated GIF as an image on a

Compress animated gif image size using c#

人盡茶涼 提交于 2019-12-07 05:42:05
问题 I wanted to create animated gif image from several images using c#, so i have used below github solution to do so. https://github.com/DataDink/Bumpkit I am using below code to do it using (var gif = File.OpenWrite(@"C:\IMG_TEST.gif")) using (var encoder = new GifEncoder(gif)) for (int i = 0, count = imageFilePaths.Length; i < count; i++) { Image image = Image.FromFile(imageFilePaths[i]); encoder.AddFrame(image,0,0); } it is working like a charm, but it is creating gif of size 45 MB. If i