Encoding JPEG images

In my application, I have to encode different image and save
them to disk. I tried using JPEGEncoder but it's slow (hangs the
application while being executed). I tried JPEGAsyncEncoder but it
has a memory leak
http://blog.paranoidferret.com/index.php/2007/12/11/flex-tutorial-an-asynchronous-jpeg-enc oder/
Any suggestions on what to try next ? I use Javascript/HTML
on adobe AIR.

Hi,
Well, you could try fixing the memory leak in
JPEGAsyncDecoder. :)

Similar Messages

  • 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)?

  • Problems when jpeg encoding multiple images

    Hi, im trying to write a servlet which generates multiple thumbs. However when encoding for the second time i get an error java.io.IOException: reading encoded JPEG Stream.
    I can't figure out the problem
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.awt.Image;
    import java.awt.Graphics2D;
    import java.awt.geom.AffineTransform;
    import java.awt.image.BufferedImage;
    import javax.swing.ImageIcon;
    import com.sun.image.codec.jpeg.JPEGCodec;
    import com.sun.image.codec.jpeg.JPEGImageEncoder;
    public class Thumbs extends HttpServlet {
      private String dbDriver = "com.mysql.jdbc.Driver";
      private String dbURL = "jdbc:mysql://localhost/shopper?";
      private String userID = "javauser";
      private String passwd = "javadude";
      private Connection dbConnection;
      //Initialize global variables
      public void init() throws ServletException {
      //Process the HTTP Get request
      public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        try{
          String foreignNr = request.getParameterValues("p")[0];
          String maxDim = request.getParameterValues("s")[0];
          if (foreignNr != null){
            int foreignID = Integer.parseInt(foreignNr);
            int maxDimension = Integer.parseInt(maxDim);
            response.setContentType("image/jpeg");
            OutputStream out = response.getOutputStream();
            writeThumbnailPictures(out,foreignID,maxDimension);
        } catch (Exception ex){
            log(ex.getMessage());
      public void writeThumbnailPictures(OutputStream out,int foreignID,int maxDimension){
        try{
          Class.forName(dbDriver);
          dbConnection = DriverManager.getConnection(dbURL, userID, passwd);
          PreparedStatement pageStatement;
          pageStatement = dbConnection.prepareStatement(
              "select * from pictures where ForeignID = ?");
          pageStatement.setInt(1, foreignID);
          ResultSet recs = pageStatement.executeQuery();
          while (recs.next()) {
            byte[] data = recs.getBytes("Picture");
            if (data != null) {
              Image inImage = new ImageIcon(data).getImage();
              // Determine the scale.
               double scale = (double)maxDimension / (double)inImage.getHeight(null);
               if (inImage.getWidth(null) > inImage.getHeight(null)) {
                   scale = (double)maxDimension /(double)inImage.getWidth(null);
               // Determine size of new image.
               // One of them should equal maxDim.
               int scaledW = (int)(scale*inImage.getWidth(null));
               int scaledH = (int)(scale*inImage.getHeight(null));
               // Create an image buffer in
               //which to paint on.
               BufferedImage outImage = new BufferedImage(scaledW, scaledH,
                   BufferedImage.TYPE_INT_RGB);
               // Set the scale.
               AffineTransform tx = new AffineTransform();
               // If the image is smaller than
               // the desired image size,
               // don't bother scaling.
               if (scale < 1.0d) {
                   tx.scale(scale, scale);
               // Paint image.
               Graphics2D g2d = outImage.createGraphics();
               g2d.drawImage(inImage, tx, null);
               g2d.dispose();
               // JPEG-encode the image
               JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
               encoder.encode(outImage);
          out.close();
        catch(Exception ex){
          ex.printStackTrace();
      //Clean up resources
      public void destroy() {
    }

    Hi,
    I am facing same problem while generating the thumbs. Did you figure out what the problem is? if you have the solution, do post it.
    Thanks in advance
    Mo

  • How do I control the quality of JPEG images?

    I've written a program that scales a set of JPEG images down to various dimensions. I'm happy with the speed of execution, but quality of the images could be better. How do I specify the quality of the JPEG images I create? In graphics editors, I'm given the option of controlling the lossy-ness (?) of JPEGs when I save them, either reducing image qualify to shrink the file size or vice versa. How can I do this programmatically?
    Thanks

    Hi Jhm,
    leaving aside the scaling algorithm, to save an arbitrary image with 100% quality you'd use
    something like the following code snipet below
    regards,
    Owen
    // Imports
    import java.awt.image.*;
    import com.sun.image.codec.jpeg.*;
    public boolean saveJPEG ( Image yourImage, String filename )
        boolean saved = false;
        BufferedImage bi = new BufferedImage ( yourImage.getWidth(null),
                                               yourImage.getHeight(null),
                                               BufferedImage.TYPE_INT_RGB );
        Graphics2D g2 = bi.createGraphics();
        g2.drawImage ( yourImage, null, null );
        FileOutputStream out = null;
        try
            out = new FileOutputStream ( filename );
            JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder ( out );
            JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam ( bi );
            param.setQuality ( 1.0f, false );   // 100% high quality setting, no compression
            encoder.setJPEGEncodeParam ( param );
            encoder.encode ( bi );
            out.close();
            saved = true;
        catch ( Exception ex )
            System.out.println ("Error saving JPEG : " + ex.getMessage() );
        return ( saved );
    }

  • Saving JPEG images in a batch process

    Please, I need help....
    I'm making an application that loads an image, perform some manipulations and save it into a JPEG file..
    The code I use to paint that image to a Graphics object is this:
              public void paintToImage(Graphics gr){               Graphics2D g = (Graphics2D)gr;               //CONFIGURO O RENDER PARA SER O MELHOR POSS?VEL                g.setRenderingHint(RenderingHints.KEY_RENDERING,RenderingHints.VALUE_RENDER_QUALITY);               g.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING,RenderingHints.VALUE_COLOR_RENDER_QUALITY);               //seto o clip rect               g.setClip(0,0,w,h);               //pinto o fundo de branco               g.setColor(Color.white);               g.fillRect(0,0,w,h);               if(img==null)return;               g.drawImage(img, -origemXY.width, -origemXY.height,this); //'this' means an instance of my JPanel          }I call this method to paint my image into a BufferedImage this way:
         BufferedImage bi = new BufferedImage(myComponent.width,myComponent.height, BufferedImage.TYPE_INT_RGB);     myComponent.paintToImage(bi.createGraphics());If I call it to a single image (like an ActionEvent for a selected image) it works fine...
    But when I try to call it from a batch process, like a loop to paint several selected images, it aways produces a white JPEG.
    All the code inside my "paintToImage()" method works fine but the line "g.drawImage(img, -origemXY.width, -origemXY.height,this);".
    I know that because if I use "g.setColor(Color.red)" instead of "g.setColor(Color.white)" it produces a red JPEG.
    Could it be a proble with the ImageObserver that I'm using?
    The method below is invoked to save several images selected in a JTree, but it only produces white Images:
                   public void actionPerformed(ActionEvent e){                    TreePath paths[] = filesTree.getSelectionPaths();                    for(int i=0;i<paths.length;i++){                         filesTree.setSelectionPath(paths);//this line sets the selected image that is about to be painted by my previewPane into a BufferedImage                         try{                         BufferedImage bi = new BufferedImage(previewPane.getImagePane().getPreferredSize().width, previewPane.getImagePane().getPreferredSize().height, BufferedImage.TYPE_INT_RGB);                         previewPane.paintToImage(bi.createGraphics());                         /* write the jpeg to a file */                         File file = new File("D:/VER/0000" + i + ".jpg");                         FileOutputStream out = new FileOutputStream(file);                         /* encodes the image as a JPEG data stream */                         JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);                         JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);                              param.setQuality(1.0f, false);                         encoder.setJPEGEncodeParam(param);                         encoder.encode(bi);                         out.close();                         }catch(IOException ioex){                              ioex.printStackTrace();                         }                    }               }
    What is the problem?? What am I doing wrong?? any help wold be greate...
    Thank's all and aloha from Brazil...

    Reformat your problem, you can infinitly insert any number of '\n's here,

  • Aleatory One factory fails for the operation "encode"-JPEG

    I've a very strange problem with JAI.write using JPEG, but is happening aleatory. Some times it works, some times I get the exception and some other times don't. What I've seen is that when I got first this error, then all the rest of the images throws it. I mean, I'm working OK and then I got the exception, from there, all the images, no matter that they were not trowing exceptions before, now they do, so I don't know what is happening. I'll post some code snippets and the full stack trace of the exception. Hope you can help me:
    First, I have a class that is a JSP-Tag:
    RenderedOp outputImage = JAI.create("fileload", imgFile.getAbsolutePath());
    int widthSize = outputImage.getWidth();
    int heightSize = outputImage.getHeight();
    try{
        outputImage.dispose();                         
    }catch(Exception e){}
    outputImage = null;That's the first thing, now, the second, this is a Servlet that writes the image to the browser (GetImageServlet its name, which appears in the stack trace):
    FileSeekableStream fss = new FileSeekableStream(file);
    RenderedOp outputImage = JAI.create("stream", fss);
    int widthSize = outputImage.getWidth();
    int heightSize = outputImage.getHeight();
    if ((outputImage.getWidth() > 0) && (outputImage.getHeight() > 0)) {
                        if ((isThumbnail) && ((outputImage.getWidth() > 60) || (outputImage.getHeight() > 60))) {
                             outputImage = ImageManagerJAI.thumbnail(outputImage, 60);
                        } else if (outputRotate != 0) {
                             outputImage = ImageManagerJAI.rotate(outputImage, outputRotate);
                        OutputStream os = resp.getOutputStream();
    resp.setContentType("image/jpeg");
         ImageManagerJAI.writeResult(os, outputImage, "JPEG");
                        outputImage.dispose();
                        os.flush();
                        os.close();
    outputImage = null;
    imgFile = null;The code of ImageManagerJAI.writeResult, which is a method I use above:
    public static void writeResult(OutputStream os, RenderedOp image, String type) throws IOException {
              if ("GIF".equals(type)) {
                   GifEncoder encoder = new GifEncoder(image.getAsBufferedImage(), os);
                   encoder.encode();
              } else {
                   JAI.create("encode", image, os, type, null);
         }And the full exception trace is:
    Error: One factory fails for the operation "encode"
    Occurs in: javax.media.jai.ThreadSafeOperationRegistry
    java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
         at GetImageServlet.doGet(GetImageServlet.java:214)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException
         at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
         at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
         ... 31 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
         ... 33 more
    Caused by: java.io.IOException: reading encoded JPEG Stream
         at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
         ... 32 more
    javax.media.jai.util.ImagingException: All factories fail for the operation "encode"
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1687)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
         at GetImageServlet.doGet(GetImageServlet.java:214)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         ... 26 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException
         at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
         at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
         ... 31 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
         ... 33 more
    Caused by: java.io.IOException: reading encoded JPEG Stream
         at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
         ... 32 more
    Caused by:
    java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
         at GetImageServlet.doGet(GetImageServlet.java:214)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException
         at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
         at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
         ... 31 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
         ... 33 more
    Caused by: java.io.IOException: reading encoded JPEG Stream
         at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
         ... 32 moreI'm using JDK 1.6, Tomcat 5.5, Windows XP, and JAI 1.1.2_01 (the jars are in the WEB-INF/lib of the project AND in the jdk 6/jre/lib/ext, while the dlls are only on jdk 6/jre/bin)
    Please help, I don't know what to do, I've weeks with this problem. Dukes available pleaseeee!

    Hi
    you can check if you get in the error logs an message like 'Could not load mediaLib accelerator wrapper classes. Continuing in pure Java mode.' may be the problem of JAI native accelerator

  • 16 bit Intensity to JPEG image

    Hi,
    I have an input file with 16 bit intensity values. I want to creat JPEG image from this file. Here is my source code:
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.image.*;
    import javax.imageio.ImageIO;
    public class CreateJpeg extends Frame{
    private BufferedImage img = null;
         public static int[][] getData(File f) throws IOException {
              ArrayList line = new ArrayList();
              BufferedReader br = new BufferedReader(new FileReader(f));
              String s = null;
              while ((s = br.readLine()) != null)
                   line.add(s);
              int[][] map = new int[line.size()][];
              for (int i = 0; i < map.length; i++) {
                   s = (String) line.get(i);
                   StringTokenizer st = new StringTokenizer(s, "\t");
                   int[] arr = new int[st.countTokens()];
                   for (int j = 0; j < arr.length; j++)
                        arr[j] = Integer.parseInt(st.nextToken());
                   map[i] = arr;
              return map;
         public CreateJpeg (ColorModel colorModel, WritableRaster raster)throws IOException{
              img = new BufferedImage(colorModel, raster, false, null);//new java.util.Hashtable());
              show();
              ImageIO.write( img, "jpeg" , new File("new.jpeg"));
         public void paint (Graphics g) {
    g.drawImage (img, 0, 0, this);
         public static void main(String[] args) throws Throwable {
              int[][] map = getData(new File(args[0]));
              int[] OneDimImage = new int[map.length*map[0].length];
              for (int i = 0; i < map.length; i++) {
                   for (int j = 0; j < map.length; j++){
                        OneDimImage[i * map[0].length + j] = map[i][j];
              DataBuffer dbuf = new DataBufferInt(OneDimImage, map[0].length*map.length);
    WritableRaster raster = Raster.createPackedRaster(dbuf,map[0].length, map.length,
              map[0].length, new int[] { 0xff00, 0xf0, 0xf}, null);
              ColorModel colorModel = new DirectColorModel(16, 0xff00, 0xf0, 0xf);
              new CreateJpeg(colorModel, raster);
    After compiling and running this file, I got the following messages:
    Exception in thread "main" java.lang.IllegalArgumentException: Raster IntegerInt
    erleavedRaster: width = 800 height = 938 #Bands = 3 xOff = 0 yOff = 0 dataOffset
    [0] 0 is incompatible with ColorModel DirectColorModel: rmask=ff00 gmask=f0 bmas
    k=f amask=0
    at java.awt.image.BufferedImage.<init>(BufferedImage.java:613)
    at CreateJpeg.<init>(CreateJpeg.java:28)
    at CreateJpeg.main(CreateJpeg.java:48).
    I will be pleased if anybody help me to solve this.
    Thanks

    No, short of getting a jpeg to use a lossless compression, this sequence:
    buffered image =encode=> jpeg file =decode=> buffered image
    is going to scramble data on the pixel level. If you use a high quality param value,
    like 1.0f, it will look good, but individual pixels won't be "close" to
    their original values, because that is not what the algorithm delivers.
    Demo:
    import java.awt.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.imageio.stream.*;
    public class PngEnDecoder{
        public static void main(String[] args) throws Throwable {
            int w = 256, h = 1;
            int[] OneDimImage = new int[w*h];
            for (int i=0;i<w*h;i++)
                OneDimImage=i;
    DataBuffer dbuf = new DataBufferInt(OneDimImage, OneDimImage.length);
    int[] masks = { 0xff0000, 0xff00, 0xff};
    WritableRaster raster = Raster.createPackedRaster(dbuf, w, h, w, masks, null);
    ColorModel colorModel = new DirectColorModel(24, masks[0], masks[1], masks[2]);
    BufferedImage bi1 = new BufferedImage(colorModel, raster, false, null);
    File file = new File("test.jpeg");
    write(bi1, file, 1.0f);
    BufferedImage bi2 = convert(ImageIO.read(file), BufferedImage.TYPE_INT_RGB);
    WritableRaster raster1 = bi2.getRaster();
    DataBuffer db = raster1.getDataBuffer();
    DataBufferInt dbi = (DataBufferInt) db;
    int[] data = dbi.getData();
    for (int j=0;j<data.length;j++)
    System.out.println(data[j]);
    static void write(BufferedImage bi, File file, float quality) throws IOException {
    ImageOutputStream out = ImageIO.createImageOutputStream(file);
    ImageWriter writer = (ImageWriter) ImageIO.getImageWritersBySuffix("jpeg").next();
    writer.setOutput(out);
    ImageWriteParam param = writer.getDefaultWriteParam();
    param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
    param.setCompressionQuality(quality);
    writer.write(null, new IIOImage(bi, null, null),param);
    public static BufferedImage convert(BufferedImage source, int targetType) {
    int sourceType = source.getType();
    if (sourceType == targetType)
    return source;
    System.out.println("converting image type...");
    BufferedImage result = new BufferedImage(source.getWidth(), source.getHeight(), targetType);
    Graphics2D g = result.createGraphics();
    g.drawRenderedImage(source, null);
    g.dispose();
    return result;

  • How to store jpeg image ?

    I am modifying the pixel of a jpeg image using pixel grabber function and storing it using the code give below
    FileOutputStream fos = new FileOutputStream("out.jpg");
    JPEGImageEncoder jpeg = JPEGCodec.createJPEGEncoder(fos);
    jpeg.encode(image);
    fos.close();
    but when i open the image using paint or any other image viewing s/w i see the image whith brown shade
    also when i again perform the revese operation to get the orignal pixel value i am unable to get the orginal pixel value .

    Gif works for me. Just remember that gif uses a indexed color model. Demo:
    import java.awt.*;
    import java.awt.image.*;
    import java.io.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class LoselessExample {
        public static void main(String[] args) throws IOException {
            int SIDE = 300;
            BufferedImage im1 = new BufferedImage(SIDE,SIDE, BufferedImage.TYPE_BYTE_INDEXED);
            WritableRaster raster1 = im1.getRaster();
            DataBufferByte  db1 = (DataBufferByte) raster1.getDataBuffer();
            byte[] data1 = db1.getData();
            new Random().nextBytes(data1);
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            ImageIO.write(im1, "gif", out);
            ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
            BufferedImage im2 = ImageIO.read(in);
            WritableRaster raster2 = im2.getRaster();
            DataBufferByte  db2 = (DataBufferByte) raster2.getDataBuffer();
            byte[] data2 = db2.getData();
            boolean success = Arrays.equals(data1, data2);
            System.out.println("success = " + success);
            JPanel p = new JPanel();
            p.add(new JLabel(new ImageIcon(im1)));
            p.add(new JLabel(new ImageIcon(im2)));
            JFrame f = new JFrame("LoselessExample");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setContentPane(p);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • Unable to Open Lossless JPEG Image

    Hi,
    I have jdk 1.6.0. and i installed the jai-Imageio pakage.i am not able view the true lossless jpeg
    image.
    I tried to open a lossless jpeg image from the code given in
    http://forums.sun.com/thread.jspa?forumID=20&threadID=335960
    but the
    image does not open. It works for jpeg, jpeg2000 images. but not
    lossless jpeg and jpeg-ls images..
    when i try to code
    String s[] = ImageIO.getReaderFormatNames();
    for(int i=0;i< s.length ;i++)
    System.out.println(s);
    it prints
    raw
    BMP
    JPEG2000
    RAW
    jpeg
    tif
    jpeg2000
    WBMP
    GIF
    TIF
    TIFF
    jpg
    bmp
    PNM
    JPG
    pnm
    wbmp
    png
    JPEG
    PNG
    jpeg 2000
    JPEG 2000
    gif
    tiff
    if i try to load lossless jpeg image it shows the exception that
    but when i write code like
    CLibJPEGImageReaderSpi cl = new CLibJPEGImageReaderSpi();
    String s[] = cl.getFormatNames();
    for(int i=0;i< s.length ;i++)
    System.out.println(s[i]);
    it prints
    jpeg
    JPEG
    jpg
    JPG
    jfif
    JFIF
    jpeg-lossless
    JPEG-LOSSLESS
    jpeg-ls
    JPEG-LS
    if i check with 'cl.canDecodeInput(imageInputStream)' it returns true.
    i d't now how to load the image using 'CLibJPEGImageReaderSpi' class object
    or is there any other way to load the image ?
    can anybody write the full code to display the true lossless jpeg image
    which is taken from dicom medical images. the images are available at
    http://rapidshare.com/files/250911269/Lossless_jpeg.zip.html
    is there any website has good tutorial about lossless jpeg image. what
    is point transform in lossless jpeg ? what old pseudo lossless jpeg ?
    what is equivalent for that in java ?

    There are two images in that zip file. I have no problems reading the one called "lossless.jpg". It's a 16-bit grayscale image that's completely black. The one called "test.jpg" throws an exception. Is this what you're getting? I'm using JAI-ImageIO 1.1
    is there any website has good tutorial about lossless jpeg image. what
    is point transform in lossless jpeg ? what old pseudo lossless jpeg ?
    what is equivalent for that in java ? In addition to describing normal jpeg encoding, the jpeg specification also describes what's called "lossless jpeg" encoding. Lossless jpegs - as described in the original specification - are obsolete. No common application can open them. It doesn't help that the png format (also lossless) provides much smaller file sizes then lossless jpeg's.
    Both of the jpegs in that zip file are lossless jpegs. Incidently, I can't open them up with Irfanview or Adobe Photoshop CS4 (wich says alot). And I can only read "lossless.jpg" with JAI-ImageIO while the other one throws an IOException. By using lossless jpegs, the user cripples portability.
    JPEG-LS is different from lossless jpeg. In fact, it was meant to replace lossless jpegs. While not actually lossless, jpeg-ls is described as a "near lossless" compression. I believe the files have a +.jls+ extension instead of a +.jpg+ one. While not obsolete (I think), JPEG-LS is not widely used. Using it can still cripple portability.
    The JPEG2000 format also has a "lossless" mode, that again, is not widely used. Using it can still cripple portability. JPEG2000 files have a +.jp2+ extension.
    Lastly, I don't know what you mean by this question
    what is point transform in lossless jpeg?PS: I have no problems reading a lossless jpeg or a jpeg-ls that I write with JAI-ImageIO. So maybe there's something wrong with "test.jpg" in the zip file?

  • Photoshop jpeg images won't upload in Constant Contact

    I downloaded the free trial of Constant Contact and have been attempting to make a newsletter using jpeg images. The software gives me the following message when I try to upload images to the library:
    "Your image contains an unknown image file encoding. The file encoding type is not recognized, please use a different image."
    The reason I am posting the question on the Adobe forum is I have noticed that this only happens with jpegs created from my Photoshop CS2. I can take any image off the net, save it, and upload it with no problem. The same goes for images taken with a digital camera. But if it is anything I have created or manipulated in Photoshop and saved as a jpeg, it won't upload. Has anyone experienced any conflicts with Ps and Constant Contact?

    As soon as you said that, it clicked. The jpegs I have been saving were originally developed for print, so they were CMYK. I saved them as RGB. They now work perfectly. Thanks for jogging my brain.

  • Rendering A JPEG image with a custom tag

    Hi All,
    I have dilema. I'm trying to rendering a jpeg in IE/FireFox with a custom tag that I developed. I'm able to access the bean and invoke the getter method to return the InputStream property. But what gets rendered is the byte code not the image. I've tried just about anything I could think off. If any body has an answer I would difinitely appreciate it.
    Thanks,
    Tony
    Below is the jsp, tld, bean and tag.
    ********************************* image.jsp ****************************************
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ taglib uri="/WEB-INF/custom-chtml.tld" prefix="chtml" %>
    <html>
    <head>
    <title>HTML Page</title>
    </head>
    <body bgcolor="#FFFFFF">
    <chtml:img name="photo" property="file"/>
    </body>
    </html>
    ********************************* custom-chtml.tld **********************************
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>chtml</shortname>
    <tag>
    <name>img</name>
    <tagclass>com.struts.taglib.CustomImgTag</tagclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>name</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>property</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>
    </taglib>
    **************************** MemberPhotoBean.java ******************************
    import java.io.InputStream;
    * @author tony
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    public class MemberPhotoValue {
         private String memberId;
         private int fileSize;
         private InputStream file;
         public MemberPhotoValue() {
         public MemberPhotoValue(String memberId, InputStream file) {
              this.memberId = memberId;
              this.file = file;
         public MemberPhotoValue(String memberId,int fileSize,InputStream file) {
              this.memberId = memberId;
              this.fileSize = fileSize;
              this.file = file;          
         public String getMemberId(){
              return memberId;
         public void setMemberId(String memberId) {
              this.memberId = memberId;
         public int getFileSize() {
              return fileSize;
         public void setFileSize(int fileSize) {
              this.fileSize = fileSize;
         public InputStream getFile(){
              return file;
         public void setFile(InputStream file) {
              this.file = file;
    *************************** CustomTagHandler.java ********************************
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.servlet.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.lang.reflect.Method;
    import java.lang.reflect.InvocationTargetException;
    import java.awt.image.*;
    import java.awt.*;
    import javax.swing.ImageIcon;
    import com.sun.image.codec.jpeg.*;
    * JSP Tag Handler class
    * @jsp.tag name = "CustomImg"
    * display-name = "Name for CustomImg"
    * description = "Description for CustomImg"
    * body-content = "empty"
    public class CustomImgTag implements Tag {
         private PageContext pageContext;
         private Tag parent;
         private String property;
         private String name;
         private Class bean;
         public int doStartTag() throws JspException {
              return SKIP_BODY;
         public int doEndTag() throws JspException {
         try {
         ServletResponse response = pageContext.getResponse();
         // read in the image from the bean
         InputStream stream = (InputStream) invokeBeanMethod();
         BufferedImage image = ImageIO.read(stream);          Image inImage = new ImageIcon(image).getImage();
         Graphics2D g = image.createGraphics();
         g.drawImage(inImage,null,null);               
         OutputStream out = response.getOutputStream();
    // JPEG-encode the image
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    encoder.encode(image);               
         out.close();     
    } catch (IOException io) {
              throw new JspException(io.getMessage());
         return EVAL_PAGE;
         public void release(){}
    private InputStream invokeBeanMethod() throws JspException {
         try {
         Object bean = null;
         if (null != pageContext.getAttribute(name)) {
         bean = (Object) pageContext.getAttributename);
         else if (null != pageContext.getSession().getAttribute(name)) {
         bean = (Object) pageContext.getSession().getAttribute(name);
         else if (null != pageContext.getRequest().getAttribute(name)) {
         bean = (Object) pageContext.getRequest().getAttribute(name);
         else {
         throw new JspException("Bean : "+name+" is not found in any pe.");
         Class[] parameters = null;
         Object[] obj = null;               
         Method method = bean.getClass().getMethod("getFile",parameters);
         return (InputStream) method.invoke(bean,obj);
         } catch (NoSuchMethodException ne) {
         throw new JspException("No getter method "+property+" for bean : "+bean);
         } catch (IllegalAccessException ie) {
         throw new JspException(ie.getMessage());
         } catch (InvocationTargetException ie) {
         throw new JspException(ie.toString());
         public void setPageContext(PageContext pageContext) {
              this.pageContext = pageContext;
         public void setParent(Tag parent) {
              this.parent = parent;
         public Tag getParent() {
              return parent;
         public void setProperty(String property) {
              this.property = property;
         public void setName(String name) {
              this.name = name;
    **************************************************************************************

    If you have access to an image editing tool such as photoshop, I would advice you import the image into Phototshop and save it in a different format e.g, GIF format and re-import it into Final Cut Express HD. This could solve your rendering problem if all you need is to use a Still image.
    Ayemenre

  • Question about Using BufferedImage to create jpeg image

    I was puzzled by a problem about using of class BufferedImage. I want to dynamicly create a jpeg image with bufferedimage, the step is as follows:
    1.create a new bufferedImage object:
    BufferedImage image = new BufferedImage((int)imageWidth, (int)imageHeight, BufferedImage.TYPE_BYTE_BINARY);
    2.get the Graphics object from image:
         Graphics graphics = image.getGraphics();
    3.then draw string and any other graphics with graphics
    4.create jpeg image:
         try {
         FileOutputStream fos = new FileOutputStream("c://test.jpg");
         BufferedOutputStream bos = new BufferedOutputStream(fos);
         JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(bos);
         encoder.encode(image);
         bos.close();
         } catch(Exception e) {
         System.out.println(e);
    The problem is that :
    if the graphic width and height is large enough(in my computer, the largest number is 4000*4000,of course it can be 6000*2000, but the total number is limited.), step 1 will be error: OutofMemory!
    I'm worrying about it all day and night.Even though I try all my best,I still can't find what's wrong with it.
    Can you help me--the helpless one?

    Right. 4000x4000x3bytes ("true" color) is 64 mbytes. Your jpeg file might be smaller of course, but it's still going to be a behomoth. The best thing to try is increasing your java runtime size... I've never had to do this, but you can probably find it on this site somewhere

  • JPEG image fails to save on Linux and Mac

    Gentlemen,
    The following code extract works fine on windowsXP platform but fails for Linux with a java.lang.ClassCastException and gives a black picture as output on Mac OSX.
    Any ideas why?
    On Linux, I'm using Blackdown 1.4.2
      public void save_Image(String file) {
        try {
          if(file.toLowerCase().indexOf(".jpg")==-1 && file.toLowerCase().indexOf(".jpeg")==-1) file+=".jpg";
          FileOutputStream out = new FileOutputStream(file);
          BufferedImage image = (BufferedImage)createImage(getWidth(), getHeight());
          Graphics g = image.getGraphics();
          paint(g);
          JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
          JPEGEncodeParam jep = encoder.getDefaultJPEGEncodeParam(image);
          jep.setQuality(1.0f, false);
          encoder.setJPEGEncodeParam(jep);
          encoder.encode(image);
          g.dispose();
          out.close();
        }catch(FileNotFoundException fnfe) {
          System.err.println("File not found: " + file);
        }catch(IOException ioe){ System.err.println("Could not write file: " + file); }
      }The complete program can be found on http://impact.sf.net
    Any help appreciated
    /Jonas Forssell

    Hi,
    I copied the too lines but it gives me the same result as before.
    <% String resourcePath = request.getContextPath(); %>
    <.img height="21" width="39" src="<%=resourcePath%>/images/button_edit.gif"/>
    I dragged and dropped the image to my jsp to make sure I didn't make any syntax errors, but it looks similar ti the above and both give the same annoying error.
    <.img height="21" width="39" src="../../images/button_edit.gif"/>
    Any ideas?
    TIA
    p.s. I added the dot after the < character in this post so that the forum program won't treat the statement as html tag.
    Michael

  • I cannot erase alias JPeg images on a memory card so that it will not accept any more which I try to load onto it, yet there are no actual images available if I click on any of them. The error message states that one or more cannot

    Cannot delete aliases for JPeg images on a lumix camera memory card even selecting individual images anjd trying to move to trash -error35 one or more items cannot be found. No image available on clicking or if card put back into camera-"no images to disply" Yet if try to add more images, message that card is full! Any suggestions?

    Deleting from iPhoto or image capture after import should be fine and shouldn't cause any issues. Deleting from the folder view of finder, can cause issues as the camera can the image is still there. You can try emptying the trash on your mac if you deleted them via the finder, as although you've deleted it, it's only marked as trashed and not actually deleted until you empty the trash - ie it won't relieve the space taken by the files.
    If your still having issues after you try this, you may be best formating the memory card. This will wipe all data on it though, so make sure you do copy anything off that yo u want to keep! Format from the camera, so that choosing the format>erase all option from the menu of most cameras.

  • I am trying to use photomerge compose.  I open one standard jpeg image and one image that is my business logo in a png format.  When I select the png image, to extract the logo from it, it appears as all white and will not allow me to select the logo from

    I am trying to use photomerge compose.  I open one standard jpeg image and one image that is my business logo in a png format.  When I select the png image, to extract the logo from it, it appears as all white and will not allow me to select the logo from it.  It has worked in the past but I downloaded the update today and photomerge will not work correctly.  Any ideas?

    hedger,
    How do you expect anyone to help when we don't know a darned thing about the file, abut your setup, exact version of Photoshop and your OS, machine specs, etc.?
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

Maybe you are looking for

  • Using a European Mac Pro in the States.

    Is there anything i should know before plugin it in? Any risks?

  • Query Executed in Portal do not show entry in RSDDSTAT_DM

    Hi We are on BI 7 and I am tuning one query.The User has complained that in BEX it doesn't take time but in Portal it takes time.  I have created 1 Aggregate and the query is using the aggregate. This is confirmed as I have executed the query in RSRT

  • Java + VB

    im trying to pass some data (string and ints) from java => vb and vb => java i know i can use jni but thatz too complicated... other than sockets and clipboard...are there any other ways those two apps to communicate?

  • My Mac Air with Yosemite will not go to sleep

    I don't know exactly when this started but I noticed that even after my Mac had been closed all day it was still running. I followed some support forums and tried to make sure wake on lan etc. was turned off, but even just Apple -> Sleep fails to put

  • S400 - 240G mSATA as boot disk?

    Guys -- does anybody of you have S400 with a large (e.g. 240G) mSATA disc as a boot disc? Does BIOS support such a boot option?