Animation with Animated GIF

Hi,
I need to do an animation, I am using an Image object to load an animated GIF. Is there any way to run all the frames which this GIF contains using the Image Object?. I don�t want to extract each image from the gif and then copy them into a jpg format, and then have to make a loop to animate the set of JPG images... it is possible, only load the GIF, and with some java class, animate the gif??
Thanks.

Have you tried just displaying an animated gif image, say JLabel+ImageIcon. It works:
http://forum.java.sun.com/thread.jsp?forum=20&thread=553508

Similar Messages

  • GS-06: Animating with animation presets | Learn After Effects CS5 & CS5.5 | Adobe TV

    Animate layers quickly and easily by using animation presets. Drag and drop animation presets onto layers in the Timeline panel and combine them for a unique result.
    http://adobe.ly/ytXsgl

    Hi. So I'm following along, and it's been very helpful for a newbie! Your methods are thorough and I'm learning quickly. For some reason though, when I add the "rotate over time" preset, it says the transform effect is missing. Additionally, when I open the project, it says the "glow" effect is missing also. Any ideas?

  • Problem with animated .gif

    I have a problem with animated gifs. So if I set a animated gif as background and a button is over it as in the example below, then everytime the animation goes on the button disappears until I go over it with the mouse. So what can I do to solve this?
    import java.awt.Color;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    public class FrameBackImage {
              public static void main(String args []){
                   final JFrame frame = new JFrame("Frame");
                   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   frame.setSize(400, 400);
                   frame.setResizable(false);
                   frame.setLayout(null);
                   java.net.URL imageURL = ImageApp.class.getResource("animatedw.gif");
                   ImageIcon imageIcon = new ImageIcon(imageURL);
                 final JLabel label = new JLabel(imageIcon);
                 label.setBounds(0,0 , 400, 400);
                 frame.getLayeredPane().add(label);
                 JButton button = new JButton ("Exit");
                 button.setBounds(200, 129, 60, 60);
                 button.setBackground(Color.black);
                 button.setForeground(Color.white);
                 frame.add(button);
                 button.addActionListener(
                 new ActionListener(){
                        public void actionPerformed(ActionEvent arg0) {
                             System.exit(0);
                 frame.validate();
                  frame.setVisible(true);
    }

    In the future, Swing related questions should be posted in the Swing forum.
    Your usage of the getLayeredPane() method is something I've never seen before, so I don't know if thats the problem or not.
    How to display a "background image" is asked all the time in the Swing forum. So to familiarize yourself with the forum you can try searching the Swing forum. Using the keywords I highlighted would be a good place to start.

  • Help with animated gif background once opened in Photoshop c33 extended

    I often work with animated Gif's and a
    adding doggies etc to the top layer.
    I am having a problem with animated Gif with (existing transparent) background when saving from the web and opening in Photoshop cs3 extended it is changing the background to White automatically ?  ( which is not what I want)  I would like to know how to keep in the same format with the tranparent or even change to black as that is the background on my website.....do not know why it is converting it to white in photoshop or how to change....Thank you advance!

    Thank you so much....after many hours playing with ....went right too and worked perfect!!  Thank  you !!

  • Script for saving GIF with Animation Loop Endless

    Hi,
    I am searching for a way to use  "save for web" in a Photoshop CC Script.
    I already found how to use the "save for web" using Script, but now i am stuck, because i cannot find any information on how to set
    that the animation, i want to save as a Animated GIF File, can be set to loop endless.
    I already tried to search in all the docs i found about scripting, but there is not a single information about saving gif with animation loop endless...
    thanks,
    Philipp

    When you do use "save for web" and select GIF, on the bottom right, the loop mode can be selected. But i think i wouldn't matter to me if it's being set before saving the image.
    I already tried to run the script, but somehow
    "charIDToTID('Ordn')" for example won't run. Is this the same as charIDToTypeID? because i found charIDToTypeID is a function, but charIDToTID is not...
    also the third line from the end, one of the functions seem not to work, i think....
    But already you given me a real good answer to what i may try to search for, since i did not actually know that this is set within the timeline, i always used the option within the "save for web" dialog on the bottom-right.
    I Solved my own problem ...
    I just made Photoshop CC with a script log everything, then gotten to this:
    function setLoopForever() {
    var idsetd = charIDToTypeID( "setd" );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idanimationClass = stringIDToTypeID( "animationClass" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref2.putEnumerated( idanimationClass, idOrdn, idTrgt );
        desc5.putReference( idnull, ref2 );
        var idT = charIDToTypeID( "T   " );
            var desc6 = new ActionDescriptor();
            var idanimationLoopEnum = stringIDToTypeID( "animationLoopEnum" );
            var idanimationLoopType = stringIDToTypeID( "animationLoopType" );
            var idanimationLoopForever = stringIDToTypeID( "animationLoopForever" );
            desc6.putEnumerated( idanimationLoopEnum, idanimationLoopType, idanimationLoopForever );
        var idanimationClass = stringIDToTypeID( "animationClass" );
        desc5.putObject( idT, idanimationClass, desc6 );
    executeAction( idsetd, desc5, DialogModes.NO );
    Works perfect!

  • Spry Effects with Animated GIF

    Hi,
    I'm using Spry's fade it effect in conjunction with Spry's
    update content to update a div with html content. Now i have an
    animated gif that is totally non-related to this action on the
    screen that is "draggable". What is happening is that each time i
    invoke Spry's update content....The animation of the GIF
    stops....However, this happens in IE and not FF...
    Is there a bug here?

    Hi,
    Just an FYI, in most browsers, JavaScript executes on the
    main UI thread which is the same thread that is responsible for
    painting/updating the screen. If you have JS on the page that is
    doing some long operation in a tight loop, or if you dynamically
    insert lots of HTML content into the document, causing the browser
    to recalculate/layout/re-render a lot of content in the page, then
    you might see this situation.
    I can't tell what your situation is without seeing what you
    are actually doing.
    --== Kin ==--

  • Updated avatar with a .gif file- 305kb... animation?

       I just (or I think I have) updated my avatar with a .gif file that is 305kb. Size: 215x215. It has animation, but the animation is not showing. The FAQ section states for avatar pics:
    Why am I receiving an error while setting my avatar?
    You might receive an error while setting your avatar because of the following reasons:
    The size of the image being uploaded is greater than 1 MB.
    Select an image that is smaller than 1 MB in size. If your image is not in the jpg format and around 220x220 in pixel size, use your favorite image editor to create the image and then try uploading again.
    The file is not in the preferred file format (i.e. is not in the GIF, JPG or PNG file format).
    Convert the image you wish to upload into a GIF, JPG or PNG file and then try uploading again.
    Any help you can give is appreciated.
    used: Dos, MSDos, Win3, Win95, WinXP, Vista, Win7, and Win8 || AIX/Linux, etc: HP AIX, IBM AIX, Ubuntu, OpenSUSE, Puppy Linux, OS/2, VM/CMS, SAP

     "I just (or I think I have) updated my avatar with a .gif file..."
     Just to make it more clear... The reason I said that 'I think' I updated my avatar, is because the animated GIF file uploaded starts out exactly like my given avatar picture. So in looking at it, I don't know which one it is. All I know is that it's
    not animating... Tried IE, Firefox and Chrome... no animation is seen in the posts the last time I checked.
    used: Dos, MSDos, Win3, Win95, WinXP, Vista, Win7, and Win8 || AIX/Linux, etc: HP AIX, IBM AIX, Ubuntu, OpenSUSE, Puppy Linux, OS/2, VM/CMS, SAP

  • Creating animations with transparent backgrounds?

    I'm running into some problems when using After Effects to create animations with transparent backgrounds for Keynote...
    I use animated gifs and short quicktime movies with uniform backgrounds as source files, use color keying to take out the backgrounds, preview them to see if they look OK, render the results as RGB+alpha, and... they don't show up as transparent in Keynote. They work in Powerpoint, however. I've tried outputting as .mov, as .gif, as premultiplied vs straight alpha... no joy. Can someone explain (or point me to an explanation) of how Keynote differs from other programs in its handling of transparency? What am I missing?

    Using a TYPE_INT_ARGB BufferedImage worked beautifully. I had played around with Image for hours, but it never occurred to me that BufferedImage would be needed. :)
    many, many thanks,
    Steven

  • How do i create an animation with one frame for each layer?

    I have 76 sequential images that i've loaded as layers using bridge, then aligned using photoshop.
    I would now like to create a 76 frame animation with one animation frame for each layer
    (the layers are in sequential order).
    is there an easy way to do this
    or do i have to create 76 frames (can duplicate multiple to speed it up)
    then set layer visibility for each frame?
    thanks
    bill w
    astro.whwiii.net

    thanks for all the replies
    got it
    here's a rough draft of 2 hours of sunshine
    http://whwastro.homestead.com/files/big/31-05-2014-prom-animation.gif
    -bill w
    astro.whwiii.net

  • CSS disjointed rollovers with animation?

    im redesigning my site and for some reason my rollovers arent working. the top two thumbs are active.. nike and coke:
    http://www.toddheymandirector.com/SPOTS/index_2010.html
    would it make sense to try this in CSS? and can CSS do disjointed rollovers with animated gifs?

    They work for me, but you are not doing yourself a favor by letting the QT file auto-play. It will block UI interavctivity in many cases. As for you otehr question - an image is an image. CSS doesn't care whether the format in itself is animated or static.
    Mylenium

  • Problems with animations using key frames and other bugs

    To me, the current version of Acrobat 3D Toolkit (7.0.7) seems like a beta version -- unfortunately I payed the full price. Or maybe there are a few settings only set wrong on my system and someone can tell me how to correct this ...
    ++ Animations using key frames
    According to the manual page 86:
    <-----
    6. Ensure the time/frame line is positioned at frame 0, right-click over the time/frame line in the timeline, and then click Insert Key.
    ---->
    I cannot get this context menu option (see http://www.vornweg.de/acrobat3d/no-insert-key-option.gif )
    ++ Empty and hence almost useless Animations Options dialog
    The Animation Options dialog does not list any Sequence entries -- although there are sequences available, see http://www.vornweg.de/acrobat3d/empty-animation-options-dialog.gif.
    ++ Mixed up icon bars
    Moving icon bars around can result in a complete mix-up of unusable icons, see http://www.vornweg.de/acrobat3d/mixed-up-menus.gif
    ++ Functionless Object Position toolbar
    The object position cannot be set using the Object Position toolbar, the OK icon is deactivated all the time although the tick icon is darker green, i.e. supposedly active (see http://www.vornweg.de/acrobat3d/position-panel.gif
    ++ Missing things
    Why is there no properties panel visible all the time, displaying the properties of the selected object and allowing to change properties (e.g. positions, angles etc.)?
    Why is it impossible to view different trees at the same time (e.g. scene tree and animation tree)?
    Why is it impossible to have different models open simultaneously? (E.g. to compare settings or even to copy properties/objects from one model to the other.)
    Why is it impossible to create new folders in the scene tree? Imported folders are available, but for the scene management within Acrobat 3D I may have different requirements than the CAD designer had. (Also, I would like to put new objects in folders of my own.)
    Why is tabbing not supported more extensively? E.g. All the different trees (Folders, Scene Tree, ...) could all be put into a single tabbed panel saving valuable space on my screen but still giving easy access to all items.
    Why is there no Undo for camera position changes?
    Why is there no Undo for material edits (e.g. applying a new material to an object)?
    Why is it only possible to animate object movements, not the making visible/invisible of objects and changes of the camera position?
    Why is it impossible to save object selections? Within a larger model it always is a lot of clicking to get the view required for certain actions.
    Why are there a lot of different Display options available on-screen but when a scene is rendered into a file, Acrobat 3D uses the same display option all the time (i.e. Solid)?
    Probably this list could be extended quite heavily. And some of these missing things may be time intensive to realize (and saved for future versions), others are comparably basics now-a-days.

    I agree with the "beta" feel of the 3D Toolkit. I have been very frustrated getting animation to work well. Specifically, I made an animation that plays in Toolkit, imports and plays into Acrobat 3D, but does not play in Reader. It displays 3D and rotates, etc., but I cannot get the animaiton to play.
    The contextural menu issue you see I see also. The menu appears, but without the "add Key Frame" item. I find that if I select an object, move it a bit, move it back, then the menu will appear. (at least sometimes I think) Pretty frustrating.

  • I'm a Graphic Designer and Animator with a Mid 2012 15" MBP...Programs slowing need up grade

    Hey everyoe,
    I'm a Graphic Designer and Animator with a Mid 2012 15" MBP. My programs get REALLY SLOW, ToonBoom Harmony and Sometimes Illustrator, HELP! I upgraded my Ram to 16GB LONG time ago and it's made a big difference but still the stuff I make is semi complicated/detailed I can't imagine this is the strength of my MBP I refuse to accept that. WIth that said HELP ME PLZ!!! I have deadlines and I dont know what else to do! Steve Jobs my life is your hands right now man...

    Maz0327,
    if you boot into Safe mode, log in, and run your graphic design and animation apps, do they run just as slowly then?

  • Tween or Motion path for blank keynote with animated stars?

    I create star particle effect from this tutorial: http://www.schoolofflash.com/2008/03/flash-cs3-particle-effect/ and got help from this discussion: http://forums.adobe.com/message/5518425 in order to get what I wanted. My code is:
    var starsArray:Array = new Array();
    var myTimer:Timer = new Timer(50);
    myTimer.addEventListener(TimerEvent.TIMER, addStars);
    myTimer.start();
    addEventListener(Event.ENTER_FRAME, moveStars);
    function addStars(e:TimerEvent):void
              var star:Stars = new Stars();
              star.x = stage.stageWidth / 2;
              star.y = stage.stageHeight / 2;
              star.alpha = Math.random() * .8 + .2;
              star.scaleX = star.scaleY = Math.random() * .8 + .2;
              star.xMovement = Math.random() * 10 - 5;
              star.yMovement = Math.random() * 10 - 5;
              starsArray.push(star);
              addChild(star);
              star.cacheAsBitmap = true;
    function moveStars(e:Event):void
              for each (var star:MovieClip in starsArray)
                        star.x += star.xMovement;
                        star.y += star.yMovement;
                        star.alpha -= .01;
                        star.scaleX = star.scaleY -= .01;
                        if (star.scaleX <= 0)
                                  kill(star);
    function kill(star:MovieClip):void
              starsArray.splice(starsArray.indexOf(star), 1);
              removeChild(star);
    However, I wanted to move the star particles around. The problem is that the star isn't on the screen, but is called in the actions in the blank keynote. I don't know what I should do next to get the result. I looked up online for tweens and motion paths but all i see is that they required the star to be right on the screen, I think? I also heard something about the compiled clip but I don't know how I should go about creating one and using it to move around the stars while it's animated with all the actionscript. All I wanted is for the star particles to float around the screen (on a path that I can draw out if possible).....

    Each star is created in the addStars function. Its position is set in the first two lines:
         star.x = stage.stageWidth / 2;
         star.y = stage.stageHeight / 2;
    So, to move each star to a new location when it appears on the stage, you'll need to change the x and y property values for each star. One simple way to do that is to use that same Math.random() function.
    Try changing those first two line to:
              star.x = Math.random() * stage.stageWidth;
              star.y = Math.random() * stage.stageHeight;

  • Troubles importing Flash 10 Animation with 3D Transform

    I am looking for any workaround/experiences for importing a Flash 10 animation with 3D transforms. Currently, doing this will wig out Captivate 4 and break the embedded animation in all sorts of ways. AS3 support in Captivate is turned on and the same animation will load and play correctly if the 3D transform is removed. All other Flash 10/AS3 possibilites work including motiosn graphs and filters.
    I find the 3D transform option of Flash CS4 to be one of the most powerful features ever introduced in Flash and would allow some incredible breakthrough design possibilities for my Captivate projects, if it would just support it! Any experiences with this issue welcomed. A bug report has been submitted also, but looking for a quicker remedy.

    Problem Resolved!
    I got this tip from Vikram (Adobe Support)
    1. Open your project having Flash Player 10 animations involving 3D transforms.
    2. Click the Edit menu and select Preferences.
    3. Select "Publish settings" under the "Project" section.
    4. Check "Animations" option under the "Externalize resources" section.
    5. Press OK.
    6. Now click the publish button.
    7. In the publish dialog, select Flash Player 10 from the "Flash Player version:" drop down.
    8. Click publish.
    (F4 preview may not work, so use preview in browser)
    Also, you may need to be wary of embedded scripted symbols as they may loose reference to the parent symbol after being embedded in yoru your CP4 project containing 3D transforms. My advice here is to try to script using as much object oriented js as possible in the main timeframe.
    I am using a combination of localConnect and ExternalInterface functions to control the 3D animation from captivate quiz buttons. This process adds a whole new level of interactivity and visual interest to your captivates!

  • Trouble with animation playing correctly

    I am using Captivate 5 and Flash CS5 to create a video tutorial. I have created a few animations in Flash and imported them into Captivate without any problems; however, the last couple of animations that I have tried to import are not playing correctly. I did not change any of the settings from the first couple of animations. I am using .swf files when importing to Captivate and both the Flash file and the Captivate file are set for Action Script 3.
    The animation I'm currently working with is a simple animation of text that I have animated to stretch up and to the left then up and to the right. When I import it to Captivate there are two copies of the text: One that remains motionless and a second that animates. The other animation had a similar issue. It was basically images flying onto the screen, but when I imported it to Captivate the images doubled up and the animation was scattered and choppy.
    I would sincerely appreciate any suggestions for how to address the issue.
    ~Angela

    Hi Angela,
    We'll have to take a look at the animations. Can you share the animations with us? Please upload it on a file share like  acrobat.com, and mail me the link 'shameer at adobe dot com'.
    -Shameer

Maybe you are looking for