GIF animations load only first frame

GIF animations show up as still images. Animation only loads after right-clicking and going to image info.

You have the image.animation_mode set to none as you can see in the System Details List.
*image.animation_mode: none
You need on of the other (normal or once)

Similar Messages

  • Urgent: Gif animation shows only the last frame when reloaded

    I use ImageIcon to show gif animations on screen. I want to use only non-looping gif animation files.
    Always when I show a gif animation for the first time it runs correctly through all the frames.
    However when reloading later the same gif animation only the last frame appears. I want to see all the frames of the animation, not only the last frame.
    So for the first showing of the animation this works well:
         icon = new ImageIcon("first_animation.gif");
           label = new JLabel();
           label.setIcon(icon);Then I show another animation and also it works well:
           icon2 = new ImageIcon("second_animation.gif");
           label.setIcon(icon2);Now I would like to show the first animation again but only the last frame of that first animation appears on screen:
    label.setIcon(icon);And even this alternative way to refresh does not work:
           icon = new ImageIcon("first_animation.gif");
           label.setIcon(icon);
    How can I reload the first animation again so that it shows all the frames not only the last frame???
    I have tried for ex. commands updateUI(); and setImageObserver but they don't seem to help.
    I am only a novice so...
    Please I would really appreciate your detailed advice what lines I should rewrite in my code and how?
    Thank you very much!!

    By flagging your question "urgent", you are implying that either your question is more important than other people's questions, or your time is more valuable than mine (or someone else's answering questions here). Both are not true.

  • Only first frame played with gotoAndPlay

    Hello,
    My issue is: I have a 120 frame movieclip with a stop(); action on the first frame.  I have AS (below) that tells the mc to 'gotoAndPlay(2); But it only goes to frame 2 and stops (no action on that frame) instead of continuing to frame 120.  Here an example of the code:
    my_mc.onEnterFrame=function(){
    if((mcText1 eq "Hit")){
    _root.other_mc.gotoAndPlay(2);
    else{
    _root.other_mc.gotoAndStop(1);
    Any ideas to make the mc play automatically when the function requirements are met???
    I should know this.
    Thank you

    Each frame (thanks to onEnterFrame ) the condition (mcText1 eq "Hit") is true or false then each frame go to the frame 1 or frame 2 EVER!!.
    When the movie is going to frame 3 again is sent to frame 2
    change onEnterFrame to onLoad or call the function only once when you need
    my_mc.onLoad=function(){
    if((mcText1 eq "Hit")){
    _root.other_mc.gotoAndPlay(2);
    else{
    _root.other_mc.gotoAndStop(1);

  • Why QT logo when loading, not first frame

    I have had a page up for a month or so. Always, the first frame of the movie shows while it is loading.
    http://web.mac.com/milhug/iWeb/BacktotheLand/Again.html
    Yesterday I made some changes to the movie, and now, there is a QT logo, and when it goes, the movie is fully loaded, ready to play.
    I prefer seeing the first frame, and do not know the difference in the file format I used.
    they were both H.264, exported as full frame DVNTSC from FCP, compressed w/Compressor. I have tried many versions, and don't know the correct combination of streaming, download, fast start, etc. Or is this a new 'feature' of a QT upgrade?
    thanks for any help.
    G5 Dual 2.3   Mac OS X (10.4.8)  

    Thanks so much! that is a very intriguing aspect of QTPro!
    But at which point was the fast start feature added? Is it inherent in the H.264 codec? I did not use the 'export to QT conversion' out of FCP (where the fast start option is available). I did the compression in Compressor, where I selected various speeds in the 'Web Download-QT 6 Compatible' (Mpg4), or 'Web Streaming QT 7 Compatible' (H.264) presets.
    The H.264 versions look so much better, but WindozeXP people are getting a 'QT component not available' message, so I may have to go back to the mpg4

  • IPhoto imports ONLY first frame of iPhone 5 videos?

    Hello,
    My videos import as a single still image that represents the first frame of the video.
    Is iPhoto 7 compatible with iPhone 5 videos?  If so, what am I doing wrong? 
    Thanks in advance,
    MTeter

    You need OS X 10.6.8 or later & iPhoto 9 or later, to use your phone with your computer.

  • How to load only first set of rows only in pagination of interactive report

    Hi all,
    Iam using 3.2 x and database 10g.
    I have created interactive report and it contains 500000 records. and iam using pagination x to y but background it loads complete rows from database.
    To load complete 500000 records page taking 10 minutes.So My reqiurement is I need to load first set of rows like 500 rows and Once i click next button then only it should load next set of rows like 501 to 1000.
    Please tell any idea to resolve the above problem.
    thanks
    balu

    Balu,
    try to trace your page to see how your statement can be tuned. To do that add &p_trace=YES to the URL.
    This creates a standard Database Trace file which can be analyzed with TKPROF or SQL Developer or similiar tools.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Large(123 column) ResultSet loads only first 20 columns

    Hi,
    I have inherited an app which cannot get columns beyond 20th column on the ResultSet. Do I need to detect that whole row was not pulled into memory in this case and then refresh buffers? If so how do you do this or is there a way to control?
    vector<MetaData> colvector = rs->getColumnListMetaData();
    cout << "Number of columns " << colvector.size() << endl; // Reports 123 columns
    MetaData& colRef = colvector[i-1]; // Will work for i=1 to 20
    Type t = colRef.getAttributeType(i); // exception seems to be thrown on i=21
    int attrCount = colRef.getAttributeCount();
    cout << i << " attribute count " << attrCount << endl; // attrCount always 20
    Does AttributeCount refer to number of available columns?
    I could report the exception details if available. Code is wrapped in try{...} catch (SQLException) {...} But when error occurs control is passed to _CrtIsValidHeapPointer. Is this an indication that libs are in conflict?
    System Details: Windows XP pro SP2, VC71, Oracle 9.2.?? linking against oraocci10d.lib.
    Other code that I have admittedly not selecting so many columns works fine.

    Could you try oracle 10 (install instant client 10 or a full oracle client, whatever)?
    As far as you're using oraocci10 libraries it could be a point.
    --Andrew                                                                                                                                                                                                                                                                                                                                           

  • Exporting movies in iPhoto using 'Current' Setting, exports the first frame only

    Hi,
    When I export my iPhoto library into separate events using the 'Current' Setting, it exports all video / movie files as the original file type with a single frame in it. 
    I don't want to go through each event and drag and drop each video to the exported folder as that would be an enormous pain.  Does anyone have ideas to fix this?  I have edited some photos, so I don't want to export as 'original' if possible
    Thanks!
    iPhoto has the latest updates installed and the original videos play perfectly in iPhoto.

    Yeah, I have upgraded from previous iPhoto versions, some videos are a few years old (.MOV iPhone format) and some are only a few months old (Canon EOS .MOV format), both export only first frame.  I might have to recreate my iPhoto library and start fresh!  Currently I am exporting as 'Original' and 'Current' to two different folders, and just grabbing the videos from the original and replacing the videos in the 'Current' folder.
    LarryHN's solution works well, but when I add a second condition to select a specific event, I can't choose from a list of specific events (unlike albums).  Entering in the event title (in the Event condition) sometimes adds videos from silmilar titled events.

  • Rotoscoping - it only roto's the first frame

    What I have done:
    Created a video clip with my Canon GL2 featuring a person against a bright background.
    I then used Adobe Premier CS5 to create an AVI of the sequence. (called it ROTO4.avi)
    I then opened CS5 After Effects, imported the clip into the composition timeline.
    I then changed the framerate of the composition to 59.94 (cause a previous attempt told me to do so).
    I then went under LAYER and Open New Layer.
    I then clicked the TOP rotobrush icon (can't find another one anywhere) and began outlining my subject and de-outlining the background. I have a perfect pink line around my subject (on frame1).
    I then drag the timeline bar and it creates the (mask?) on the first frame only and no subsequent frames.
    I switch to composition view and sure enough the first frame is beautiful (subject complete, background now a black screen), but no other frames are generated rotoscooped.
    Arghhh, I've been at this for about an hour and only first frame is ROTO'd.
    Help?
    Montie

    Montie - this is the line that I have the most suspicion about:
    I then drag the timeline bar.
    What exactly are you dragging?
    The recommended way to engage Rotobrush at this point is to press Page Down to move forward a frame, or press the spacebar to begin preview, not to jump to the end of your footage. Rotobrush only analyzes frames under the playhead, and only frames that are inside a span of time near the base frame you drew the strokes on. So if you move the playhead beyond the span it won't have any frames to analyze.
    This is what a Rotobrush span looks like. The span is the gray area with < and > arrows, the base frame is the yellow mark, and the analyzed frames are the green marks extending from the base frame mark.
    Read here about base frames and spans.
    To me it sounds like you are expecting Rotobrush to do all the work magically when you go to the end of your footage, and that's not the case. It needs to analyze each frame, and you need to keep an eye on the analysis because Rotobrush isn't actually magic, it's just some very cool math.
    Note the part in that document about the default span length: 20 frames forward and 20 frames backward. The reason for the short length is because the farther you get from a base frame the larger the probability for inaccuracies. As you move forward through each frame, check for inaccuracies and draw new strokes as necessary. Each time you draw a stroke, a new base frame is created and the span is extended. If you happen to have a sequence of 20 frames that don't need corrections, you can extend the length of the span and continue. (You could extend the span to the entire length of your clip, but you still need to pay attention to the analysis and make corrections.)
    I hope that helps.
    -=TimK

  • Importing gif animations into Elements 12 on Mac

    Ok, I have searched quite extensively for a specific, accurate answer and am not
    clear about the conflicting responses I have encountered.  To wit:  I bought Elements 2
    for a PC several years ago. It had two nice features for my enjoyment of making .gif animations.
    (1) It allowed me to import the .gif animations AND all the layers.  (2) It allowed me to control
    the speed when I made my own animations and saved them in .gif format.
    However, when I bought Elements 8 for my iMac, I discovered I could not load .gif animations
    and get the frames/layers, nor could I choose any speed except .2.
    Ok, these are my specific questions:  If I order Elements 12 to run on my iMac (OS X 10.9.2)
    will it allow me to load the entire .gif animation and show the frames/layers, AND will it allow me
    to choose my own speed when saving a .gif animation.
    I know if I save an animation in .psd format that I can reload it, showing the layers.  That is not
    what I want to do.  I want to save in .gif format and load in .gif format.  Thanks!

    PSE12 should be able to open layered gifs with all the original layers intact. You need to use:
    File >> Save For Web
    When the dialog opens if you select GIF from the top dropdown list the information for sped is normally grayed out. However if you put a checkmark in the box “Animate” the fields for frame delay and looping become live. You can then change the speed and have looping forever. Then re-save.
    Why not download the trial version from the link below and use it free for 30 days. You can then see if it fully meets your needs.
      http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us&PID=2159997

  • Scaling an element in gif animation

    I try to make stars twinkle in a gif animation.
    I have frame 1, with stars and other stuff on separate layers. I make frame 2 where the star is smaller, and tween to get the frames inbetween.
    Always when I scale the star, it changes in ALL the frames, so there´s no twinkle effect. If i move it, the place is different in differernt frames, but scaling just doesn´t seem to work.
    I work mainly on CS2/mac, but tried also with CS3/win, no luck.
    What to do?

    The easiest thing to do is to put the larger star on a layer by itself, then put the smaller star on a layer by itself. Then when going through the animation frames toggle the layers of the stars on/off in each frame, then you will have to play with the number of tweens to get it just right.
    Keep in mind that the more frames you have the larger the file size.
    Hope this works for you.

  • Audio slideshow plays only first slide

    I am trying to build a musical slideshow from scratch. I created the slides as jpeg files (6 files, 56 to 80 KB each) and an aiff audio file (27 seconds, 4.6 MB). I follow the QT help instructions - slides in a folder, File > Open Image Sequence in QT, select first to make a slideshow. Then new player, open audio file, copy and paste; then paste slideshow by Edit > Add to Selection and Scale.
    The resulting QT movie appears fine, plays and shows all slides just as I wish. But when I save it, quit QT, then double-click on saved file icon, the audio all plays but ONLY THE FIRST SLIDE is shown.
    Any suggestions?
    Dual 1.25 GHz G4   Mac OS X (10.4.8)   QuickTime Pro (7.1.3)

    Thanks for the suggestion, but it doesn't help. Here's the exact sequence of my actions:
    Launch QuickTime Player
    File>New Player -> "Untitled"
    File>Open File "audio.aif" [existing file, 4.6 MB]
    Edit>Select All
    Edit>Copy
    click on "Untitled" QT window
    Edit>Paste
    rewind; plays ok = 27 sec, as intended
    File>Open Image Sequence "m1.jpg" in folder containing just this and
    5 other files = m2.jpg, m3.jpg, m4.jpg, m5.jpg, m6.jpg
    (frame rate = 1 per sec)
    -> "Untitled 2"
    View>Fit to Screen
    View>Play All Frames
    plays ok = 6 images in correct sequence, 1 per sec
    rewind
    View>Play All Frames [deselect]
    Edit>Select All ** as suggested by QuickTimeKirk **
    Edit>Copy
    click on "Untitled"
    rewind
    Edit>Select All
    Edit>Add to Selection and Scale
    View>Fit to Screen
    last image (6 of 6) shows; rewind;
    PLAYS OK = shows 6 images in correct sequence, with audio, total duration
    same as Audio.aif
    rewind
    Edit>Select All
    File>Save As "qtmovie.mov"
    Quit QuickTime Player
    Launch QuickTime Player
    File>Open File "qtmovie.mov"
    audio plays correctly, but ONLY FIRST FRAME SHOWS
    Help, anybody?
    Dual 1.25 GHz G4   Mac OS X (10.4.8)   QuickTime Pro (7.1.3)

  • Gif Animation, Ausgabe Web & Geräte

    Hallo Zusammen,
    Vielleicht kann mir jemand helfen, denn ich habe keine Ahnung woran dies liegen könnte.
    Ich habe im Photoshop eine Gif-Animation (CS6) über Zeitleisten-Frames erstellt.
    Durch ein-/ausblenden verschiedener Ebenen habe ich die einzelnen Frames erstellt die in vorgegebener Zeitabfolge wunderbar funktionieren. Export für Web &amp; Geräte als gif. Ziehe ich diese erstellte gif Datei direkt auf den Browser, klappt alles fehlerfrei und genauso wie es sein soll. Jetzt ist vermehrt passiert, das diese gifs direkt auf der URL verlinkt nicht mehr so funktionieren wie sie sollten. Frame aus z.B. 5 Textänderungen werden nicht mehr richtig abgespielt. Die Texte bleiben von jedem Frame leicht transparent erhalten und lagern sich übereinander. Kennt dieses Problem jemand? Habt Ihr einen Rat was ich falsch mache und anders machen könnte? Exporteinstellungen gif-web vielleicht? Oder kann das Problem ein Mac/Pc Problem sein?
    Wirklich zum verrückt werden, denn im grunde mach ich nichts anders als früher
    mit CS 5/5.5, hoffe jemand kann mir helfen!
    Danke, Lil

    Seems valid enough to me, insofar as Adobe has a prominent ad across the top.  That would *technically* make your post sort of spam-like, Chris.
    Seriously, thanks for that link - it made me smile.
    But they were all pretty short. 
    -Noel

  • Loading .gif animations into Photoshop Elements 8 for Mac

    For years I used Photoshop Elements 2 for Windows to make .gif animations with great success. 
    Then I switched to a Mac and bought Elements 8 for Mac.  Now, I am finding out that I can not load any
    of the animations I made using Elements 2 into 8.  (And yet I can load animations I made using 8 into 2.)
    In fact, I can not load any .gif animations into 8, other than if I make one and save it
    as .psd.  8 allows me to make them, but not load them as .gifs.
    My question:  Is there an easy way to load .gif animations into PS Elements 8 so a
    person can work on the individual frames?  Am I going to have to convert any .gif animation I
    want to import into 8 first into .psd?  All I seem to get when I try to load a .gif is the message
    "This is an animated gif.   You can only view one frame." I have searched manuals and the
    Net looking for a specific method of using PSE8 to load gif animations intact (not just one frame). 
    Is it possible?  Thanks. (I also have noticed that Elements 8 will not allow me to change the frame
    speed -- it is unchangeable at .2)

    Dear Ms. Brundage -
    I followed the directions detailed in your blog entitled "Moving a Catalog from Windows to Mac" as well as your description of the process on page 58 of your book "Photoshop Elements 9 - the missing manual." 
    I installed PE9 for Windows and converted my catalog.  I then backed up that catalog to an external hard drive.  I then connected the hard drive to my MAC on which I also installed Photoshop Elements 9 for MAC.  I opened the Organizer and tried to restore that converted catalog.  However, for each file in the converted catalog, a dialog box opened that said "Could not restore file:  /Volumes/Name of External Hard Drive/Filename.JPG."
    I then made a second backup of the converted catalog using Photoshop Elements 9 for Windows and then tried to restore that catalog again on the MAC using Photoshop Elements 9 for MAC, again to no avail.
    Do you have any idea what the problem may be?
    Thanks again.
    Steve Haas
    [email protected]
    [email protected]
    (770) 313-0038

  • Reading gif animation frame rates and such?

    Okay so I've been coding java for some time now and I mostly just make applications for fun.
    I usually don't have to get help for coding so this is my first post here...
    The current goal I have is a application that displays animations (may turn into a animation editor)
    I've tried searching on google alot for the answer but no justice :(
    Okay so I have the image loading, a semi-nice gui, the image displays and cycles through the animation.
    But the thing that I want is for the image cycle to actually know the real frame rate of the gif instead of having to define it myself.
    Is there anyway to do this? I was reading up and the only solution I found was to read the bytes of the file itself but that would take alot of work and I haven't got a clue on how to do that.
    This is my code for loading the animation:
    public void loadAnimation(String name) {
            final File imageName = new File(name);
            new Thread() {
                @Override
                public void run() {
                    for(int i = 0; i < animationImage.length; i++) {
                        if(animationImage[i] != null) {
                            animationImage.flush();
    animationImage[i] = null;
    if(lastImageDrawn != null) {
    lastImageDrawn.flush();
    lastImageDrawn = null;
    lastImageIndex = 0;
    ImageReader reader = ImageIO.getImageReadersByFormatName("gif").next();
    readingImage = false;
    try {
    reader.setInput(new FileImageInputStream(imageName));
    totalImages = reader.getNumImages(true);
    imageProgressBar.setMax(totalImages);
    readingImage = true;
    int currentImage = 0;
    while(readingImage) {
    BufferedImage image = reader.read(currentImage);
    animationImage[currentImage] = image;
    currentImage++;
    imageProgressBar.setValue(currentImage);
    imageProgressBar.setText("Loaded frame: " + currentImage + " / " + totalImages + " - " + imageProgressBar.getPercent() + "%");
    repaint();
    image.flush();
    if(currentImage == reader.getNumImages(true)) {
    readingImage = false;
    reader.reset();
    reader.dispose();
    } catch (IOException e) {
    e.printStackTrace();
    }.start();
    }If you guys could help it'd be very appreciated.
    EDIT: Oh yeah, I don't want to use any library's I usually like coding things myself...
    Edited by: steve4448 on May 7, 2010 11:45 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Given the following declarations which completely define a GIF animation,
    //information obtained from source file/url.
    private Image[] images;
    private short[] durations; //hundredths of a second
    private short[] xOffsets;
    private short[] yOffsets;
    private Disposal[] disposalMethods;
    //The background color of the global pallete in the GIF file is not
    //used.  It is here merely in case you want to change the implementation
    //of RESTORE_TO_BACKGROUND disposal method.
    private Color backgroundColor;the following method will load all this information from a GIF file. Keep [this page|http://java.sun.com/javase/6/docs/api/javax/imageio/metadata/doc-files/gif_metadata.html] open in a web browser as you look at the code. The class referred to as "Disposal" in the code is an enum class. It's provided in my post below this one.
    /**Loads all the frames in an src from the given ImageInputStream.
    * Furthermore, if the src references a GIF file then information
    * on frame durations, offsets, and disposal methods will be extracted
    * (and stored).  The src stream is not closed at the end of the method.
    * It is the duty of the caller to close it if they so wish.*/
    private void loadFromStream(ImageInputStream imageStream)
            throws java.io.IOException {
        //obtain an appropriate src reader
        java.util.Iterator<ImageReader> readers =
                ImageIO.getImageReaders(imageStream);
        ImageReader reader = null;
        while(readers.hasNext()) {
            reader = readers.next();
            String metaFormat = reader.getOriginatingProvider()
                    .getNativeImageMetadataFormatName();
            if("gif".equalsIgnoreCase(reader.getFormatName()) &&
               !"javax_imageio_gif_image_1.0".equals(metaFormat)) {
                continue;
            }else {
                break;
        if(reader == null) {
            throw new java.io.IOException("Can not read image format!");
        boolean isGif = reader.getFormatName().equalsIgnoreCase("gif");
        reader.setInput(imageStream,false,!isGif);
        //before we get to the frames, determine if there is a background color
        IIOMetadata globalMeta = reader.getStreamMetadata();
        if(globalMeta != null && "javax_imageio_gif_stream_1.0".equals(
                globalMeta.getNativeMetadataFormatName())) {
            IIOMetadataNode root = (IIOMetadataNode)
                    globalMeta.getAsTree("javax_imageio_gif_stream_1.0");
            IIOMetadataNode colorTable = (IIOMetadataNode)
                    root.getElementsByTagName("GlobalColorTable").item(0);
            if (colorTable != null) {
                String bgIndex = colorTable.getAttribute("backgroundColorIndex");
                IIOMetadataNode colorEntry = (IIOMetadataNode) colorTable.getFirstChild();
                while (colorEntry != null) {
                    if (colorEntry.getAttribute("index").equals(bgIndex)) {
                        int red = Integer.parseInt(colorEntry.getAttribute("red"));
                        int green = Integer.parseInt(colorEntry.getAttribute("green"));
                        int blue = Integer.parseInt(colorEntry.getAttribute("blue"));
                        backgroundColor = new java.awt.Color(red, green, blue);
                        break;
                    colorEntry = (IIOMetadataNode) colorEntry.getNextSibling();
        //now we read the images, delay times, offsets and disposal methods
        List<BufferedImage> frames    = new ArrayList<BufferedImage>();
        List<Integer>       delays    = new ArrayList<Integer>();
        List<Integer>       lOffsets  = new ArrayList<Integer>();
        List<Integer>       tOffsets  = new ArrayList<Integer>();
        List<Disposal>      disposals = new ArrayList<Disposal>();
        boolean unkownMetaFormat = false;
        for(int index = 0;;index++) {
            try {
                //read a frame and its metadata
                javax.imageio.IIOImage frame = reader.readAll(index,null);
                //add the frame to the list
                frames.add(forceNonCustom((BufferedImage) frame.getRenderedImage()));
                if(unkownMetaFormat)
                    continue;
                //obtain src metadata
                javax.imageio.metadata.IIOMetadata meta = frame.getMetadata();
                IIOMetadataNode imgRootNode = null;
                try{
                    imgRootNode = (IIOMetadataNode)
                            meta.getAsTree("javax_imageio_gif_image_1.0");
                }catch(IllegalArgumentException e) {
                    //unkown metadata format, can't do anyting about this
                    unkownMetaFormat = true;
                    continue;
                IIOMetadataNode gce = (IIOMetadataNode)
                    imgRootNode.getElementsByTagName("GraphicControlExtension").item(0);
                delays.add(Integer.parseInt(gce.getAttribute("delayTime")));
                disposals.add(Disposal.disposalForString(gce.getAttribute("disposalMethod")));
                IIOMetadataNode imgDescr = (IIOMetadataNode)
                    imgRootNode.getElementsByTagName("ImageDescriptor").item(0);
                lOffsets.add(Integer.parseInt(imgDescr.getAttribute("imageLeftPosition")));
                tOffsets.add(Integer.parseInt(imgDescr.getAttribute("imageTopPosition")));
            } catch (IndexOutOfBoundsException e) {
                break;
        //clean up
        reader.dispose();
        //copy the source information into their respective arrays
        if(!frames.isEmpty()) {
            images = frames.toArray(new BufferedImage[]{});
        if(!delays.isEmpty()) {
            durations = new short[delays.size()];
            int i = 0;
            for (int duration : delays)
                durations[i++] = (short) (duration == 0?DEFAULT_DURATION:
                                                        duration);
        if(!lOffsets.isEmpty()) {
            xOffsets = new short[lOffsets.size()];
            int i = 0;
            for(int offset : lOffsets)
                xOffsets[i++] = (short) offset;
        if(!tOffsets.isEmpty()) {
            yOffsets = new short[tOffsets.size()];
            int i = 0;
            for(int offset : tOffsets)
                yOffsets[i++] = (short) offset;
        if(!disposals.isEmpty()) {
            disposalMethods = disposals.toArray(new Disposal[]{});
    }

Maybe you are looking for

  • Follow Up Question about shadow Images

    Hello! A couple weeks ago I asked about drop shadows set with images and I was given some helpful advice. Something came up and I wasn't able to get back to putting the information into application until a couple days ago. Forgive my ignorance but an

  • Error in license check - Error getting the hardware key

    Hello, I'm trying to run SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition but I still have a issue to log on, message : "error in license check" I try everything I found in forums, I have tested the license, see the trace bel

  • Audio Manager showing less space on Memory Card th...

    Hello, I use a Nokia N70, and am trying to transfer music files to the memory card. I have the "E" (memory card) option highlighted as the device to copy files to, however it will not let me transfer more than a few tracks before it comes up saying "

  • Calculating percent of total

    Hello, everyone I have the following simple business question at hand: Show top ten merchants with the highest sales numbers in the region and their percentages of total sales in the region. It looks simple, but I'm not sure if it's possible to imple

  • Transaction launcher gives blank screen

    Hii All I have configured a TL to launch Tx. - crmd_order(CRM)  but it displays a blank screen. I have already tried the following (by referring to SDN posts) :-   1.  Notes 1620007 and 1521043 are already implemented in our system.   2.  Maintained