animated-gif

Resizing animated GIF loses transparency and animation

不羁岁月 提交于 2020-01-16 00:33:08
问题 I am using the ImageResizer .NET component on an IIS hosted .NET web-service to handle resizing images that are stored in Amazon S3. It works great for everything except animated GIFs (so no problem with JPEG, PNG, standard GIF) With an animated GIF however the animation is lost and the transparency switches to black. Doesn't seem to make any difference whether I add an explicit format=gif parameter to the query string. The output from the resizer.debug page are shown below: Image resizer

C# Drawing.Imaging dropping GIF frames if they are identical

隐身守侯 提交于 2020-01-14 05:54:25
问题 I need to load GIF animations and convert them frame by frame to bitmaps. To do that, I am extracting my GIF file frame by frame using Drawing.Imaging library and then casting each frame to bitmap. Everything works just fine except the times when the consecutive frames are the same, when there is no pixel difference. The library seems to be dropping such frames. I came to that conslusion with a simple test. I have created an animation of a circle that is growing and shrinking with a pause

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

让人想犯罪 __ 提交于 2020-01-12 10:51:14
问题 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. 回答1: 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

Failed to decode some animated GIF files using Movie on Android 2.3.x or lower

北战南征 提交于 2020-01-10 20:14:28
问题 I tried using the following snippet code to decode the animated gif file with the Movie class. URL url; InputStream is = null; BufferedInputStream bis = null; url = new URL("http://emos.plurk.com/aeddddbbf63e980128ab7b3c1fca2798_w48_h48.gif"); HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection(); is = httpURLConnection.getInputStream(); bis = new BufferedInputStream(is); byte[] array = streamToBytes(bis); mGifMovie = Movie.decodeByteArray(array, 0, array.length); and

How to change opacity of animated gif images in iOS

a 夏天 提交于 2020-01-06 15:49:08
问题 Relevant code below. I want each image to have a fade-in affect while they appear in the overall animation cycle. When running this code, the gif animation affect works, but the opacity changing code does not. Any help would be greatly appreciated. Thanks! import UIKit class View1: UIViewController { @IBOutlet weak var imageView: UIImageView! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. var imagesNames = ["ALA0.jpeg

Reload Animated Gif cache each jQuery hover

喜夏-厌秋 提交于 2020-01-06 03:40:08
问题 Different to: Restart an animated GIF from JavaScript without reloading the image I have a simple animated gif icon which plays once (it does not repeat loop) I have it inside a DIV. When the user mouse the mouse over the DIV I want to play the GIF. When they move out the DIV turns off. When the move back I want them to play the GIF again - can I use a force cache on jQuery: HTML: <div class="datebox magicbox_1" id="date_1"> <img id="magicimage_1" class="magicimg" src="assets/img/dates

How to tell if a gif has fully animated using jquery

徘徊边缘 提交于 2020-01-02 10:23:54
问题 If I have an animated gif that just runs a single animation, IE. it doesn't loop, is there a way using jquery, or anything for that matter, of telling when the animation is complete? I don't want to tell if the file if fully loaded, but that the animation has run its course. 回答1: I think there is no way to detect it from javascript. I would choose a different solution instead. Create a static image (can be in any format, JPEG, PNG, GIF), which has the frames of the original animation below

Delphi TGIFImage animation issue with some GIF viewers

十年热恋 提交于 2020-01-02 01:45:52
问题 I have discovered that animated GIFs created using Delphi 2009's TGIFImage sometimes doesn't play correctly in some GIF viewers. The problem is that the animation is restarted prematurely. Consider the following example: program GIFAnomaly; {$APPTYPE CONSOLE} uses Windows, Types, Classes, SysUtils, Graphics, GIFImg; var g: TGIFImage; bm: TBitmap; procedure MakeFrame(n: integer); var x: Integer; y: Integer; begin for x := 0 to 256 - 1 do for y := 0 to 256 - 1 do bm.Canvas.Pixels[x, y] := RGB(

Preventing MFMailComposeViewController from scaling animated GIFs

北城余情 提交于 2020-01-01 10:12:22
问题 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? 回答1: There’s no built-in API to do this, but one option is to compress the animated GIF into a ZIP

Preventing MFMailComposeViewController from scaling animated GIFs

匆匆过客 提交于 2020-01-01 10:11:56
问题 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? 回答1: There’s no built-in API to do this, but one option is to compress the animated GIF into a ZIP