Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8065627

Animated GIFs fail to display on a HiDPI display

    XMLWordPrintable

Details

    • b19
    • x86
    • os_x

    Backports

      Description

        FULL PRODUCT VERSION :
        java version "1.8.0_25"
        Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
        Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        OS X 10.9.5

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        Using Quartz Debug simulation of HiDPI display

        A DESCRIPTION OF THE PROBLEM :
        An animated GIF that displays and animates on a non-HiDPI displays fails to display at all on a HiDPI display.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Just run the simplest possible test program.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Too see the image.
        ACTUAL -
        No image is seen.

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        package test;

        import javax.swing.*;
        import java.awt.*;
        import java.net.URL;

        public class Main
            extends JFrame
        {
            public Main()
            {
                URL u = Main.class.getResource("WhiteOnBlack.gif");
                Image im = Toolkit.getDefaultToolkit().getImage(u);
                ImageIcon ic = new ImageIcon(im);
                JLabel label = new JLabel(ic);
                add(label);
                pack();
                setVisible(true);
            }

            public static void main(String[] args) {
                SwingUtilities.invokeLater(new Runnable() {
                    @Override
                    public void run() {
                        new Main();
                    }
                });
            }
        }

        ---------- END SOURCE ----------

        Attachments

          Issue Links

            Activity

              People

                alexsch Alexandr Scherbatiy
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: