animated-gif

Automated importing/renaming of Flash assets

*爱你&永不变心* 提交于 2019-12-13 05:40:10
问题 So I have an AS3 flash project with A LOT of assets, roughly 1000 at the time being but that may expand to several thousand later. They are all images but half of them are Animated GIFs so I can't import them at runtime. I considered simply dragging them into the flash project but I don't seem to have any control over the naming scheme. Basically, what I want to know is: Is there a way to automate importing and renaming of flash assets, like "Import these 1000 files and export them for

ImageMagick rotate animated gif glitches

不羁的心 提交于 2019-12-13 02:59:55
问题 I'm using ImageMagick to rotate animated gifs. Simply: convert image.gif -rotate 32 -alpha set -background none output.gif Output: https://s3-eu-west-1.amazonaws.com/uploads-eu.hipchat.com/108112/892631/ATp8mXXrDdSkCNu/sowa-test2.gif Does anyone have a clue why output image is distorted this way and how to avoid this? 回答1: Without seeing the original image, I would suggest extracting each image, apply rotation, and then re-build the animated gif. Example using the following gif: convert anim

Issue with gif animation in Java swing

扶醉桌前 提交于 2019-12-13 02:23:20
问题 When I try to load a gif animation I am just getting an empty frame. Do you know what is wrong? The file is located within extras/loading.gif: package an1; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; public class An1 { public static void main(String[] args){ JFrame frame = new JFrame("Test"); ImageIcon loading = new ImageIcon("extras/loading.gif"); frame.add(new JLabel(loading, JLabel.CENTER)); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame

GIF image works on emulator but not in real device?

独自空忆成欢 提交于 2019-12-12 18:33:29
问题 i am trying to display gif image i have used this code MainActivity public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new MYGIFView(this)); } } and the MYGIFView class: public class MYGIFView extends View { Movie movie,movie1; InputStream is=null,is1=null; long moviestart; public MYGIFView(Context context) { super(context); is=context.getResources().openRawResource(R.drawable.piggy);

Making a gif from images

*爱你&永不变心* 提交于 2019-12-12 16:45:24
问题 I have a load of data in 100 .sdf files (labelled 0000.sdf to 0099.sdf), each of which contain a still image, and I'm trying to produce a .gif from these images. The code I use to plot the figure are (in the same directory as the sdf files): q = GetDataSDF('0000.sdf'); imagesc(q.data'); I've attempted to write a for loop that would plot the figure and then save it with the same filename as the sdf file but to no avail, using: for a = 1:100 q=GetDataSDF('0000.sdf'); fh = imagesc(q.dist_fn.x_px

Converting jpegs to gifs is too long

泄露秘密 提交于 2019-12-12 12:35:53
问题 I'm trying to make gif animation from jpegs I get from video camera. But this process is unreal long. I used two different libraries. First is written with native C++ code and second is Java's one. I compress frames as I can, but even this cannot reduce generating time. Native library takes about 80-100 seconds and Java's takes about 40-60 seconds (I don't know how java is 2 times faster, but logs show me this result) for 5 seconds video with 16 fps (80 frames per gif). I changed a bit C++

Is it possible to get the new ImageDecoder class to return Bitmaps, one frame after another, manually?

感情迁移 提交于 2019-12-12 09:33:55
问题 Background I'm trying to go over bitmaps of animated GIF&WEBP files manually (frame by frame), so that it would work not just for Views, but on other cases too (such as a live wallpaper). The problem Animated GIF/WEBP files are supported only from Android P, using ImageDecoder API (example here) . For GIF, I wanted to try Glide for the task, but I've failed, so I've tried overcoming this, by using a library that allows to load them (here, solution here). I think it works fine. For WebP, I

Does hiding an animated GIF with CSS conserve browser resources?

妖精的绣舞 提交于 2019-12-12 08:25:31
问题 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

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

守給你的承諾、 提交于 2019-12-12 08:21:34
问题 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

Why is my gif missing png files after 753 iterations

£可爱£侵袭症+ 提交于 2019-12-12 04:07:29
问题 I'm using the following python code to generate a .gif file from about 3000 .png files. But the .gif file has only about 1000 .png files. Why is the .gif not having all the .png files? Is there a limit to the number of .png files I can combine to create a .gif file? import imageio import os filenames =[] dirPath = "D:\\BandSim_2017-06-20_12_00_45\\" for file in os.listdir(dirPath): if file.endswith(".png"): filenames.append(dirPath+file) moviePath ="D:\\simulation.gif" with imageio.get_writer