gif

How to convert GIF to Mp4 is it possible?

老子叫甜甜 提交于 2020-01-10 05:36:09
问题 I have search on internet and i found this library called "ffmpeg" that saying it is able to convert GIF TO MP4. I have tried but no success and getting exception. https://github.com/guardianproject/android-ffmpeg-java If anybody know how to convert GIF to MP4 in android platform please help me. thanks EDIT this is i am doing using above ffmpeg lib String path = Environment.getExternalStorageDirectory() + "/gif/wall.jpg"; String tmp = Environment.getExternalStorageDirectory() + "/gif/tmp";

Create a gif in Gnuplot from a single file

南楼画角 提交于 2020-01-06 15:59:09
问题 I have a long file like the following (I am just writing a sample) 0.0 0.00209627946771 6483.0 3092622.0 1100 0.1 0.00253798848144 78.0 30733.0 1100 0.2 0.0174927113703 6.0 343.0 1100 0.3 0.0 0.0 35.0 1100 0.4 0.1 1.0 10.0 1100 0.5 0.0 0.0 4.0 1100 0.9 0.0 0.0 1.0 1100 1.0 0.0 0.0 2.0 1100 0.0 0.00292927058349 9057.0 3091896.0 2100 0.1 0.00299136583044 88.0 29418.0 2100 0.2 0.00743889479277 14.0 1882.0 2100 0.3 0.00578034682081 2.0 346.0 2100 0.4 0.0172413793103 2.0 116.0 2100 0.5 0

Java animated GIF and MySQL connection

风格不统一 提交于 2020-01-06 15:58:16
问题 I a making a Java Messenger. I did a login dialog and when I click on the connect button, an animated GIF appears while it's loading. The problem is that the animated GIF stops moving while my MySQL connection and Query are processing. I throw the MySQL connection and query in a new thread but still the same : Thread connectionThread = new Thread(new Runnable() { public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { //Database conection OlaDB.createConnection();

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

Save a GIF with index transparency using ImageIO out of an image with alpha transparency

怎甘沉沦 提交于 2020-01-05 07:04:17
问题 I have a BufferedImage with alpha transparency, which I need to save as GIF with index transparency. There are no semi-opague pixels, therefore a conversion should be possible. Using the code found under http://gman.eichberger.de/2007/07/transparent-gifs-in-java.html, I define a transparency color (green, for instance, which is not part of the current image) and make it transparent. Works fine, BUT it mixes up the color table and all the colors look awful (although I only use 3 different

Process uploaded animated gif for security

谁都会走 提交于 2020-01-04 15:14:54
问题 We are working on a website to allow animated GIF upload. To ensure the image is indeed an image and without malware/virus/backdoor/trojan or anything other than image data itself, we try to recreate the original image. However, the process itself will take sometime when there are lots of frames inside. Is there any other way to ensure an uploaded animated GIF file is free from the issues mentioned above? 回答1: You can never 100% guarantee that a file does not contain malware - even with your

Qt - How to show gif(animated) image in QGraphicsPixmapItem

冷暖自知 提交于 2020-01-04 14:24:57
问题 I am trying to use one blinking image in QGraphicsPixmapItem. The image has shown without the animation effect. The below is the original image, the following is the QGraphicsScene which uses this image in QGraphicsPixmapItem. Can anybody say how to achieve this?. 回答1: use this code QGraphicsScene scene; QLabel *gif_anim = new QLabel(); QMovie *movie = new QMovie(image); gif_anim->setMovie(movie); movie->start(); QGraphicsProxyWidget *proxy = scene.addWidget(gif_anim); 来源: https:/

Sharing Gifs Swift

白昼怎懂夜的黑 提交于 2020-01-04 02:48:08
问题 How would I share a Gif in Swift? The method I am using right now to share the Gif URL only shares one image and does not share the animated Gif image. Here is what I have right now: var cell = self.collectionView.cellForItemAtIndexPath(index) println(index.item) var URLString: String = contentArray[index.item].contentUrlStirng var shareURL: NSURL = NSURL(string: "\(URLString)")! var shareImage: UIImage = UIImage.animatedImageWithAnimatedGIFURL(shareURL) let firstActivityItem: Array =

Possible to load an animated gif without playing the animation?

删除回忆录丶 提交于 2020-01-03 10:22:33
问题 I wonder if there is a way to prevent a browser from actually animating an animated gif, loaded in a <img> tag. I just want it to display the first frame of the gif and don't play the animation. I already fear that this isn't possible and I have to extract the first frame and render it to a canvas... :/ 回答1: This is kinda an expensive solution, but if you reset image SRC on a very short setInterval it appears as static e.g: setInterval(function() { document.getElementById('img1').src =

php imagick gif resize all frame

六月ゝ 毕业季﹏ 提交于 2020-01-03 04:40:34
问题 i have a problem to resize all frame using php imagick. it's take from official php doc example http://ir.php.net/manual/en/imagick.examples-1.php /* Create a new imagick object and read in GIF */ $im = new Imagick("/tmp/bbb.gif"); /* Resize all frames */ foreach ($im as $frame) { /* 50x50 frames */ $frame->thumbnailImage(50, 50); /* Set the virtual canvas to correct size */ $frame->setImagePage(50, 50, 0, 0); } /* Notice writeImages instead of writeImage */ $im->writeImages("/tmp/zb.gif",