An animated gif which dasnt refreshed..

Hi all !
First let me apologize for my bad english.
Secondly, I tried to show on the screen transpaernt animated gif, in another words, sprite(character) which walk on the desktop, well, i succsed, but there is a problem, if the sprite move is head, the on the screen you will see the sprite before and after the movmenet, there is a trail.
i hope that you could help me.
my code is very simple at this moment:
public class WS extends JWindow
     Image img=null;
     Image img2=null;
     Toolkit tk=null;
     public WS()
          tk=Toolkit.getDefaultToolkit();
          this.setSize(500, 500);
          this.setLocation(500, 500);
          img2=tk.getImage("MijalNo.gif");
          this.prepareImage(img2, null);
          this.setVisible(true);
     public void paint(Graphics g)
          g.drawImage(img2, 0, 0, this);     
}thank you.

For those who doenst understand my problem, the here is the printscreen:
http://members.lycos.co.uk/ofir3dvb2/theprob.JPG
Edited by: ofir3dvb on Mar 16, 2008 5:08 AM

Similar Messages

  • Animated gif and page refresh problem

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

  • Complaint: Animated GIF, Photoshop CS4

    I am a freelance print designer. Needless to say that I have upgraded to the Design Standard Edition of the Creative Suite 4. Still, some customers ask me to do their web banners, too.
    Fact 1:
    There is an animation palette in Photoshop CS4 Standard.
    Fact 2:
    You can create animations with that palette.
    Fact 3:
    You can save the animation as an animated GIF.
    Fact 4:
    Opening the animated GIF, you only get the first frame, so you cannot edit the animation or content inside the GIF.
    Fact 5:
    I need to alter a few animated GIFs which I created several years ago using Photoshop CS2. Due to a harddrive crash, I don't have access to the original layered PSD files any more.
    Fact 5:
    Photoshop CS4, the most advanced image editing tool on the face of the earth, is absolutely useless at this point, and I have to find freeware or shareware to do the job. Finding and purchasing this sort of software is MY time, and that is MY money.
    Whatever drove Adobe to cripple Photoshop CS4 Standard, whatever drove them to expel the simple "Open Animated GIF" feature from Photoshop CS4, it was the wrong decision.
    This, Adobe, is a customer complaint. Take it serious. There is competition, and I hear a lot about GIMP these days.
    Frustrated,
    Gero

    I know this thread is getting on a bit now, but I do have the answers.
    Quite simply, as far as I can tell, this cannot be done without Quicktime installed.
    To open an animated gif in CS4 on a PC:
    1. Go to File->Import->Video Frames to Layers
    2. In the File Name box type “*” ( or you can type the name manually) The window will now show every type of file
    3. Select your gif and you are done
    To open animated gif in CS4 on a MAC:
    1.  Go to open, select your GIF, then in the bottom left corner of the open file dialogue box select Quicktime Movie as the format, then open your GIF.
    2.  You’ll need to open your animations window by going to window -> animation. This will bring up the time line.
    3.  If you want to have all of the frames broken up into layers, click the options in the animation window, and select “Flatten Frames into Layers”.
    This will give you access to all the frames as layers and you can now edit the GIF as though it was a movie.
    I hope this helps to ease somebody's frustration.

  • Animated gif in mail are not visible after upgrade to mavericks

    Hi,
    I use a animated gif in my signature in mail. This gif was playing normally (like a animated gif) in mountain lion when I writes a new message. After upgrading to mavericks I can't see the animated gif playing. I just see the first frame. However when I send a mail to my iPad using iOS 7 the animated gif is playing normally.
    Thanx for every answer!

    I'm having this issue as well — I can no longer send animated gifs in Mail with Mavericks (10.9.0). The image retains its full image size and remains a gif format, but does not play, just sits static. This also affects forwarding animated gifs — which play fine in the mail window — they are static in the compose window and are sent static.

  • Problem to create animated gif using transparent frames

    Hi, everyone:
    My name is Edison, I am playing with Gif89Encoder utility classes to make an animated gif which is a requirement for my course work.
    I got some problem about the transparent frames. I used the png image as the frame to create the animated gif,
    those pngs have transparent colors and the background is totally transparent, when i create the animated the gif with those
    frames, the animated gif display the colors but without transparency for those colors, but the background is transparent as expected.
    I am not sure if I should IndexGif89Frame or DirectGif89Frame for the colors from the Gif89encoder package.
    Is there anyone got the same problem and knows how to fix it?
    The following is how i setup the colors in my png file, the alpha channel is 80.
    Color[] colours = new Color[7];
              colours[0] = new Color(255, 255, 255, 0);
              colours[1] = new Color(128, 128, 255, 80);
              colours[2] = new Color(128, 0, 128, 80);
              colours[3] = new Color(0, 128, 128, 80);
              colours[4] = new Color(128, 128, 0, 80);
              colours[5] = new Color(204,102,255,80);
              colours[6] = new Color(255, 0, 0, 80);The code i did to generate gif:
    public void run89Gif()
            Image[] images = new Image[4];    
            try{
                images[0] = ImageIO.read(new File("D:/temp/0.png"));
                images[1] = ImageIO.read(new File("D:/temp/1.png"));
                images[2] = ImageIO.read(new File("D:/temp/2.png"));
                images[3] = ImageIO.read(new File("D:/temp/3.png"));
                OutputStream out = new FileOutputStream("D:/temp/output.gif");
                writeAnimatedGIF(images,"Empty annotation", true, 1, out);         
                images = null;
            }catch(IOException er){ }
    static void writeAnimatedGIF(
            Image[] still_images,
                String annotation,
                boolean looped,
                double frames_per_second,
                OutputStream out) throws IOException
            Gif89Encoder gifenc = new Gif89Encoder();
            for (int i = 0; i < still_images.length; ++i){
               gifenc.addFrame(still_images);
    gifenc.setComments(annotation);
    gifenc.setLoopCount(looped ? 0 : 1);
    gifenc.setUniformDelay((int) Math.round(100 / frames_per_second));
    gifenc.encode(out);
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi, everyone:
    My name is Edison, I am playing with Gif89Encoder utility classes to make an animated gif which is a requirement for my course work.
    I got some problem about the transparent frames. I used the png image as the frame to create the animated gif,
    those pngs have transparent colors and the background is totally transparent, when i create the animated the gif with those
    frames, the animated gif display the colors but without transparency for those colors, but the background is transparent as expected.
    I am not sure if I should IndexGif89Frame or DirectGif89Frame for the colors from the Gif89encoder package.
    Is there anyone got the same problem and knows how to fix it?
    The following is how i setup the colors in my png file, the alpha channel is 80.
    Color[] colours = new Color[7];
              colours[0] = new Color(255, 255, 255, 0);
              colours[1] = new Color(128, 128, 255, 80);
              colours[2] = new Color(128, 0, 128, 80);
              colours[3] = new Color(0, 128, 128, 80);
              colours[4] = new Color(128, 128, 0, 80);
              colours[5] = new Color(204,102,255,80);
              colours[6] = new Color(255, 0, 0, 80);The code i did to generate gif:
    public void run89Gif()
            Image[] images = new Image[4];    
            try{
                images[0] = ImageIO.read(new File("D:/temp/0.png"));
                images[1] = ImageIO.read(new File("D:/temp/1.png"));
                images[2] = ImageIO.read(new File("D:/temp/2.png"));
                images[3] = ImageIO.read(new File("D:/temp/3.png"));
                OutputStream out = new FileOutputStream("D:/temp/output.gif");
                writeAnimatedGIF(images,"Empty annotation", true, 1, out);         
                images = null;
            }catch(IOException er){ }
    static void writeAnimatedGIF(
            Image[] still_images,
                String annotation,
                boolean looped,
                double frames_per_second,
                OutputStream out) throws IOException
            Gif89Encoder gifenc = new Gif89Encoder();
            for (int i = 0; i < still_images.length; ++i){
               gifenc.addFrame(still_images);
    gifenc.setComments(annotation);
    gifenc.setLoopCount(looped ? 0 : 1);
    gifenc.setUniformDelay((int) Math.round(100 / frames_per_second));
    gifenc.encode(out);
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Animated gif in signature

    Hey Guys
    Is there any way of including a small animated gif in my signature?
    I tried just copying and pasting but then only the first frame displays.
    Thanks in advance

    I'm having this issue as well — I can no longer send animated gifs in Mail with Mavericks (10.9.0). The image retains its full image size and remains a gif format, but does not play, just sits static. This also affects forwarding animated gifs — which play fine in the mail window — they are static in the compose window and are sent static.

  • Animated gif is tiling when opened on iPad email

    I am trying to design a simple email blast with an animated gif which i have been doing so for 5 years. today, i designed a new email blast for my client and it works perfectly on all my email accounts including mac mail and thunderbird. however, when i view the same email on my ipad3 i find the art work is tiling both on the x and y axis and the animation no longer works. the html form  i used for this is:
    <html>
    <head>
    <title>www.drotardesign.com </title>
    </head>
    <body>
    <table width="500" border="0" align="center" cellpadding="0"
    cellspacing="10">
    <style>
    a:link { color:#F60; text-decoration: none;}
    a:visited { color:#900;}
    a:hover { color:#F33;}
    </style>
      <tr>
        <td width="400"><div align="center"><font color="black" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong> drotardesign is proud to announce the release of his newest website for Director John Behring
    at</strong></font><strong><font color=”red” size="5" face="Verdana, Arial, Helvetica, sans-serif" ><br>
            <a href="http://www.johnbehring.tv">www.johnbehring.tv </a></font></strong></div></td>
      </tr>
    </table>
    <table width="600" height="600" border="0" align="center" cellpadding="0" cellspacing="0" background="http://www.johnbehring.tv/email/hero.gif">
      <tr>
        <td> </td>
      </tr>
    </table>
    <table width="500" border="0" align="center" cellpadding="0" cellspacing="10">
      <tr>
        <td width="500"><div align="center"><font color="#000" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong>drotardesign.com specializes in HTML5 | jQuery | Ajax | PhP | Flash | Design & Programming for Smart Phones, Tablets & the Web. Please visit his definitive portfolio @ </strong></font><strong><font color="#FFFFFF" size="4" face="Verdana, Arial, Helvetica, sans-serif"><br>      
    <a href="http://www.drotardesign.com">www. drotardesign.com </a></font></strong></div></td>
      </tr>
    </table>
    </body>
    </html>

    Hi Tom
    The email language is in English, and it is the only email source that seems to suffer from this issue.  Its distributed weekly but I only noticed the problem a few months back - prior to that it was fine.
    Ordinarily I wouldn't be too hung up about it as I can always read on another device or even log into my gmail from the safari browser (where it renders perfectly) - but given it displays without issue on the ipad, I was just curious to see if there was some config issue on the phone.
    Have attached a screenshot to see if it helps.  You'll see that the mail begins out normally in English and then deteriorates after a few sentences, possibly initially starting with the first use of the € Euro symbol.
    Rgds
    SPK

  • Saving animated gif error - canvas size too big?

    Hi,
    i have been asked to create an animated gif which has a snow effect in the background. The animation runs pretty well using the pattern style to move the animated snow down. The problem is when I try to export the animation the save for web dialogue window freezes and I can't quit photoshop. I have tried to make the canvas (image size) smaller and it works.
    Is there a memory problem with creating animations in Photoshop if the document size is too big, im running a 3000x1000px at 72dpi
    TThe animation would be used on a web app, which a script could probably do a better job, but I need to try this first.
    thanks
    lister

    Something is very wrong here. The point behind using GIFs is that they are small and OK to put on a Web site.
    First thing: forget all about PPI - this has absolutely no relevance to Web/screen images; it is only used for printing. You need to think about the pixel size.
    So, how big in pixels are your starting images?
    How big do you want the resulting GIF to be? Again, you have to decide in pixels, as the viewing size will depend upon screen resolution of the person looking at it. You can use a notional PPI of 70-100 to guess how big it will be in inches, but that's all it is - a guess.
    Is this getting you going in the right direction?
    I cannot resist commenting that I hate almost all animated GIFs as they reduce Web site usability so much.

  • Animated gif jerky in Safari 7

    I have a website with a page-loading animated gif, which stutters badly the first time a page is loaded. In subsequent re-loadings of the page the gif animation is smooth. This problem only occurs in Safari 7.0.1, not other browsers. In fact before I upgraded to Mavericks, it worked fine on Safari, too (Mountain Lion). Please help.

    I also noticed this today, and it seems that for some reason the frame rate of animated GIFs is limited to 10 frames per second, or a minimum delay of 100msec per frame. This animation should loop every second: http://www.dr-lex.be/tmp/Rotation1Sec.gif
    In Firefox it behaves correctly, but if you time it in Safari, you'll see that it takes 5 seconds per loop, because it has 50 frames.
    By the way, QuickTime Player can also play GIF animations and it plays them at the correct speed.
    It appears this bug is not in Safari itself, but somewhere deeper in some framework. The bug ID is 5815212.

  • Refreshing animated gif in Jlabel

    Hi,
    I've created a GUI for a cashmachine application and have the problem that my animated GIF's work on the first call, but only display the last frame of the animation on subsequent calls.
    I've tried alot of things, including validate, repaint, refresh but im running out of ideas!
    I have come to this assumption because I have created a copy of the animation and imported that on the second call and it works like it should. However once again on subsequent calls it simply displays the last from and doesn't animate.
    The code looks like this:
    public JLabel getInsertCardGraphic() {
              /* Imports the enter card gif */
              ImageIcon enterCardGraphic= new ImageIcon(LOCATION+"moving-card2.gif");
              JLabel enterCardHolder = new JLabel(enterCardGraphic);
              return enterCardHolder;
         }which is called from:
    public void actionPerformed(ActionEvent evt) {
              playBeep();          //not related to problem     
              eastPane.removeAll();
              eastPane.add(getInsertCardGraphic(), BorderLayout.CENTER); //called here
              eastPane.add(getCashSlotImage(), BorderLayout.SOUTH);
              eastPane.validate();
              String cardNum = cardlist.getSelectedItem().toString(); //unrelated code
              char[] pinArray = new char[4];
              pinArray[0] = cardNum.charAt(12);
                    pinArray[1] = cardNum.charAt(8);
                    pinArray[2] = cardNum.charAt(4);
                    pinArray[3] = cardNum.charAt(0);
              String encryptedPIN = new String(pinArray);
              // Tell controller that a card has been entered.
              Controller.getInstance("Ipl/ATM/Model/Model").cardEntered( cardlist.getSelectedItem().toString(), encryptedPIN);
         }if anyone has any suggestions on what I should do I will be extremely greatful!!
    Cheers,
    Hakan
    Edited by: hakz on Nov 13, 2007 5:01 AM

    Animated gif is working fine for me.
    You can check the delay time between the images in the gif, to see that it's not too short.
    Here's a simple example:import java.net.URL;
    import javax.imageio.ImageIO;
    import javax.imageio.stream.ImageInputStream;
    import javax.swing.ImageIcon;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import com.sun.imageio.plugins.gif.GIFImageMetadata;
    import com.sun.imageio.plugins.gif.GIFImageReader;
    public class AnimatedGifTest {
        public static void main(String[] args) {
            try {
                JFrame frame = new JFrame();
                frame.setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE);
                URL url = new URL("http://www.gifanimations.com/action/SaveImage?path=/Image/Animations/Cartoons/~TS1176984655857/Bart_Simpson_2.gif");
                frame.add(new JLabel(new ImageIcon(url)));
                frame.pack();
                frame.setVisible(true);
                // Read the delay time for the first frame in the animated gif
                GIFImageReader reader = (GIFImageReader) ImageIO.getImageReadersByFormatName("GIF").next();
                ImageInputStream iis = ImageIO.createImageInputStream(url.openStream());
                reader.setInput(iis);
                GIFImageMetadata md = (GIFImageMetadata) reader.getImageMetadata(0);           
                System.out.println("Time Delay = " + md.delayTime);
                reader.dispose();
                iis.close();
            } catch (Exception e) {e.printStackTrace();}
    }

  • Animated gif in a JButton which is a CellRenderer...

    I'm currently dealing with quite a huge thing...
    My cellRenderer is here to give a button aspect, this button has 3 kind of icons in fact :
    a cross when the line is ready to be treated
    a loading animation while in treatment... and here is the problem
    a tick whe the line has been treated
    i see the loader (but not always...) and not animated at all ...
    I change the states of the button in aother class, which has its own thread....
    .. as for no as see the lines being ticked line by line, cool, but if the loader could move between the 2 step, it would be perfect..
    Here is my class :
    * Create a special cell render for the first column of the images table
    * This cell render let us display a JButton associated with the given file in order
    * to permit its deletion from the tablelist
    * @author Gregory Durelle
    public class DeleteCellRender extends JButton implements TableCellRenderer , Runnable{
         private static final long serialVersionUID = 1L;
         int row;
         JTable table;
         public DeleteCellRender(){
             this.setIcon(Smash.getIcon("cross.png"));
              this.setBorderPainted(false);
              this.setForeground(Color.WHITE);
              this.setOpaque(false);
              this.setFocusable(false);
         public Component getTableCellRendererComponent( JTable table, Object value,boolean selected, boolean focused, int row, int column) {
              this.setBackground(table.getBackground());
              if(((DataModel)table.getModel()).getImageFile(row).isSent()){
                   this.setIcon(Smash.getIcon("tick.png"));//Smash is my main class & getIcon a static method to retrieve icons throug getRessource(url) stuff
                   this.setToolTipText(null);
              else if(((DataModel)table.getModel()).getImageFile(row).isSending()){
                   this.setIcon(Smash.getIcon("loader.gif")); //HERE IS THE PROBLEM, IT SHOULD BE ANIMATED :(
                   this.setToolTipText(null);
                   this.row=row;
                   this.table=table;
                 Thread t = new Thread(this);
                 t.start();
              else{
                   this.setIcon(Smash.getIcon("cross.png"));
                   this.setToolTipText("Delete this image from the list");
              return this;
         public void run() {
              while(true){
                   repaint();//SEEMS TO DO NO DIFFERENCE...
    }I tried to add a no-ending repaint but it does not make any difference... so if the Runnable annoy you, consider it deosn't exist ;)
    Someone has any idea of how to make an animated gif in a JButton which is in fact a CellRenderer ??....
    .. or maybe a better idea to make the loader appearing at the place of the cross, before the appearition of the tick....
    Edited by: GreGeek on 11 juil. 2008 23:04

    whooo :( you mean making a customized button ?
    like : public class MyButton extends AbstractButton{
       public void paintComponents(Graphics g){
          ...//img1 - wait 15ms - img2 - wait15ms - img3 - etc
    }that would be a solution, but i was pretty sure it would be possible to do more simple, and that i only forgot a very small thing to make it work...

  • Resized animated gif ImageIcon not working properly with JButton etc.

    The problem is that when I resize an ImageIcon representing an animated gif and place it on a Jbutton, JToggelButton or JLabel, in some cases the image does not show or does not animate. More precicely, depending on the specific image file, the image shows always, most of the time or sometimes. Images which are susceptible to not showing often do not animate when showing. Moving over or clicking with the mouse on the AbstractButton instance while the frame is supposed to updated causes the image to disappear (even when viewing the non-animating image that sometimes appears). No errors are thrown.
    Here some example code: (compiled with Java 6.0 compliance)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test
         public static void main(String[] args)
              new Test();
         static final int  IMAGES        = 3;
         JButton[]           buttons       = new JButton[IMAGES];
         JButton             toggleButton  = new JButton("Toggle scaling");
         boolean            doScale       = true;
         public Test()
              JFrame f = new JFrame();
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel p = new JPanel(new GridLayout(1, IMAGES));
              for (int i = 0; i < IMAGES; i++)
                   p.add(this.buttons[i] = new JButton());
              f.add(p, BorderLayout.CENTER);
              f.add(this.toggleButton, BorderLayout.SOUTH);
              this.toggleButton.addActionListener(new ActionListener() {
                   @Override
                   public void actionPerformed(ActionEvent e)
                        Test.this.refresh();
              f.setSize(600, 300);
              f.setVisible(true);
              this.refresh();
         public void refresh()
              this.doScale = !this.doScale;
              for (int i = 0; i < IMAGES; i++)
                   ImageIcon image = new ImageIcon(i + ".gif");
                   if (this.doScale)
                        image = new ImageIcon(image.getImage().getScaledInstance(180, 180, Image.SCALE_AREA_AVERAGING));
                   image.setImageObserver(this.buttons);
                   this.buttons[i].setIcon(image);
                   this.buttons[i].setSelectedIcon(image);
                   this.buttons[i].setDisabledIcon(image);
                   this.buttons[i].setDisabledSelectedIcon(image);
                   this.buttons[i].setRolloverIcon(image);
                   this.buttons[i].setRolloverSelectedIcon(image);
                   this.buttons[i].setPressedIcon(image);
    Download the gif images here:
    http://djmadz.com/zombie/0.gif
    http://djmadz.com/zombie/1.gif
    http://djmadz.com/zombie/2.gif
    When you press the "Toggle scaling"button it switches between unresized (properly working) and resized instances of three of my gif images. Notice that the left image almost never appears, the middle image always, and the right image most of the time. The right image seems to (almost) never animate. When you click on the left image (when visble) it disappears only when the backend is updating the animation (between those two frames with a long delay)
    Why are the original ImageIcon and the resized ImageIcon behaving differently? Are they differently organized internally?
    Is there any chance my way of resizing might be wrong?

    It does work, however I refuse to use SCALE_REPLICATE for my application because resizing images is butt ugly, whether scaling up or down. Could there be a clue in the rescaling implementations, which I can override?
    Maybe is there a way that I can check if an image is a multi-frame animation and set the scaling algorithm accordingly?
    Message was edited by:
    Zom-B

  • Why would some animated gifs loop some not? (all do on other browsers)

    Hello. I have 2 different animated gifs on the site I'm building with Weebly. One of them is a loop which works just fine. The other gif is made to just happen once. However, it will not replay when its page is refreshed or revisited (it does replay on other browsers). So I'm wondering what can be done to fix this. The page is http://www.backeze.com/about-us--contact.html
    Thanks very much for your help ~
    Les

    Yes, its there. Also, when I right click on the image and select VIEW IMAGE INFO it will replay. thx

  • Safari corrupt transparency in animated GIFs

    I am running Safari 4.0.4 under Snow Leopard 10.6.2 on an iMac (mid-2007) and am having issues with animated gifs on websites displaying with fringes of mis-coloured pixels where they should be transparent.
    Annoyingly, the issues are intermittent. I can find a bad GIF, see mis-coloured pixels, refresh the cache and sometimes it will be fine, sometimes it will show mis-coloured pixels again but in different places and colours.
    Here are two screenshots of the issue. I have cropped the GIF, zoomed it 200% and saved it static for you to see the problem.
    Example 1 : http://www.dcoffey.co.uk/images/BadGif1.jpg
    This was supposed to be an animated GIF of the Scottish flag and about every 2s (which is the length of the animation), the border of mis-coloured pixels flashes off then back again.
    Example 2 : http://www.dcoffey.co.uk/images/BadGif2.jpg
    This was a snapshot of an animated GIF from DeviantART. The original is here : http://TheUncle2k.deviantart.com/art/glomppoke-146127118
    When I save the GIF to Desktop and view the individual frames in Preview, they all look perfect but if I hold the cursor down and let it flick through them all, I get the corruption appearing occasionally (Example 2 original shows it on the second frame of the original).
    Any clues?

    HI Daniel,
    Run the Apple Hardware Test from your iMac install disc to make sure it's not a video or graphics card problem.
    http://support.apple.com/kb/HT1509
    If everything is ok there boot from your install disc and run Disk Utility to make sure there aren't any errors on the the startup disk.
    Insert your install disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    *(Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)*
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
    Select your start up disk and click Restart
    While you have the Disk Utility window open, look at the bottom of the window. Where you see Capacity and Available. *Make sure there is always 10% to 15% free disk space*
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    Go here for trouble shooting 3rd party plugins or input managers which might be causing the problem.
    http://support.apple.com/kb/TS1594
    Make sure Safari is running in 32-bit mode. Right or control click the Safari icon in the Applications folder, then click: Get Info In the Get Info window click the black disclosure triangle next to General so it faces down. Select 32 bit mode. Also, (in that same window) make sure Safari is NOT running in Rosetta.
    Carolyn
    Message was edited by: Carolyn Samit

  • Open and edit animated .gif while preserving frame timing

    CS4 Premium Design Edition, Win XP
    I was disappointed with the removal of Image Ready from CS3 because although some of the functionality was placed into Photoshop 10, there was no way to open and edit an existing animated .gif while preserving the timing of each individual frame. I was told on the PS forum at the time that I really needed to use Fireworks. I resented that, because I was very happy with Image Ready and I didn't want to have to learn a new application just to gain functionality that had been included in previous versions of PS/IM.
    I've now got CS4 Premium Design Edition which of course includs Fireworks... and here's what Help has to say on the subject of imported .gifs.
    "Note: When you import an animated GIF, the state delay setting defaults to 0.07 seconds. If necessary, use the States panel to restore the original timing."
    This is no use to me. What if I don't know the individual frame timings? What if there are 200 frames with varying timings?
    Simple question: which current Adobe product is capable of importing a .gif while retaining the frame timings? If anyone knows, or if I've misunderstood the nature of the Fireworks Help quote above, I'd really appreciate some input here. Thanks :)
    Not so simple question: why was an excellent gif-editing application thrown out to have its functionality partially replaced by a bunch of scripts and half-effective workarounds cooked up by desperate users ("import a gif by using the video import and typing *.* into the filename box..")? It's a fair question I think.
    Mark

    Hi Bob, that's not glib at all, it's a reasonable question.
    I uninstalled it along with everything else when I installed CS3, in the reasonable expectation that whatever replaced IR would be at least equal in functionality.
    Perhaps I should just dig out CS2 and install IM from there, but I have some serious reservations about doing so, because I don't know if/how a partial install of CS2 will impact upon my installation of CS4, and I'm not confident of getting support.
    I am also curious to know if/why Adobe actually removed basic functionality without replicating or replacing it in their other software. I really want to know: which recent, currently supported Adobe product
    should I be using in order to regain this functionality? Or do Adobe no longer produce a geniuinely comprehensive .gif-editing application?
    Mark

Maybe you are looking for

  • Boot drive error message

    Following a near disaster after installing security update 2005-009 i have 2 problems ( or maybe only 1) When i do a verify on my boot drive i get the message from disk utility, INCORRECT NUMBER OF THREAD RECORDS, volume needs repair but it cannot fi

  • There is no iTunes store for the country of Trinidad and Tobago

    So how do I purchase apps and music and other products? I have a paypal account and also a skybox address in Florida.

  • Converting date format MM/DD/YYYY to DD/MM/YYYY in ISA B2B App

    Hi All, We have implemented CRM ISA 5.0 (B2B) application. Is it possible to change the date format to DD/MM/YYYY in ISA B2B web application. Now currently it is showing MM/DD/YYYY in all the pages. We need to change this format to DD/MM/YYYY, where

  • Display Recursive Columns in JTREE

    I'm having a problem displaying a recursive relationship like EmpNo & MgrNo in a Jtree to show a management hirerarchy. I'm using JDeveloper2.0 and trying to load the model with the data from the two columns.... Is there an example in the documentati

  • Cannot update to 10.5.5 and cannot update to Java SE 6

    I just got a new MacBook Pro, and have been running the Software Update. I have installed all of the updates through 10.5.4. I cannot update to 10.5.5 nor can I update java because neither can be "verified". Downloading them manually doesn't work eit