animated-gif

Animated ImageIcon as Button

旧巷老猫 提交于 2019-12-22 08:48:50
问题 I have an imageIcon as Button, now i would to animate it when you rollover. I tried to use a animated gif (without loop) on setRolloverIcon(Icon). But when i hover again on the button the gif is not playing again. When i use a looped gif then it plays it from a random frame. I tried using paintComponent to draw a Shape or an image as Button, which works fine, but even when i use setPreferredSize() or setSize() or setMaximumSize() the Button uses its default size, as you can see in the picture

lower fps when using ffmpeg to convert mp4 to gif

拥有回忆 提交于 2019-12-21 17:01:59
问题 I am using ffmpeg to convert high quality videos to gif, most of the videos are 60fps and over 720p , but when I use the code below, to convert the video to gif, I get very low fps for the gif output, #!/usr/bin/env palette=/tmp/pallete.png filter="fps=50,scale=480:-1:flags=lanczos" ffmpeg -y -i test.mov -vf $filter,palettegen=stats_mode=diff $palette ffmpeg -y -i test.mov -i $palette -lavfi "$filter [x]; [x][1:v] paletteuse" test.gif another issue I have noted is - as the width increases e.g

Imagick: Remove frames from an animated GIF?

左心房为你撑大大i 提交于 2019-12-21 16:59:04
问题 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. 回答1: I've been going through the Imagick documentation for a while, and tried a couple of things...

.NET - Creating a looping .gif using GifBitmapEncoder

放肆的年华 提交于 2019-12-21 13:42:13
问题 I'm trying to write some code to export animated .gifs from a WPF application using GifBitmapEncoder. What I have so far works fine but when I view the resulting .gif it only runs once and then stops - I'd like to have it looping indefinitely. I've found this previous similar question: How do I make a GIF repeat in loop when generating with BitmapEncoder However, he is using the BitmapEncoder from Windows.Graphics.Imaging rather than the Windows.Media.Imaging version, which seems to be a bit

Animated .GIFs not working in IE 10

不打扰是莪最后的温柔 提交于 2019-12-21 07:28:27
问题 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. 回答1: 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

How to play a GIF on click (like 9GaG.com) with wordpress?

别来无恙 提交于 2019-12-20 19:42:07
问题 I need to implement this "gif player" in a wordpress site, because gif pages are up to 6mb, so performance is really crappy I´ve read this Onclick play GIF image with jQuery and start from beginning also this How to play animated GIF from the beginning onclick function that were almost a solution but i dont know how this should be done with wordpress in every entry 9gag.com does it perfectly; shows a preview image , reproduces the gif onclick, and stop the gif if its clicked again. If clicked

making gif from images using imageio in python

一笑奈何 提交于 2019-12-20 14:16:30
问题 I have tried reading a lot of examples online and found imageio is the perfect package for it. Also found examples written in here. I have just followed the example as shown and tried the following import imageio as io import os file_names = sorted((fn for fn in os.listdir('.') if fn.startswith('surface'))) #making animation with io.get_writer('surface.gif', mode='I', duration=0.5) as writer: for filename in file_names: image = io.imread(filename) writer.append_data(image) writer.close() and

making gif from images using imageio in python

痞子三分冷 提交于 2019-12-20 14:16:00
问题 I have tried reading a lot of examples online and found imageio is the perfect package for it. Also found examples written in here. I have just followed the example as shown and tried the following import imageio as io import os file_names = sorted((fn for fn in os.listdir('.') if fn.startswith('surface'))) #making animation with io.get_writer('surface.gif', mode='I', duration=0.5) as writer: for filename in file_names: image = io.imread(filename) writer.append_data(image) writer.close() and

iOS Colors Incorrect When Saving Animated Gif

家住魔仙堡 提交于 2019-12-20 10:39:42
问题 I am having this very strange issue. I am creating animated gifs from UIImages and most of the time they come out correct. However when I start to get into larger size images my colors start to disappear. For example if I do a 4 frame 32 x 32 pixel image with no more than 10 colors no issue. If I scale the same image up to 832 x 832 I lose a pink color and my brown turns green. @1x 32 x 32 @10x 320 x 320 @26x 832 x 832 Here is the code I use to create the gif... var kFrameCount = 0 for

Gif not animated in custom listview

感情迁移 提交于 2019-12-20 09:45:39
问题 I want to display animated GIF images in my custom listview.my GIF image is get in web service url.GIF image displayed but not animated. public class NewsScreenAdapter extends BaseAdapter { LayoutInflater inflater; public GifDecoderView webview1; public static viewholder holder; View view = null; public static Context context; public ImageLoader IL; public String imgUrl; public static String addurl; public Activity activity; String image; public static Date parsed; public static String ac,