animated-gif

Imagick: Remove frames from an animated GIF?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 07:37:23
I am trying to understand how to remove frames from an animated GIF. Currently I am trying this (as a test): $count = 1; foreach ($_im AS $frame) { if ($count > 1) { $frame->removeImage(); } $count++; } However this seems to toast everything in the object. Suggestions from workmates have been to just create another IM object, and extract a famee into it, etc. That seems extremely messy however. I've been going through the Imagick documentation for a while, and tried a couple of things... But I didn't manage to do what you want either -- so, we are at least two who can't find out a clean way ^^

Preventing MFMailComposeViewController from scaling animated GIFs

为君一笑 提交于 2019-12-04 05:35:29
I'm attaching an animated GIF to an email to be sent with MFMailComposeViewController. If the GIF is of sufficient size the MFMailComposeViewController will ask the user whether they want to resize it to a smaller size. Unfortunately, the animation will not be preserved in the resized image. How do I either forbid MFMailComposeViewController to resize the image or make it preserve the animation? There’s no built-in API to do this, but one option is to compress the animated GIF into a ZIP, then attach that. The MFMailComposeViewController won’t offer to resize the ZIP (unless it’s peeking into

Does hiding an animated GIF with CSS conserve browser resources?

情到浓时终转凉″ 提交于 2019-12-04 02:17:26
I have a gif image. It gets shown only on very specific events, not too often. By default, the gif's html <img> tag is hidden using display: none . Now, we all know gifs can be very tough on a computer's cpu. I don't know how to benchmark or check whether a hidden gif still uses CPU bandwidth. I checked the repainting of the gif with dev tools - it's not happening, as expected. That's good. The FPS meter doesn't go up either, and neither does memory usage. But I have a powerful CPU and computer; these don't go up when the gif appears either. Does anyone have ideas for how to benchmark this, or

Animated .GIFs not working in IE 10

穿精又带淫゛_ 提交于 2019-12-04 00:43:18
I have created some animated .gifs which work well in Firefox and Chrome but not in IE 10. Is there any way of fixing this? Just try looking at the below image in various browsers. witttness From what I can see, the issue is not your page or the animated GIF itself. It is a setting in IE10 (and other versions) on the client. You can access the setting from IE's Internet Options → Advanced → MultiMedia → Play animations Checking this box should yield the desired result. But I hear the next question: Can I detect whether my users have this box checked or not? Unfortunately, I could not find a

How to make animated GIFs work from Android WebView

不想你离开。 提交于 2019-12-04 00:33:21
Animated GIF images rendered by Android's WebView do not seem to animate. Has anyone figured out how to make them work? I'm testing on an N1 with 2.1-u1. None of the web settings available seem applicable. Not supported YET. Read more about this here: http://code.google.com/p/android/issues/detail?id=3422 For large memory phones like Droid and Nexus One, the two-line change has been made in Froyo (unreleased) to enable animated GIFs. For small memory phones, the change is not trivial and did not make it into this future release. As a workaround, if you are using a custom WebView, you can do

Using an Animated Gif as Ground Overlays in G. Maps v2

隐身守侯 提交于 2019-12-04 00:07:45
I am currently using Google Maps and would like to use an animated Gif as Overlay in my app. This is really frustrating as it seems very easy on iOS version of the app, SO I really want to achieve something cool. The result I would like to see is on 23s of this video: https://www.youtube.com/watch?v=JI323jA67x0#t=23s The Ground Overlays seems the bast practice, but doesn't accept animated gif: LatLng NEWARK = new LatLng(40.714086, -74.228697); GroundOverlayOptions newarkMap = new GroundOverlayOptions() .image(BitmapDescriptorFactory.fromResource(R.drawable.newark_nj_1922)) .position(NEWARK,

Is there a simple way to make and save an animation with Pygame?

落花浮王杯 提交于 2019-12-03 21:19:13
I made a very simple fractal generator that prints out each step; I want to put it in a presentation I made. The tool with which I'm making the presentation obviously doesn't support pygame, is there any way to save it as a video? Preferably as an animated .gif or the like. Not directly. But you can save a screencast of your program with one of the many available utilities that do this. I don't know about Windows or OSX, but if you are on Ubuntu or other gnome-based desktop you can either use the gnome-shell built-in functionality (standard keybinding is Control+Shift+Alt+R ) or istanbul (more

Making animated gifs using R [duplicate]

旧巷老猫 提交于 2019-12-03 13:41:08
This question already has answers here : Creating a Movie from a Series of Plots in R [closed] (7 answers) Does anyone have any tips regarding making animated GIFs in R? I'm trying to make some time lapse map GIFs. Dirk Eddelbuettel Repeat Question : Please see this previous StackOverflow question on creating a series of plots in R which offers a number of solutions including pointers to other useful packages such as the animation package. Also be sure to check out the animation package I'd recommend just generating a series of png files (which happens by default each time you run plot with

How to fit content of GIF animation in View and in live wallpaper?

杀马特。学长 韩版系。学妹 提交于 2019-12-03 09:26:20
Background I have a small live wallpaper app, that I want to add support for it to show GIF animations. For this, I've found various solutions. There is the solution of showing a GIF animation in a view ( here ), and there is even a solution for showing it in a live wallpaper ( here ). However, for both of them, I can't find how to fit the content of the GIF animation nicely in the space it has, meaning any of the following: center-crop - fits to 100% of the container (the screen in this case), cropping on sides (top&bottom or left&right) when needed. Doesn't stretch anything. This means the

MBProgressHud with gif image

≯℡__Kan透↙ 提交于 2019-12-03 08:46:29
Can I use gif image instead of default loading indicator? I am using this code so far but not getting any result. Can anyone suggest what is wrong in this code? #import "UIImage+GIF.h" -(void) showLoadingHUD:(NSString *)title { [self hideLoadingHUD]; if(!HUD){ HUD = [MBProgressHUD showHUDAddedTo:self.window animated:YES]; } [HUD setColor:[UIColor clearColor]]; UIImageView *imageViewAnimatedGif = [[UIImageView alloc]init]; imageViewAnimatedGif.image= [UIImage sd_animatedGIFNamed:@"martini_glass"]; HUD.customView = [[UIImageView alloc] initWithImage:imageViewAnimatedGif.image]; CABasicAnimation