Problem of displaying JPEG images

I just got my new Power Mac G5 computer. I am Also new to the MAC world. I put in a CD, which is filled with all JPEG files, into my DVD drive. From the desktop, I double click the CD icon; no problem, I saw all the JPEG files. I then tried to view the images by double clicking them; however, some of them were display successfully thru Preview and some were not. For the images, which had trouble to be displayed, had error message saying the files were not recognizable or data were corrupted.
I also tried to drag the file from CD folder to iPhoto icon, I got the same error message (not recognizable or data corrupted).
I had no trouble in viewing all these images from Windows 2000. I have no idea what's wrong.
Please help, thanks!
Howard
Power Mac G5   Mac OS X (10.4.2)  

Hi Howard,
Drag all the images to the desktop first. Now open iPhoto and drag the images into an open iPhoto viewing window (library view)
If you put the images in folders to organize them, then each folder dragged into an open iPhoto window will be imported as a roll with the folders name.
Lori

Similar Messages

  • Problem with displaying BLOB images on JSP page using a servlet

    hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that servlet, that is http://localhost:8080/ImageServlet. It doesn't work when i try to use that servlet to display my image on my JSP page (my JSP page displays only a broken-image icon ) I tried several coding approaches with my servlet (used both Blob and BLOB objects), and they work just fine as long as i display images explicitly using only the servlet.
    Here's what i use : ORACLE 10g XE , Eclipse 3.1.2, Tomcat 5.5.16 , JDK 1.5
    here is one of my image servlet's working versions (the essential part of it) :
                   BLOB blob=null;
              rset=st.executeQuery("SELECT * FROM IMAGES WHERE ID=1");
              while (rset.next())
                   blob=((OracleResultSet)rset).getBLOB(2);
              response.reset();
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition","filename=42.jpeg");
                    ServletOutputStream ostr=response.getOutputStream();
                   InputStream istr=blob.getBinaryStream(1L);
                    int size=blob.getBufferSize();
              int len=-1;
                    byte[] buff = new byte[size];
                         while ((len=istr.read( buff ))!=-1 ) {
                   ostr.write(buff,0,len);
             response.flushBuffer();
             ostr.close(); and my JSP page code :
    <img src="/ImageServlet" border="0"  > If you could just tell me what i'm doing wrong here , or if you could show me your own solutions to that problem , i would be very greatful ,cos i'm realy stuck here , and i'm rather pressed for time too. Hope someone can help.

    I turns out that it wasn't that big of a problem after all. All i had to do was to take the above code and place it into another JSP page instead of into a servlet like i did before. Then i just used that page as a source for my IMG tag in my first JSP. It works perfectly well. Why this doesn't work for servlets i still don't know, but it's not a problem form me anymore . Ofcourse if someone knows the answer , go ahead and write. I would still appriceatte it.
    here's the magic tag : <img src="ImageJSP.jsp" border="0"  > enjoy : )

  • Browser can resolve, access, and display JPEG image, but ImageIcon can't.

    I've got this weird problem that only happens with images accessed through a customer's VPN:
    Microsloth Internet Imploder can resolve, access, and display a JPG image from a VPN URL, in the general form:
    http://intranet/part?FOOBAR.JPG which the browser apparently transmogrifies into
    http://mogrify.foo.com/images/scripts/cgi/detail.cgi?FOOBAR.JPG(as Jack Webb often said, the names have been changed to protect the innocent)
    Firefox can also resove, access, and display the image.
    But an ImageIcon, when fed either URL, quietly fails to get anything, No errors, no exceptions, but no image, either.
    The application, if it detects the failure of ImageIcon to come up with the image, somehow (not my code) defers to "Windoze Image and Fax Viewer," which locks up trying to resolve, access, and display the image.
    What could possibly be going on here?

    I'd love to have the luxury of saying, "You lost me at Windoze." Then again, to paraphrase a running gag from Airplane!, it looks like I picked the wrong week to quit hemlock.
    As my final message on my other thread on this topic indicates, the problem is that even though the URL ends in JPG, the server isn't really serving up a JPEG, but rather, an HTML page containing the JPEG.
    Knowing this, a solution (of sorts) presented itself: if the URL doesn't produce a displayable ImageIcon, try constructing a JEditorPane on the URL. The results aren't exactly pretty, and you do have to try the ImageIcon first, but it does work.
    JHHL

  • Problem with display an image on JFrame in Java 6

    I'm trying to display an image on JFrame in this way:
    1.) I'm creating a variable in the class:
        private Image imgSpeaker = null;2.) I'm overiting the paint method:
    public void paint(Graphics g) {
            super.paint(g);   
            g.drawImage(imgSpeaker, 330, 230, null);  
        }3.) In the constructor I'm using this code:
       imgSpeaker = Toolkit.getDefaultToolkit().getImage("D:\\speaker.gif");
            MediaTracker trop = new MediaTracker(this);
            trop.addImage(imgSpeaker,0);
            try {
                trop.waitForID(0);    // waiting untill downloading progress will be complite
            } catch (Exception e) {
                System.err.println(e);
            }        The Image will be displayed on form, but if I catch the window and move it (for example: down as possible)
    the image is not refreshed (repainted). What I'm doing wrong? I've been used this solution in Java 5 and everything
    works perfectly. Any of described methods aren't depricated... Anyone can help me?

    Thanks for your code, I've been tryed to apply your solution (with create a Buffered Image), but it still not working correctly. Firstly, the image isn't loading, and secondly the basic problem is not give in. Why have you been using "bg2d.draw(img, x, y, w, h, frame);" not in the paint method?
    I'm use "Free Design" layout. Below I put on completly code from Netbeans.
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.MediaTracker;
    import java.awt.image.BufferedImage;
    public class ImageTest extends javax.swing.JFrame {
        private Image imgSpeaker = null;
        private BufferedImage bi = null;
        private MediaTracker trop = null;
        public ImageTest() { 
                initComponents();
                trop = new java.awt.MediaTracker(this);
                imgSpeaker = java.awt.Toolkit.getDefaultToolkit().getImage("D:\\speaker.gif");
                try {
                    trop.addImage(imgSpeaker, 0);
                    trop.waitForID(0);
                } catch (java.lang.Exception e) {
                    java.lang.System.err.println(e);
                bi = new java.awt.image.BufferedImage(100, 100, java.awt.image.BufferedImage.TYPE_INT_RGB);
                java.awt.Graphics2D bg2d = (java.awt.Graphics2D) bi.createGraphics();
                trop.addImage(bi, 1);
    //            java.io.File f = new java.io.File("D:\\speaker.gif");
    //            try {
    //                bi = javax.imageio.ImageIO.read(f);
    //            } catch (IOException e) {
    //               java.lang.System.err.println(e);
        public void paint(Graphics g) {
    //      super.paint(g);
           try {                                                   
                trop.waitForAll();                                 
            } catch (Exception e) {
                System.err.println(e);
            g.drawImage(bi, 50, 100, imgSpeaker.getHeight(this), imgSpeaker.getHeight(this), this);
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            jButton1 = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jButton1.setText("jButton1");
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(283, Short.MAX_VALUE)
                    .addComponent(jButton1)
                    .addGap(44, 44, 44))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(252, Short.MAX_VALUE)
                    .addComponent(jButton1)
                    .addGap(25, 25, 25))
            pack();
        }// </editor-fold>
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new ImageTest().setVisible(true);
        private javax.swing.JButton jButton1;
    }

  • Problem while encoding JPEG image from JFrame paintComponent in a servlet

    Hello!
    I m developing webapplication in which I made one servlet that calls JFrame developed by me, and then encoding into JPEG image to send response on client browser. I m working on NetBeans 5.5 and the same code runs well. But my hosting server is Linux and I m getting the following error:
    java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
         java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
         java.awt.Window.<init>(Window.java:406)
         java.awt.Frame.<init>(Frame.java:402)
         java.awt.Frame.<init>(Frame.java:367)
         javax.swing.JFrame.<init>(JFrame.java:163)
         pinkConfigBeans.pinkInfo.pinkModel.pinkChartsLib.PinkChartFrame.<init>(PinkChartFrame.java:36)
         pinkConfigBeans.pinkController.showLastDayRevenueChart.processRequest(showLastDayRevenueChart.java:77)
         pinkConfigBeans.pinkController.showLastDayRevenueChart.doGet(showLastDayRevenueChart.java:107)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs.
    I m building the application in NetBeans and when runs then it runs well, even while browsing from LAN. But when I place the web folder creted under buil directory of NetBeans in the Tomcat on Linux, then it gives above error.
    Under given is the servlet code raising exception
    response.setContentType("image/jpeg"); // Assign correct content-type
    ServletOutputStream out = response.getOutputStream();
    /* TODO GUI output on JFrame */
    PinkChartFrame pinkChartFrame;
    pinkChartFrame = new PinkChartFrame(ssnGUIAttrInfo.getXjFrame(), ssnGUIAttrInfo.getYjFrame(), headingText, xCordText, yCordText, totalRevenueDataList);
    pinkChartFrame.setTitle("[::]AMS MIS[::] Monthly Revenue Chart");
    pinkChartFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    //pinkChartFrame.setVisible(true);
    //pinkChartFrame.plotDataGUI();
    int width = 760;
    int height = 460;
    try {
    BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = image.createGraphics();
    pinkChartFrame.pinkChartJPanel.paintComponent(g2);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    encoder.encode(image);
    } catch (ImageFormatException ex) {
    ex.printStackTrace();
    response.sendRedirect("index.jsp");
    } catch (IOException ex) {
    ex.printStackTrace();
    response.sendRedirect("index.jsp");
    out.flush();
    Do resolve anybody!
    Edited by: pinkVag on Oct 15, 2007 10:19 PM

    >
    I m developing webapplication in which I made one servlet that calls JFrame developed by me, and then encoding into JPEG image to send response on client browser. I m working on NetBeans 5.5 and the same code runs well. But my hosting server is Linux and I m getting the following error:
    java.awt.HeadlessException: >That makes sense. It is saying that you cannot open a JFrame in an environment (the server) that does not support GUIs!
    To make this so it will work on the server, it will need to be recoded so that it uses the command line only - no GUI.
    What is it exactly that PinkChartFrame is generated an image of? What does it do? (OK probably 'generate a chart') But what APIs does it use (JFreeChart or such)?

  • Problem importing some jpeg images

    **** all
    For some reason I cant import selected jpeg images, about 75% of them are grayed out for some reason, the images are jpegs I have collected on line and are the only images I seem to have a problem with.
    Any idea way ?
    Thanks

    yes I have the actual image, I found the problem .
    they where all grayed out cause of the image size, I downloaded desktop images.
    I'm glad I worked it out cause I'm using these images as backgrounds and, have 487 of them. I ran them through easybatchphoto and resized the width on all of them to 800. now they all work fine.

  • Problems displaying jpeg images on website.

    I am trialing a website at Clikpic for photographers. The images I have uploaded so far display fine in IE9 but not in Firefox. Spoke to support at Clikpic and they confirm they can see my images fine in Firefox. Cleared all the history, cache, cookies etc but still no good. Downgraded to 3.6.17 just incase, but still no luck. Would appreciate any advice you could give. It must be something local to my laptop I'm thinking? Really don't want to have to use IE.

    If images are missing then check that you aren't blocking images from some domains.
    See:
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    * Check the permissions for the domain in the current tab in Tools > Page Info > Permissions
    * Check the exceptions in Tools > Options > Content: Load Images > Exceptions
    * Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images)
    There are also extensions (Tools > Add-ons > Extensions) that can block images.
    * [[Troubleshooting extensions and themes]]
    You can use these steps to check if images are blocked:
    * Open the web page that has the images missing in a browser tab.
    * Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    * Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    * Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    * Select the first image link and scroll down through the list with the Down arrow key.
    * If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • Problem  to display multiple images in report!

    Hi,
    I have 3 tables, in each table i have a column with an image "blob"!
    I have creat a view with this 3 tables and a report of this view.
    My problem is that when i try to show one image column in report, "there is no problem", but when i try to show two or tree column´s with images, it display's only the last image that i call in report!
    select     "V_VIEW"."ID_STATE" as "ID_STATE",
         "V_VIEW"."STATE" as "STATE",
         "V_VIEW"."ID_TABLE" as "ID_TABLE",
         "V_VIEW"."NAME" as "NAME",
         "V_VIEW"."ID_PRIORI" as "ID_PRIORI",
         "V_VIEW"."PRIORI" as "PRIORI",
         "V_VIEW"."ID_PRODUCT" as "ID_PRODUCT",
         "V_VIEW"."PRODUCT" as "PRODUCT" ,
    dbms_lob.getlength("V_VIEW"."IMAGE") IMAGEPRODUCT,
    dbms_lob.getlength("V_VIEW"."IMAGEPRIORI") IMAGEPRIORI,
    dbms_lob.getlength("V_VIEW"."IMAGESTATE") IMAGESTATE
    from     "V_VIEW" "V_VIEW"
    Using normal standart report with in report atributes column:
    IMAGE:T_STATES:IMAGESTATE:ID_STATE::::::inline:
    What are i making wrong, in this case he does only make the last dbms_lob.getlength and shows only dbms_lob.getlength(IMAGESTATE) IMAGESTATE;
    If i change the order of the report and put in the end of the code:
    dbms_lob.getlength(IMAGETYPE) IMAGETYPE, the he shows this last image!
    I have try to make a demonstration of my problem on this forum, so i have creat an example on apex.oracle.com and there it works just fine, showing all the images of report.
    i am using apex 3.1.0.00.32
    Why doesn't the same example work in my aplication.
    If someone can have a look at working example:
    http://apex.oracle.com/pls/otn/f?p=53120:1:1299118515377853:::::
    pepe
    pepe
    pepe25
    Thank's in advance;
    Pepe

    Pepe,
    Is the first report on the page working correctly? I think so. So I don't see an example of what you described.
    I do see that there are no images in the second report, but that's not the same as the first problem you described, is it?
    Scott

  • Problem with display of images in applets

    Hi all,
    When I run this program, the appletviewer window is showing no output (i.e. no image). I'm using the netbeans IDE 5.0.
    Blue hills.jpg is present in both the src folder and build folder.
    * <applet code="image" width =800 height=600>
    * <param name="img" value="Blue hills.jpg">
    * <\applet>
    import java.awt.*;
    import java.applet.*;
    public class image extends Applet {
    Image img;
    public void init() {
    img=getImage(getDocumentBase(), getParameter("img"));
    public void paint(Graphics g){
    g.drawImage(img,0,0,this);
    Please help in figuring out the problem....

    It will be looking for it in the folder with the HTML that invokes the applet.
    If you want to pack the image in with the applet then use getResource instead.
    And spaces in the name are probably not the best idea.

  • Problems in displaying an Image in PDF Form

    hi,
    I have to display a photo in the PDF form dynamically, hence i have a used an element of type <b>Image Field</b>, where the URL has to be passed to fetch the photo from the location. though all the bindings has been done, the photo is not displayed. please help me find the solution.
    Thanks and Regards
    Poojith M V

    Hi Poojith ,
    follow these steps;
    -Choose imagefield element on to adobe form
    -Right click select choose image ,Browse for the image from the local drive.
    -Select Ember image Data
    -Select Add to library ,save it
    Now drag the added image from library on to adobe form and use.
    Cheers
    Swathi
    Do offer pts;-)

  • ITunes graphics problem - coverflow displays fragmented image, slows down

    I have a new 24" alu iMac and OS X 10.5.3
    Yesterday while using multiple programs (iTunes, vmware fusion, photoshop, etc) I hit the keyboard shortcut for "next song" and then suddenly my computer almost froze (it went to the next song and I could move my mouse around the screen but nothing was responding). I waited for a couple of mins and finally things started responding. But when I tried hitting the "next song" button again, it happened again (freezing temporarily).
    Finally when it unfroze and I clicked on iTunes, the coverflow display area looked all crazy with fragmented rectangles as if it had corrupted or something. I found someone else having this same problem on the macrumors board but I can't find his post again! ARG!
    Someone had suggested it was a bad GPU... but I don't have any other problems and I find it weird that it would happen to two people within a week of each other. Any ideas what could be wrong?

    Could you please send some screenshots so that we can better understand the situation.

  • Problem in displaying  gif image on to the JFrame

    i added gif image in to the jframe but when i run that image the image get distorted very much.

    public class MyFrame extends JFrame
         private static final String sIMAGE_PATH = "My\\Path\\To\\Image\\fileName.gif";
         public MyFrame()
              super("Frame with image on it");
              init();
         private void init()
              JPanel panel = new JPanel(new BorderLayout());
              ImageIcon image = new ImageIcon(sIMAGE_PATH);
              JLabel label = new JLabel(image);
              panel.add(label, BorderLayout.CENTER);
              this.setContentPane(panel);
         }Hope this helps..

  • UI element-Image is not showing JPEG images

    Hi Gurus
       i am facing a problem while displaying an image in ImageUI,
    its not working with JPEG files, also its showing pblm while
    displaying gif images with size above some 50KB. Small size gif images are properly working.
    With Regards
       Vipin

    Hi Vipin,
    Regarding the image visibility, please check the permissions also.
    For eg:
    check with Read/Write permission for yourself and for others with Read permission.
    If you are displaying the images in WebDynpro application then you can allow/restrict the types of images like .jpeg or .png etc..
    Hope this helps..
    Regards
    Piyush
    Please reward points if this helps!!!

  • Firefox not displaying some images linked from Photobucket

    Firefox 19.0 there is a website where they have a gallery of pictures all the images from the gallery are hosted on Photobucket, they use to show up as normal but now for some reason they don't, I tried clearing the cookies and the cache, I made sure the download images automatically is check and every other bit of advise I could find on the web to no avail.
    One thing I notice though is if you right click the missing image to get to view image information you will see Location: the address of the image is correct (copy and paste in the address bar bring up the image)
    Type: text/html (This is odd it should be img/jpeg)
    Size: 0 kb (of course the image was not downloaded)
    Dimension: 0 x 0 (again no image downloaded)
    So if anybody has an idea how to fix this it would be greatly appreciated.
    Thanks

    The images on that page aren't links to real images, but at least currently link to an html page (page info > media shows type text/html).<br />
    You can see that if you right-click an image and open the image in a new tab by middle clicking the View Image entry in the right-click context menu.<br />
    Firefox seems to have a problem to display the image in this case.

  • JPEG images on mobile

    How can i display JPEG images on mobile phone (i.e. Nokia3410)? Can i use JPEGDecoder for this purpose and will it work? If anyone has allready written this code can you provide me with piece of it.

    I tried the server route, but a 30kb JPEG becomes a 210kb PNG, and for downloading over the air on a cell phone, that 7x increase is a painful problem. Downloading the JPEG directly to the J2ME device is definitely the way to go. Pretty lame that J2ME doesn't currently support JPEG natively.
    After many nights of searching the Net for an answer to this question, a kind soul pointed me to the following site, which is 80% of the answer we're looking for:
    http://webuser.fh-furtwangen.de/~dersch/
    Helmut Dersch
    has written/ported a JPEG Decoder that can run in J2ME:
    JPEGDecoder: pure-Java JPEG-Decoder for limited Java APIs (e.g. J2ME)I know that it works (he has a sample app that actually runs on my Treo with a panoramic JPEG image loaded from the resource files). Unfortunately, I haven't been smart enough to write the code yet that would download a JPEG off the web and render it on the screen (without all the Panoramic stuff). Should be simple, though.
    I am sure that it will take 90 seconds for one of you smart folks. If you actually write the code to do this, PLEASE post the source code so that all of us will learn!
    Thanks!!!

Maybe you are looking for

  • How to create a  contract? ( Types: volume,time,quality contracts)

    Hi Gurus, How to create a  contract? ( Types: volume,time,quality contracts) Give the procedure to create above mentioned types of contract. Bye Narasimha Rao Gunda

  • Curve 9360 won't unlock

    when i press on the trackerpad to unlock the screen will light up but when i try to select unlock it show me where to type my password in but the trackerpad will scroll up and down. Also there is a symbol in the top righ corner that looks like aA wit

  • How to send the url automatically

    hello, I want to send the webdav URL of a file in a mail automatically but i don't find the way to do it. A solution?

  • Elements & premiere 11

    I have an serial numbers for Photoshop Elements and Premiere 11 how can I download them???

  • IMessage iPod Touch/Mac Problems?

    I've had a 16GB 4G iPod Touch for about a year. I just purchased a Macbook Pro as well. My problem is minor, not a big deal, but I'm curious as to why this is happening... When I'm messaging someone who isn't in a wifi zone (I'm sure of it) knowing t