Gif images in safari taking up cpu

is anyone else having this problem in safari version 4 beta?
i never used to have an issue w/ animated gif images w/ safari..but ever since i started using the latest safari gif images seem to take up 98-116% of cpu.
will this issue be fixed soon on the next safari update?

This isnt a perceived problem I have it too and it is very very annoying.
Safari will literally freeze to the point of becoming completely unresponsive and showing the beachball of death on pages with large animated gifs that display with no problems in firefox. This is a big problem on a lot of forums. I've also found several other people reporting the same problem while googling for a solution.
To see it in action go here:
http://www.neogaf.com/forum/showthread.php?t=355091
once you scroll down to the section with the animated gifs it will soon become completely unresponsive (beware that this will freeze your safari for a while and it might be a while before it becomes responsive again and lets you close the offending window).
overall performance with animated gifs also seems to be much worse than other browsers, even when it doesnt freeze completely.
i tried a webkit nightly recently and this still wasnt fixed

Similar Messages

  • Safari taking 100% CPU

    A few days ago Safari has been taking up all the CPU time after it launches. Sometimes I can quit it, and sometimes I have to do a force quite. I don't remember installing anything recently. I am running Leopard and I just recently did a software update and Safari and Safari still has the same problem. Has this happened to anyone else or know what I can do? The version of Safari I am running is 3.2.3 (5525.28.3).
    Thanks!
    Anselm

    HI,
    Did you run Disk Utility and repair disk permissions after you did the updates? If not...
    Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select FirstAid, then click: Repair Disk Permissions. Quit DU when it's finished and reboot.
    From the Safari Menu Bar, click Safari/Reset Safari. Select the top 5 buttons and click Reset.
    Get Onyx. Run the maintenance under the Automation tab.http://www.titanium.free.fr/pgs2/english/onyx_leopard.html
    Boot from your install disk and run Disk Utility.
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger and later) 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.
    Carolyn

  • Safari downloads gif images for no reason

    When I visit this site
    www.jsonline.com
    some gif images are automatically downloaded (called p-01-OVlaSjnOLG.gif). Every click results in a download. How do I stop this?
    Safari version 4.0.4, running on OS X 10.5.8. Lots of space on hard drive.

    HI and Welcome to Apple Discussions...
    If you right or control click an image a pop up menu will appear but just clicking on an image shouldn't result in the file automatically downloading.
    Try resetting Safari and emptying the cache.
    From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    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 not running in Rosetta. Right or control click the Safari icon in your Applications folder then click Get Info. In the Get Info window click the black disclosure triangle so it faces down. Where you see Open using Rosetta... make sure that is NOT selected.
    Carolyn

  • Mail and Safari dont display GIF images

    After about a weeks worth of use, I realized that Safari and Mail dont display GIF images unless I download them and open them in Preview. Even then, I have to manually click each image to see the pictures motion. Sometimes in stead of the question mark, I will get the first picture of the sequence, but none more. Does anyone know how to fix this?

    i dont have a solution, i just said it because i was tired of seeing it unanswered. Sorry, STILL haven't fixed this

  • Can't view gif images.

    I had to reinstall Yosemite on my computer and since I did that I can't view gif images in Firefox and Safari.  What do I need to do to be able to view gif images?
    Bill

    Am working on a webpage with some animated gifs in it. Everything works fine when it is loaded up, the images display and animate continuously. But these gifs may be updated on the server. I have some javascript that checks if the gifs have been updated by checking the modified meta data. If it has that image is reloaded. this works fine and the new image is brought up but that animation is never started. it just sits there on the first frame.
    works as planned in chrome. it also worked as planned in FF9 but does not in FF12

  • Safari Consuming All CPU Power

    I just recently noticed that Safari seems to be taking a lot more processing power while browsing.
    When I click on a link, the fans start spinning faster, the little colored wheel cursor appears and I can see in Activity Monitor that the CPU usage for Safari goes to 100%.
    This happens every time I click on a link. It even happens if I hit the back button. It happened while I was typing in the post, since My Yahoo web page automatically refreshed on another tab.
    As you can see, I have a dual Power Mac G5 2.5 GHz with 4.5 MBytes of memory.
    This just started happening yesterday. I've never seen this before. From my previous PC days, I would say that I picked up a virus or some kind of Spyware.

    Over the last several weeks, I too have been noticing Safari taking up more system resources than it had in the past. I upgraded to Tiger the day it came out (from 10.2) and only began noticing this problem in early August. Not only have I seen an increase in CPU usage when running Safari, but I've also seen an increase over time of RAM usage. When I restart, RAM usage is under 30% with iCal, Address Book, iTunes, Mail, NetNewsWire, and a weather app running. Later that day after having browsed and done many other actions with only those basic apps running, RAM usage stays at or slightly above 50%. It often pegs out at 65% and again after restarting and re-opening those apps back up with the exception of Safari, RAM usage remains far below 50%. With my meager 800mhz processor, and all the memory leaking and CPU hogging going on, the fan is running much more frequently than it should.

  • Safari takes my CPU to 100%

    Hi everyone,
    I have been having a problem for about a month or so now where whenever I use Safari, after about 2 minutes of surfing I hear the fan start going and when I pull up the activity monitor I see Safari taking up 100% of my CPU.
    It's weird because normally I use firefox and never have a problem with that. But occasionally if I am having an issue with a site I will use Safari to see if I am having the same issue on a different browser. But it doesn't seem to matter what site I go to with Safari, after a few minutes the fan starts up. I reset it and rebooted but it's still happening.
    You may see I only have 10.5.5 but that's because when I tried to update to 10.5.6 back in January it wouldn't install and then my PC crashed and would only restart after like 3 tries so I am afraid to try and install it again...but might that be the problem?
    any advice?
    thanks.

    Hi Jen
    Yes, those types of crashes can have quite an impact on how the computer operates. A crash of this type can create hard drive corruption problems which can lead to performance oddities.
    Try this: restart the computer holding down the shift key (release it when the log-in screen appears). This will run a series of maintenance scripts. When the log-in process is finished, restart the computer as usual. Then, try Safari. Let me know if the computer operates without issue when Safari is open.

  • Video to GIF image

    Is there any program that will allow me to take a video and convert it to a GIF image? I'm specifically taking a video of a baseball hitter and I want to break it down into slow motion, similar to what project prospect has done in this post:
    http://projectprospect.com/article/2010/03/20/kyle-drabek-scouting-report

    Hi,
    If you now have 62 individual pics of each frame then in something like PhotoShop Elements that you might have got with a Printer you need to import all the Frames as Layers in one pic.
    Then you select to View only the "first" and then Save As an Animated .gif
    10:18 PM Friday; March 26, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Drawing multiple .gif images

    Hello, I am creating a Card class and a Deck class, and I have .gif images for each card. I am trying to create a CardDisplay class to test my images. The Card/Deck classes work fine, but I am running into problems getting the images to display. What I have is a JFrame and I use a JLabel for each .gif image. When I add the JLabel to the contentPane, it is still only showing a blank window. Can someone give me any guidance as to how to go about this? Also, I am assuming once I get it to display 1 gif, it will display the remaining 51 in the same place. What I am trying to do is to display them all in a row.. well 4 rows of 13 cards that is. Thanks in advance,
    dub stylee

    Also, just wanted to add that this is not for school. I am doing this for a personal exercise using swing components. I made a card game when I was taking java 1 class, but now I am trying to familiarize myself with the use of graphics. Thanks to anybody who can help.
    dub stylee

  • Error while loading a logo .gif image to the banner

    Hi all,
    I'm running Portalea on NT platform and I receive the following error, trying to load a gif image as a logo to the banner (this is in spanish but I hope you can understand it):
    Wed, 27 Dec 2000 07:03:25 GMT
    ORA-06510: PL/SQL: excepcisn definida por el usuario no tratada
    ORA-06512: en "PORTAL30.WWDOC_DOCU_BRI_TRG", lmnea 60
    ORA-06510: PL/SQL: excepcisn definida por el usuario no tratada
    ORA-04088: error durante la ejecucisn del disparador 'PORTAL30.WWDOC_DOCU_BRI_TRG'
    DAD name: portal30
    PROCEDURE : PORTAL30.wwptl_banner.savecustom
    URL : http://ORACLE1:80/pls/portal30/PORTAL30.wwptl_banner.savecustom
    PARAMETERS :
    ===========
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Apache/1.3.12 (Win32) ApacheJServ/1.1 mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.22
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=80
    SERVER_NAME=ORACLE1
    REQUEST_METHOD=POST
    QUERY_STRING=
    PATH_INFO=/pls/portal30/PORTAL30.wwptl_banner.savecustom
    SCRIPT_NAME=/pls
    REMOTE_HOST=
    REMOTE_ADDR=192.168.100.224
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=
    HTTP_CONTENT_LENGTH=6443
    HTTP_CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d02753210f0280
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)
    HTTP_HOST=oracle1
    HTTP_ACCEPT=application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-comet, */*
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_ACCEPT_LANGUAGE=es
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=portal30=AB515A5F55262E576590647AC04D98A8EF1D5A6F56D19ECCD710BDB4A08D2354903C0CA288FDE0C9283E116C71C00B1B3821CEAB7A24979CFF326F4979143EE1FD147BC097C2AD7705313C93DAB32D8 4A6CF71C26B267CC0B2FEA03B385A2E84; portal30_sso=7452540140821A6010973F5CAC7E7D17C7498F309E15C228015C1C0546A702F5AFDE500B69BDCB8DE5C29DD726FC8DEEE85A1DC979ECC7B8A6A16CADEF1DAB0C0ACEC11897D5B99B1033884D61307BEA7AE581C 8AB988C8CBBBDCE6174BA01F6
    Authorization=
    HTTP_IF_MODIFIED_SINCE=
    null

    Hi,
    No errors was found in the installation log. I'm looking in the WWDOC_DOCUMENT$ table and found records that make references to my previous tries to upload the logo image. In order to make others tries, how can I delete this information? Are references to this files in any other table?.
    I'm looking over the solution provide by Laurent Baresse, refering to the NLS_LANGUAJE problem ... (Thanks Laurent).
    Best regards
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Karthika Siva ([email protected]):
    Fernando,
    Are you able to upload any documents into a content area? Please look at your installation log file (install.log) for any errors that may have occured during the installation of the product. Also make sure that the tablespace containing the WWDOC_DOCUMENT$ table is not full.
    Karthika<HR></BLOCKQUOTE>
    null

  • Animated Gif Image does not render correctly on screen

    I have added animated gif image to the scene it does not render correctely.it shakes on the screen. plz give me any suggestion
    i use following code
    Image logo= new Image(getClass().getResourceAsStream("images/image.gif"));
    logoLabel.setGraphic(new ImageView(logo));

    Hello user,
    I think gif are rendered smoothly.
    Are you sure you are not making many object of same images everytime?
    Thanks.
    Narayan

  • Animated gif image

    Hi
    I like to create an animated gif image from a given set of images with java. I like to do this with the given set of java api as I do not want to use a commercial graphics library. Can anyone provide me with a sample example.
    Thanks

    Hi
    I like to resize a gif image. Currently i am using the following code but the resized image is not smooth.
    public BufferedImage resizeImage(BufferedImage img, int newW, int newH)
              int w = img.getWidth();
              int h = img.getHeight();
              BufferedImage dimg = new BufferedImage(newW, newH, img.getType());
              Graphics2D g = dimg.createGraphics();
              g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
              g.drawImage(img, 0, 0, newW, newH, 0, 0, w, h, null);
              g.dispose();
              return dimg;
    Is there a way to resize a gif image in a smooth way as the example given in the gif4j library
    Thanks

  • Animated GIF image gets distorted while playing.

    Hi,
    I have some animated gif images which I need to show in a jLabel and a jTextPane. But some of these images are getting distorted while playing in the two components, though these images are playing properly in Internet Explorer. I am using the methods insertIcon() of jTextPane and setIcon() of jLabel to add or set the gif images in the two components. Can you please suggest any suitable idea of how I can get rid of this distortion? Thanks in advance.

    In the code below is a self contained JComponent that paints a series of BufferedImages as an animation. You can pause the animation, and you specify the delay. It also has two static methods for loading all the frames from a File or a URL.
    Feel free to add functionality to it, like the ability to display text or manipulate the animation. You may wan't the class to extend JLabel instead of JComponent. Just explore around with the painting. If you have any questions, then feel free to post.
    The downside to working with an array of BufferedImages, though, is that they consume more memory then a single Toolkit gif image.
    import javax.swing.JComponent;
    import java.awt.image.BufferedImage;
    import java.awt.Graphics;
    import javax.imageio.ImageIO;
    import javax.imageio.ImageReader;
    import javax.imageio.stream.ImageInputStream;
    public class JAnimationLabel extends JComponent {
        /**The default animation delay.  100 milliseconds*/
        public static final int DEFAULT_DELAY = 100;
        private BufferedImage[] images;
        private int currentIndex;
        private int delay;
        private boolean paused;
        private boolean exited;
        private final Object lock = new Object();
        //the maximum image width and height in the image array
        private int maxWidth;
        private int maxHeight;
        public JAnimationLabel(BufferedImage[] animation) {
            if(animation == null)
                throw new NullPointerException("null animation!");
            for(BufferedImage frame : animation)
                if(frame == null)
                    throw new NullPointerException("null frame in animation!");
            images = animation;
            delay = DEFAULT_DELAY;
            paused = false;
            for(BufferedImage frame : animation) {
                maxWidth = Math.max(maxWidth,frame.getWidth());
                maxHeight = Math.max(maxHeight,frame.getHeight());
            setPreferredSize(new java.awt.Dimension(maxWidth,maxHeight));
        //This method is called when a component is connected to a native
        //resource.  It is an indication that we can now start painting.
        public void addNotify() {
            super.addNotify();
            //Make anonymous thread run animation loop.  Alternative
            //would be to make the AnimationLabel class extend Runnable,
            //but this would allow innapropriate use.
            exited = false;
            Thread runner = new Thread(new Runnable() {
                public void run() {
                    runAnimation();
            runner.setDaemon(true);
            runner.start();
        public void removeNotify() {
            exited = true;
            super.removeNotify();
        /**Returns the animation delay in milliseconds.*/
        public int getDelay() {return delay;}
        /**Sets the animation delay between two
         * consecutive frames in milliseconds.*/
        public void setDelay(int delay) {this.delay = delay;}
        /**Returns whether the animation is currently paused.*/
        public boolean isPaused() {
            return exited?true:paused;}
        /**Makes the animation paused or resumes the painting.*/
        public void setPaused(boolean paused) {
            synchronized(lock) {
                this.paused = paused;
                lock.notify();
        private void runAnimation() {
            while(!exited) {
                repaint();
                if(delay > 0) {
                    try{Thread.sleep(delay);}
                    catch(InterruptedException e) {
                        System.err.println("Animation Sleep interupted");
                synchronized(lock) {
                    while(paused) {
                        try{lock.wait();}
                        catch(InterruptedException e) {}
        public void paintComponent(Graphics g) {
            if(g == null) return;
            java.awt.Rectangle bounds = g.getClipBounds();
            //center image on label
            int x = (getWidth()-maxWidth)/2;
            int y = (getHeight()-maxHeight)/2;
            g.drawImage(images[currentIndex], x, y,this);
            if(bounds.x == 0 && bounds.y == 0 &&
               bounds.width == getWidth() && bounds.height == getHeight()) {
                 //increment frame for the next time around if the bounds on
                 //the graphics object represents a full repaint
                 currentIndex = (currentIndex+1)%images.length;
            }else {
                //if partial repaint then we do not need to
                //increment to the the next frame
    }

  • Digital watermarking gif images

    I ve writed a program which watermarks png and non-animated gif images .But there is a problem because we started to use animated gif images. How can we watermark animated gif images without corrupting animation of the image?
    Regards
    Murat

    I haven't done much with gif animation, but here's an example that extracts the series of BufferedImages
    from a gif file. Good luck!
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import java.net.URL;
    import java.util.*;
    import javax.imageio.*;
    import javax.imageio.metadata.*;
    import javax.imageio.stream.*;
    import javax.swing.*;
    import org.w3c.dom.*;
    public class ViewGif extends JPanel {
        private BufferedImage[] images;
        private Point[] offsets;
        private BufferedImage composite;
        public static void main(String[] args) throws IOException {
            JPanel app = new ViewGif();
            app.setBackground(Color.RED);
            JFrame frame = new JFrame("ViewGif");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(new JScrollPane(app));
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public ViewGif() throws IOException {
            URL url = new URL("http://members.aol.com/royalef/sunglass.gif");
            Iterator readers = ImageIO.getImageReadersBySuffix("gif");
            if (!readers.hasNext())
                throw new IOException("no gif readers");
            ImageReader reader = (ImageReader) readers.next();
            if (readers.hasNext())
                System.out.println("(there were oither readers)");
            ImageInputStream iis = ImageIO.createImageInputStream(url.openStream());
            reader.setInput(iis);
            final int numImages = reader.getNumImages(true);
            images = new BufferedImage[numImages];
            offsets = new Point[numImages];
            for(int i=0; i<numImages; ++i) {
                images[i] =  reader.read(i);
                offsets[i] = getPixelOffsets(reader, i);
            composite = new BufferedImage(images[0].getWidth(), images[0].getHeight(),
                BufferedImage.TYPE_INT_ARGB);
            final Graphics2D g2 = composite.createGraphics();
            g2.drawImage(images[0], offsets[0].x, offsets[0].y, null);
            new javax.swing.Timer(100, new ActionListener(){
                int j = 1;
                public void actionPerformed(ActionEvent evt) {
                    g2.drawImage(images[j], offsets[j].x, offsets[j].y, null);
                    j = (j+1) % numImages;
                    repaint();
            }).start();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Insets insets = getInsets();
            g.drawImage(composite, insets.left, insets.top, null);
        public Dimension getPreferredSize() {
            Insets insets = getInsets();
            int w = insets.left + insets.right + composite.getWidth();
            int h = insets.top + insets.bottom + composite.getHeight();
            return new Dimension(w,h);
        static Point getPixelOffsets(ImageReader reader, int num) throws IOException {
            IIOMetadata meta = reader.getImageMetadata(num);
            Point point = new Point(-1,-1);
            Node root = meta.getAsTree("javax_imageio_1.0");
            for (Node c = root.getFirstChild(); c != null; c = c.getNextSibling()) {
                String name = c.getNodeName();
                if ("Dimension".equals(name)) {
                    for (c = c.getFirstChild(); c != null; c = c.getNextSibling()) {
                        name = c.getNodeName();
                        if ("HorizontalPixelOffset".equals(name))
                            point.x = getValueAttribute(c);
                        else if ("VerticalPixelOffset".equals(name))
                            point.y = getValueAttribute(c);
                    return point;
            return point;
        static int getValueAttribute(Node node) {
            try {
                return Integer.parseInt(node.getAttributes().getNamedItem("value").getNodeValue());
            } catch (NumberFormatException e) {
                return -2;

  • Problem at displaying animated gif images !!!!!!!!!!!!

    hello everyone......i am trying to display an animated gif image..............so till far i have no issues on this....
    but i face problem when :
    i have created a class called SimpleGame which extends JPanel....
    public class SimpleGame extends JPanel
    //code
    public void paintComponent(Graphics g)
    //code to draw image
    }now i have written another class with main method
    public class MyGame extends SimpleGame
    public MyGame()
            JFrame frame=new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(800, 600);
            frame.setUndecorated(true);
            frame.setLocationRelativeTo(null);
            frame.getContentPane().add(this);
            frame.setVisible(true);
            this.repaint();
    }so image gets displayed but only one frame of animated image......image that is displayed is static.....since it is a animated gif,,,,,so some how animation is not rendered......only one frame is displayed......
    why is it happening ??
    if i try to display animated image from a single class i mean my paintComponent method and main method is at same class then i do not face problem.....
    but if my paint method is in another class and i am using that method from another class then animation does not get rendered.........
    any help !!!!! please...........

    class SimpleGame extends JPanel
    Image img=new ImageIcon("y.gif");
    public void paintComponent(Graphics g)
    g.drawImage(img,150,150,this);
    }main class//
    class MyGame extends SimpleGame
    public MyGame()
            JFrame frame=new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(800, 600);
            frame.setUndecorated(true);
            frame.setLocationRelativeTo(null);
            frame.getContentPane().add(this);
            frame.setVisible(true);
            this.repaint();
    public static void main(String[] args)
    new MyGame();
    }my image gets displayed.......but only single frame of a animated image....animation is not happening..........

Maybe you are looking for

  • Bapi call of create position

    Dear All, I'm working on a review of the SAP HR Portal we use, but I'm newbie to SAP. and need your expert's opinion on the following questions. - Can I use some Bapi or RFC calls or some other tech from the JSP pages to create position SAP backend?

  • Columns out of order in ageing report

    Hello, When running the 'Customer Receivables Ageing' Report the ageing columns are not in the order they should be. For example: The columns should be in this order: Customer Code  |  Customer Name  |  Balance Due  |  Future Remit  |  0- 30  |  31-6

  • How to handle paging in a databinded table

    hi i just builded a table which is filled by an executequery situated in my VO. my rows are displayed 10 by 10. when i click on the next button, the rows displayed stay the same. They are not refreshed. how can i display the next rows of my query ? t

  • Check before deleting Payment Proposals ( F110 )

    Hi gurus, I have the following scenario: When the user runs F110 and creates a payment proposal we start a workflow for approbation of the payment. I have successfully found a badi to start the workflow, the problem arises when the same user that cre

  • LostFocus problem

    Hi all, i'm having a problem with the lostFocus Event. I java JTextField that on its onlostFocus event calls a webservice, and it displays the result with JOptionPane.showMessageDialog. and the lostFocus event executes again and again when the ok but