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

Incorrect display of JPEG images

    XMLWordPrintable

    Details

      Description

      The test below displays a JPEG photo (attached as cliff.jpeg) inside an ImageView. On Mac 10.6 colors are distorted, see screenshot.


      import javafx.application.Application;
      import javafx.scene.Group;
      import javafx.scene.Scene;
      import javafx.scene.image.Image;
      import javafx.scene.image.ImageView;
      import javafx.stage.Stage;


      public class ImageTest extends Application {
          
          public static void main(String[] args) {
              Application.launch(ImageTest.class, args);
          }

          @Override public void start(Stage stage) {
              Image img = new Image("http://forum.awd.ru/gallery/image.php?album_id=6265&image_id=141348");
              ImageView view = new ImageView(img);
              Scene sc = new Scene(new Group(view));
              stage.setScene(sc);
              stage.sizeToScene();
              stage.setVisible(true);
          }
      }

        Attachments

        1. cliff.jpeg
          cliff.jpeg
          262 kB
        2. googlehero.jpg
          googlehero.jpg
          34 kB
        3. RT-14647-test.zip
          6.46 MB
        4. screenshot.png
          screenshot.png
          954 kB

          Issue Links

            Activity

              People

              Assignee:
              bae Andrew Brygin
              Reporter:
              peterz Peter Zhelezniakov
              Votes:
              6 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: