animated-gif

Android animated GIF (Cupcake)

核能气质少年 提交于 2019-11-30 14:45:52
I've used animated GIFs in Android pre cupcake however my old code no longer works. To be exact: Movie.decodeStream Always returns null... Does anyone have any workarounds/fixes to play animated GIFs? There's a bug report for this . Looks like the only option currently is to split it up and do frame-by-frame animation manually. There's instructions in the docs for how to do this. 来源: https://stackoverflow.com/questions/1383246/android-animated-gif-cupcake

Animated .GIF vs Spritesheet + JS/CSS

霸气de小男生 提交于 2019-11-30 10:33:50
问题 Which will scale best for performance, file-size, (and my sanity): Animated .gif s or a spritesheet with animations using CSS (and JS when need be)? Filesize So, I'm honestly not sure which will be better here since I don't understand the compression of frames in .gif . My guess would be that they would end up about equal if I can swing it right, but if this is wrong, or if this is a factor for a different reason let me know. The main advantage here, in my mind, goes to Spritesheets as I

Create animated gif using the GD library

杀马特。学长 韩版系。学妹 提交于 2019-11-30 09:41:32
If I've got a bunch of image resources that I made using the GD library in php, or otherwise a bunch of frames, how can I combine these into an animated gif? I've got an array of images and a frames per second I'd like to add.. I can't use ImageMagick or FFMPEG, and I'd prefer to just use the GD library if possible. Apparently "Support for creating GIF animations is also available." , but I can't seem to find the documentation on how to access this from within PHP? Well searching on Google revealed GIFEncoder.class.php found at http://www.phpclasses.org/package/3163-PHP-Generate-GIF-animations

Showing a .gif animation in QLabel

▼魔方 西西 提交于 2019-11-30 09:21:31
I would like to show a .gif animation in a QLabel widget, alongside text. The following code won't work: self.status_txt = QtGui.QLabel('Loading... <img src="etc/loading.gif">') as the image won't animate. I tried achiving it by using a QMovie object: self.status_txt = QtGui.QLabel("Loading...") movie = QtGui.QMovie("etc/loading.gif") self.status_txt.setMovie(movie) movie.start() But then I can't put the animation and the text together. Is there a different solution besides using two different labels? you can add a Layout to the label, and then add another Label with the text to that... self

Creating animated GIF files out of D3.js animations

无人久伴 提交于 2019-11-30 07:25:50
I am creating D3.js animations, like this: Demo Let's say I want to present my work here (or on a blog). About the best I can do is post a picture: On the other hand, if I, let's say, use the Python library Matplotlib for data visualization, I could produce an animated GIF file, and post it here: I would like to programatically obtain similar animated GIF files out of my D3.js animations. How can I do this? NOTE: I started working on getting events from d3.transition() , but so far I didn't have any luck. VividD The solution uses a tool called LICEcap, a screen capture utility for Windows and

IE7/IE8 and frozen animated gifs

浪子不回头ぞ 提交于 2019-11-30 06:44:08
I'm quite sure this is an old problem. This is how i render my animated gif: <img id='loading' alt='loading' style="display: none; position: relative; left:10px; top:2px;" src="<%= Url.Image("loading.gif") %>" /> This is how I'm desperately trying to show it at the moment: showLoading: function(gifId, butId) { var n = gifId != undefined ? gifId : 'loading'; var l = $('#' + n); //if browser is stupid if ('v' == '\v') { var s = l.attr('src'); var x = document.getElementById(n); x.style.visibility = "visible"; x.style.display = "inline"; setTimeout("document.getElementById('" + n + "').src = '"+s

Indicate that processor-heavy JS function is running (GIF spinners don't animate)

孤人 提交于 2019-11-30 06:43:50
Showing then hiding animated indicator / spinner gifs are a good way to show a user that their action has worked and that something is happening while they wait for their action to complete - for example, if the action requires loading some data from a server(s) via AJAX. My problem is, if the cause of the slowdown is a processor -intensive function, the gif freezes. In most browsers, the GIF stops animating while the processor-hungry function executes . To a user, this looks like something has crashed or malfunctioned, when actually it's working. JSBIN example Note: the "This is slow" button

How to display animated GIF in Objective C on top of the layered View?

我的未来我决定 提交于 2019-11-30 05:24:49
I am trying to draw animated gif on my screen in mac OSX app . I used this code to insert the gif: I can see the Gif as 1 picture it doesn't animates only static picture :( what should I add to make it animated ? #import <Cocoa/Cocoa.h> #import <Quartz/Quartz.h>//for drawing circle #import "sharedPrefferences.h" @interface GenericFanSubView : NSView { NSColor * _backgroundColor; NSImageView* imageView; } - (void)setBackgroundColor :(NSColor*)color; - (void)insertGif1; - (void)insertGif2; - (void)insertGif3; @end #import "GenericFanSubView.h" #define PI 3.14285714285714 @implementation

how to create gif animation from a stack of jpgs

巧了我就是萌 提交于 2019-11-30 03:39:04
I have around 200 jpg images. I need to stack them so that i can convert them into a simple animated gif image. Are there any free tools available to do that job? My os is windows. I'm not so bothered about the quality of the output. Might want to look at GiftedMotion: http://www.onyxbits.de/giftedmotion Szabolcs Try using ImageMagick 's convert utility. I have used it to create animated gifs from a set of images (in any format) in the past. Use the command convert -delay 20 -loop 0 *.jpg animated.gif If you'd like a flexible on-line solution, I just used GIFmaker.me and it worked great. It

Why not animated GIF instead of animated CSS sprites?

ぐ巨炮叔叔 提交于 2019-11-30 03:01:58
In recent trends I've seen people animating CSS sprites using JavaScript instead of using animated GIFs? Ex: http://www.google.com/doodles/eadweard-j-muybridges-182nd-birthday (in fact, Google used this technique in other Doodles too) https://everyme.com/ ('me' logo) and many more... Is that all just to show or experiment with technology or are there any benefits out of it. I m interested in knowing the benefits, if there. The reason I m asking is that I couldn't figure out as in both cases we need to generate the intermediate frames (mostly using tweening technique). Control You have no