Encoding JPEG renders "blurry"

I have created a java servlet that dynamically renders an image for use as a heading for each page. The servlets works fine, except for when a "background image" is used to go behind the text.
Here is what the result looks like:
http://www.mikelukenonline.com/servlets/lmp-framework?page_name=dynamicText&fontName=Old%20English%20Text%20MT&fontColor=168~167~167&shaddow=Y&fontSize=28&backgroundColor=white&text=Welcome%20to%20this%20site&width=500&x=11&y=21&height=34&backgroundImage=http://www.mikelukenonline.com/images/headings/titleblank2.jpg
One of the parameters in the URL is called "backgroundImage" which takes a URL of a jpg and draws that first. In this example, the background image is:
http://www.mikelukenonline.com/images/headings/titleblank2.jpg
Now if you look at the background image that I just listed, you see that it looks pretty clear. However, if you look at the full link above, you can see that the baclground image is "blurry" or "pixilated" - not sure the best work to describe it!
It is also worth noting that it is only when using the background image that it looks bad. If you remove the backgroundImage parameter, the text is rendered just fine:
http://www.mikelukenonline.com/servlets/lmp-framework?page_name=dynamicText&fontName=Old%20English%20Text%20MT&fontColor=168~167~167&shaddow=Y&fontSize=28&backgroundColor=white&text=Welcome%20to%20this%20site&width=500&x=11&y=21&height=34
I have tried everything I can think of and I can't get past this issue. Below are samples from the servlet. Any thoughts at all would be greatly appreciated!
This is the code that "draws" the final image:
private java.awt.Graphics.Graphics graphics = null;
private java.awt.Image.Image image = null;
private java.awt.Frame.Frame frame = null;
public Image getImage(){
     drawImage();
     if (image == null)
          image = getFrame().createImage(getWidth(), getHeight());
     return image;
private Frame getFrame() {
     frame = new Frame();
     frame.addNotify();
     return frame;
private Graphics getGraphics() {
     if ( image == null )
          image = getFrame().createImage(getWidth(), getHeight());
     if ( graphics == null )
          graphics = image.getGraphics();
     return graphics;
private void drawImage() {
     getGraphics().setColor(getBackgroundColor());
     getGraphics().fillRect(0, 0, getWidth(), getHeight());
     getGraphics().setColor(Color.white);
     if(getBackgroundImage() != null && getBackgroundImage().trim().length() > 0) {
          try {
               Frame f = new Frame();
               f.addNotify(); 
               Image im = Toolkit.getDefaultToolkit().createImage(new URL(getBackgroundImage()));
               MediaTracker mt = new MediaTracker(f);
               mt.addImage(im, 0);           
               mt.waitForAll();
               getGraphics().drawImage(im,0,0,null);
               im.flush();
               im = null;
               f.removeNotify();
               frame = null;
          } catch (Exception e) {}     
     Font f = null;
     try {
          f = new Font(getFontName(), Font.PLAIN, getFontSize());
     } catch (Exception e) {
          f = new Font("TimesRoman", Font.PLAIN, getFontSize());
     getGraphics().setFont(f);          
     if(showShaddow()) {
          getGraphics().setColor(new Color(229, 229, 229));     
          getGraphics().drawString(getText(),getXPos()+3,getYPos()+3);
     getGraphics().setColor(getFontColor());
     getGraphics().drawString(getText(),getXPos(),getYPos());     
}This is part of a class later that takes this image and encodes it and renders it to the browser:
public void transform(HttpServletRequest request, HttpServletResponse response) {
     try {
          Frame frame = null;       
          Graphics graphics = null;       
          try {           
               frame = new Frame();           
               frame.addNotify();           
               MediaTracker mt = new MediaTracker(frame);
               Image image = getImage(); // returns the image from the previous code
               mt.addImage(image, 0);           
               mt.waitForAll();           
               int w = image.getWidth(frame);           
               int h = image.getHeight(frame); 
               BufferedImage offscreen = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);       
               graphics = offscreen.getGraphics();    
               graphics.drawImage(image, 0, 0, frame);           
                     graphics.dispose();
               com.sun.image.codec.jpeg.JPEGImageEncoder encoder = com.sun.image.codec.jpeg.JPEGCodec.createJPEGEncoder(response.getOutputStream());
               com.sun.image.codec.jpeg.JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(offscreen);
               param.setQuality(1, false);
               encoder.setJPEGEncodeParam(param);   
               encoder.encode(offscreen);      
          } catch (Exception e) {
          } finally {           
               if (graphics != null) {               
                    graphics.dispose();           
               if (frame != null) {               
                    frame.removeNotify();           
               getImage().flush();
               response.flushBuffer();
     } catch (Exception e) {}
}

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

Similar Messages

  • 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

  • Jpegs look blurry after crop at fit to screen but are fine at 50%... Why?

    I recently upgraded to CS4 and have system 10.6.2.  Jpegs appear blurry after cropping at fit to screen but are fine at 16%, 50% or 100%...  My CS2 version never did this. Anyone know how to fix this bug? 
    Thanks

    Your resolution (in the pic) is likely set to 72PPI. In smaller JPGs when they are enlarged to full screen, they will appear pixelated or blurry.
    Before cropping, try setting the PPI to 300.
    I had to do this when making PNGs for conversion to icons, because they would blur when converted. I set almost everything I do to 300PPI.

  • Adobe Media Encoder pausing rendering while working in Premiere Pro

    Hello everyone,
    So I am redering a video in Adobe Media Encoder and at the same time I am editing a new one in Premiere Pro.
    I noticed that AME is constantly pausing the rendering and did not know why. It turns out that while I'm editing a video in Premiere Pro, I am constantly pressing the space bar to start/pause the video I'm editing. While I do that, AME keeps pausing/unpausing the rendering. Somehow, pressing the space bar in PP has an effect in AME.
    I have no clue why it does that because the Premiere Pro window has the focus, not the AME one.
    Has anyone ever seen that?
    I use Windows 8 and Adobe CC.

    Hi Rallymax,
    Yes I do queue footage by having an Autowatch set up on the directories where the video is written to.  I rarely do a direct export unless testing new settings.
    Don't take this as gospel but I too had a feeling that GPU acceleration didn't happen with AME, only direct export.  Not sure where that came from, I did watch some of the recent Adobe TV Web Seminar's about new features of CC products etc, so maybe on one of those?
    I found this while trying to find out where I had seen it but it is from AMD site not Adobe so whether it's fully 100% correct I dunno:
    Adobe Media Encoder
    The Adobe Media Encoder (AME), with support for OpenCL™ and GPU acceleration, automates the production of multiple encoded versions of source files, sequences, and compositions in Premiere Pro CC. With the GPU-accelerated AME and AMD graphics technology, editors can quickly encode projects and output files for virtually any destination. AMD GPUs handle the heavy lifting, freeing the system’s CPU to perform other functions.
    I will try the same test as Jason, if I can find any AVHCD video and see what the results are.  Will be interesting.

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

  • Adobe Media Encoder CC renders do not reflect changes to Dynamically Linked After Effects Comps

    When rendering a Premiere timeline with a dynamically linked After Effects composition, Adobe Media Encoder will sometimes use an older version of the linked composition (even after I have saved changes in the After Effects comp).
    For example, if I correct a spelling mistake on some text in After Effects, save the composition, and then add the sequence to the render queue in Premiere, the final output from media encoder still has the old spelling.
    If I do a straight export from Premiere instead of adding to render queue, the output is always correct. I've noticed this problem on several different Windows 8.1 systems.
    All versions of the software are up to date as of today.
    Why is this? Is it something to do with the disk cache in After Effects? Does media encoder have it's own cache that I need to clear?

    Hi, I've been having this same issue.  Here are some additional things I've noticed about it:
    Changes are reflected properly when played back on timeline in Pr CC 2014.
    Happens regardless if the dynamic link file was rendered or not, thus deleting the render files does not fix the issue.
    The issue can persist through saving, closing, and reopening both AE and Pr. 
    I'm using OSX 10.9.4, so this is not just a PC issue.
    Other than manually watching for every change to be reflected in the render, there is no way to know a problem has occurred.  Needless to say this can be incredibly costly.
    Please address this quickly, it's completely unacceptable that what we render out could be a different version from what we see on the timeline.
    PS Some additional things I will be testing:
    Does the issue persist through closing all CC apps, including Media Encoder.
    Does rendering directly out of Pr, i.e. not using Media Encoder, fix the issue.

  • TIFF & JPEG renders of RAW files appear different when viewed in Bridge

    I am working with the demo of Photoshop CS6, with ACR 7.1. CS6 System Info will appear at the bottom of this post. Summary: AMD Phenom II x6 1090T, 16GB RAM, Win7-64bit, nVidia GTX 460 video w/1GB RAM, approx. 2.5 TB free space on multiple internal physical drives, Canon 50D, CR2 files. I have a camera profile generated through Profile Editor, and the monitor is calibrated with i-1 Match.
    I have been practicing with the new Basic Panel controls (Process 2012). When I felt that I was getting the hang of them I started saving JPEG and TIFF files and noticed differences between what appears in Bridge and ACR. I worked on this for some time and searched out some other discussions in the Forum which seemed to talk about similar results. I have now tried Image Processor via Bridge, Save Image in ACR, and Open>Save manually in PS CS6. By whatever route, the TIFFs and JPEGs are different (lighter in the following examples, but this is not always the case), while PSD saves seem to be close, but not identical to the CR2 when viewed in Bridge or Photoshop. Here is a screen capture of Bridge thumbnails which show the differences.
    I hope the labels come through legibly. The two images on the second row are CR2 and PSD respectively. What is really odd to me is that when I resaved the PSD file as a TIFF, the same sort of difference shows up in the TIFF. (See _MG_7960_via_PSD.tif above.) I have uploaded the CR2, its XMP, a TIFF and a JPEG on Sendspace (107 MB). I did this earlier in my experiments and regret that the file naming is not as informative as might be.
    http://www.sendspace.com/file/t0lhko
    I have run a few other ACR adjusted CR2 images through Image Processor and seen a variety of differences between the rendered files and the RAW versions. The differences seem to be in Exposure and Contrast. Most of these looked somewhat darker, unlike the examples above.
    I will happily provide any other information on request. Thanks!
    Photoshop System Info:
    Adobe Photoshop Version: 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00) x64
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    System architecture: AMD CPU Family:15, Model:10, Stepping:0 with MMX, SSE Integer, SSE FP, SSE2, SSE3
    Physical processor count: 6
    Processor speed: 3511 MHz
    Built-in memory: 16382 MB
    Free memory: 13415 MB
    Memory available to Photoshop: 14766 MB
    Memory used by Photoshop: 71 %
    Image tile size: 132K
    Image cache levels: 4
    OpenGL Drawing: Enabled.
    OpenGL Drawing Mode: Advanced
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    OpenGL Allow Old GPUs: Not Detected.
    Video Card Vendor: NVIDIA Corporation
    Video Card Renderer: GeForce GTX 460/PCIe/SSE2
    Display: 1
    Display Bounds:=  top: 0, left: 0, bottom: 1200, right: 1920
    Video Card Number: 1
    Video Card: NVIDIA GeForce GTX 460
    OpenCL Unavailable
    Driver Version: 8.17.13.142
    Driver Date: 20120515000000.000000-000
    Video Card Driver: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
    Video Mode: 1920 x 1200 x 4294967296 colors
    Video Card Caption: NVIDIA GeForce GTX 460
    Video Card Memory: 1024 MB
    Video Rect Texture Size: 16384
    Serial number: Tryout Version
    Application folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\
    Temporary file path: C:\Users\Kieren\AppData\Local\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
      E:\, 770.4G, 644.1G free
      K:\, 931.5G, 482.3G free
      L:\, 1.82T, 854.4G free
      H:\, 1.75T, 505.2G free
    Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Required\
    Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\
    Additional Plug-ins folder: not set
    Installed components:
       A3DLIBS.dll   A3DLIB Dynamic Link Library   9.2.0.112  
       ACE.dll   ACE 2012/01/18-15:07:40   66.492997   66.492997
       adbeape.dll   Adobe APE 2012/01/25-10:04:55   66.1025012   66.1025012
       AdobeLinguistic.dll   Adobe Linguisitc Library   6.0.0  
       AdobeOwl.dll   Adobe Owl 2012/02/09-16:00:02   4.0.93   66.496052
       AdobePDFL.dll   PDFL 2011/12/12-16:12:37   66.419471   66.419471
       AdobePIP.dll   Adobe Product Improvement Program   6.0.0.1654  
       AdobeXMP.dll   Adobe XMP Core 2012/02/06-14:56:27   66.145661   66.145661
       AdobeXMPFiles.dll   Adobe XMP Files 2012/02/06-14:56:27   66.145661   66.145661
       AdobeXMPScript.dll   Adobe XMP Script 2012/02/06-14:56:27   66.145661   66.145661
       adobe_caps.dll   Adobe CAPS   6,0,29,0  
       AGM.dll   AGM 2012/01/18-15:07:40   66.492997   66.492997
       ahclient.dll    AdobeHelp Dynamic Link Library   1,7,0,56  
       aif_core.dll   AIF   3.0   62.490293
       aif_ocl.dll   AIF   3.0   62.490293
       aif_ogl.dll   AIF   3.0   62.490293
       amtlib.dll   AMTLib (64 Bit)   6.0.0.75 (BuildVersion: 6.0; BuildDate: Mon Jan 16 2012 18:00:00)   1.000000
       ARE.dll   ARE 2012/01/18-15:07:40   66.492997   66.492997
       AXE8SharedExpat.dll   AXE8SharedExpat 2011/12/16-15:10:49   66.26830   66.26830
       AXEDOMCore.dll   AXEDOMCore 2011/12/16-15:10:49   66.26830   66.26830
       Bib.dll   BIB 2012/01/18-15:07:40   66.492997   66.492997
       BIBUtils.dll   BIBUtils 2012/01/18-15:07:40   66.492997   66.492997
       boost_date_time.dll   DVA Product   6.0.0  
       boost_signals.dll   DVA Product   6.0.0  
       boost_system.dll   DVA Product   6.0.0  
       boost_threads.dll   DVA Product   6.0.0  
       cg.dll   NVIDIA Cg Runtime   3.0.00007  
       cgGL.dll   NVIDIA Cg Runtime   3.0.00007  
       CIT.dll   Adobe CIT   2.0.5.19287   2.0.5.19287
       CoolType.dll   CoolType 2012/01/18-15:07:40   66.492997   66.492997
       data_flow.dll   AIF   3.0   62.490293
       dvaaudiodevice.dll   DVA Product   6.0.0  
       dvacore.dll   DVA Product   6.0.0  
       dvamarshal.dll   DVA Product   6.0.0  
       dvamediatypes.dll   DVA Product   6.0.0  
       dvaplayer.dll   DVA Product   6.0.0  
       dvatransport.dll   DVA Product   6.0.0  
       dvaunittesting.dll   DVA Product   6.0.0  
       dynamiclink.dll   DVA Product   6.0.0  
       ExtendScript.dll   ExtendScript 2011/12/14-15:08:46   66.490082   66.490082
       FileInfo.dll   Adobe XMP FileInfo 2012/01/17-15:11:19   66.145433   66.145433
       filter_graph.dll   AIF   3.0   62.490293
       hydra_filters.dll   AIF   3.0   62.490293
       icucnv40.dll   International Components for Unicode 2011/11/15-16:30:22    Build gtlib_3.0.16615  
       icudt40.dll   International Components for Unicode 2011/11/15-16:30:22    Build gtlib_3.0.16615  
       image_compiler.dll   AIF   3.0   62.490293
       image_flow.dll   AIF   3.0   62.490293
       image_runtime.dll   AIF   3.0   62.490293
       JP2KLib.dll   JP2KLib 2011/12/12-16:12:37   66.236923   66.236923
       libifcoremd.dll   Intel(r) Visual Fortran Compiler   10.0 (Update A)  
       libmmd.dll   Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler   10.0  
       LogSession.dll   LogSession   2.1.2.1640  
       mediacoreif.dll   DVA Product   6.0.0  
       MPS.dll   MPS 2012/02/03-10:33:13   66.495174   66.495174
       msvcm80.dll   Microsoft® Visual Studio® 2005   8.00.50727.6195  
       msvcm90.dll   Microsoft® Visual Studio® 2008   9.00.30729.1  
       msvcp100.dll   Microsoft® Visual Studio® 2010   10.00.40219.1  
       msvcp80.dll   Microsoft® Visual Studio® 2005   8.00.50727.6195  
       msvcp90.dll   Microsoft® Visual Studio® 2008   9.00.30729.1  
       msvcr100.dll   Microsoft® Visual Studio® 2010   10.00.40219.1  
       msvcr80.dll   Microsoft® Visual Studio® 2005   8.00.50727.6195  
       msvcr90.dll   Microsoft® Visual Studio® 2008   9.00.30729.1  
       pdfsettings.dll   Adobe PDFSettings   1.04  
       Photoshop.dll   Adobe Photoshop CS6   CS6  
       Plugin.dll   Adobe Photoshop CS6   CS6  
       PlugPlug.dll   Adobe(R) CSXS PlugPlug Standard Dll (64 bit)   3.0.0.383  
       PSArt.dll   Adobe Photoshop CS6   CS6  
       PSViews.dll   Adobe Photoshop CS6   CS6  
       SCCore.dll   ScCore 2011/12/14-15:08:46   66.490082   66.490082
       ScriptUIFlex.dll   ScriptUIFlex 2011/12/14-15:08:46   66.490082   66.490082
       tbb.dll   Intel(R) Threading Building Blocks for Windows   3, 0, 2010, 0406  
       tbbmalloc.dll   Intel(R) Threading Building Blocks for Windows   3, 0, 2010, 0406  
       TfFontMgr.dll   FontMgr   9.3.0.113  
       TfKernel.dll   Kernel   9.3.0.113  
       TFKGEOM.dll   Kernel Geom   9.3.0.113  
       TFUGEOM.dll   Adobe, UGeom©   9.3.0.113  
       updaternotifications.dll   Adobe Updater Notifications Library   6.0.0.24 (BuildVersion: 1.0; BuildDate: BUILDDATETIME)   6.0.0.24
       WRServices.dll   WRServices Friday January 27 2012 13:22:12   Build 0.17112   0.17112
       wu3d.dll   U3D Writer   9.3.0.113  
    Required plug-ins:
       3D Studio 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Accented Edges 13.0
       Adaptive Wide Angle 13.0
       ADM 3.11x01
       Angled Strokes 13.0
       Average 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Bas Relief 13.0
       BMP 13.0
       Camera Raw 7.1
       Chalk & Charcoal 13.0
       Charcoal 13.0
       Chrome 13.0
       Cineon 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Clouds 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Collada 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Color Halftone 13.0
       Colored Pencil 13.0
       CompuServe GIF 13.0
       Conté Crayon 13.0
       Craquelure 13.0
       Crop and Straighten Photos 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Crop and Straighten Photos Filter 13.0
       Crosshatch 13.0
       Crystallize 13.0
       Cutout 13.0
       Dark Strokes 13.0
       De-Interlace 13.0
       Dicom 13.0
       Difference Clouds 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Diffuse Glow 13.0
       Displace 13.0
       Dry Brush 13.0
       Eazel Acquire 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Embed Watermark 4.0
       Entropy 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Extrude 13.0
       FastCore Routines 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Fibers 13.0
       Film Grain 13.0
       Filter Gallery 13.0
       Flash 3D 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Fresco 13.0
       Glass 13.0
       Glowing Edges 13.0
       Google Earth 4 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Grain 13.0
       Graphic Pen 13.0
       Halftone Pattern 13.0
       HDRMergeUI 13.0
       IFF Format 13.0
       Ink Outlines 13.0
       JPEG 2000 13.0
       Kurtosis 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Lens Blur 13.0
       Lens Correction 13.0
       Lens Flare 13.0
       Liquify 13.0
       Matlab Operation 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Maximum 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Mean 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Measurement Core 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Median 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Mezzotint 13.0
       Minimum 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       MMXCore Routines 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Mosaic Tiles 13.0
       Multiprocessor Support 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Neon Glow 13.0
       Note Paper 13.0
       NTSC Colors 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Ocean Ripple 13.0
       Oil Paint 13.0
       OpenEXR 13.0
       Paint Daubs 13.0
       Palette Knife 13.0
       Patchwork 13.0
       Paths to Illustrator 13.0
       PCX 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Photocopy 13.0
       Photoshop 3D Engine 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Picture Package Filter 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Pinch 13.0
       Pixar 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Plaster 13.0
       Plastic Wrap 13.0
       PNG 13.0
       Pointillize 13.0
       Polar Coordinates 13.0
       Portable Bit Map 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Poster Edges 13.0
       Radial Blur 13.0
       Radiance 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Range 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Read Watermark 4.0
       Reticulation 13.0
       Ripple 13.0
       Rough Pastels 13.0
       Save for Web 13.0
       ScriptingSupport 13.0
       Shear 13.0
       Skewness 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Smart Blur 13.0
       Smudge Stick 13.0
       Solarize 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Spatter 13.0
       Spherize 13.0
       Sponge 13.0
       Sprayed Strokes 13.0
       Stained Glass 13.0
       Stamp 13.0
       Standard Deviation 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Sumi-e 13.0
       Summation 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Targa 13.0
       Texturizer 13.0
       Tiles 13.0
       Torn Edges 13.0
       Twirl 13.0
       U3D 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Underpainting 13.0
       Vanishing Point 13.0
       Variance 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Variations 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Water Paper 13.0
       Watercolor 13.0
       Wave 13.0
       Wavefront|OBJ 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       WIA Support 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       Wind 13.0
       Wireless Bitmap 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00)
       ZigZag 13.0
    Optional and third party plug-ins: NONE
    Plug-ins that failed to load: NONE
    Flash:
       Mini Bridge
       Kuler
    Installed TWAIN devices: NONE

    Thanks very much for that lead, NormanPCN. I do have Auto Tone checked, though the rendered files in the example above do not have XMP sidecars. I will try unchecking Auto Tone even so, and post back when I see what happens.
    Thanks again,
    Kieren
    EDIT: Bingo! I took Auto Tone off in ACR Preferences (in Bridge) and the non-RAW files immediately regenerated thumbs and previews. They now are indistinguishable from the PSD. There is still the very slight difference which I mentioned between the PSD and the CR2. While that seems odd, it is small enough to be relatively trivial.
    Many thanks!
    Thumbnail view w/o Auto:

  • How to save a BufferredImage with RGB color encoded JPEG file.

    Hi, I am new to Java Imaging API programming.
    When I try to write a BufferredImage using following code -
    BufferedImage output = new BufferedImage (width, height, BufferedImage.TYPE_INT_ARGB);
    // Save
    File outputFile = new File("image.jpeg");
    ImageIO.write(output, "jpeg", outputFile);
    It seems that myfile.jpg have CMYK color encoding, Can someone tell me how can I save the BufferredImage with RGB color encoding.
    Thanks,
    Sanjay Ujjainkar

    how to format the text ?
    i have format ted the text but it seems not work!
    Message was edited by:
    Enjoyfans

  • Media Encoder not rendering full video

    So I just got Premiere Pro CC with Media Encoder and am trying to render a video I made in premiare pro. However video starts rendering half way throught the video and when done only the second half of the video is done. How can I fix?

    Im kinda suffering the same thing, i dunno whats happened recently but its since the yosemite update. Im having to render in about 5 attempts each time rendering a bit further.

  • Media Encoder is rendering an older version of my Premiere timeline.

    This has happened to me on a few occasions, where I have a dynamically linked After Effects comp in my Premiere timeline, the changes I make appear as they should in the Premiere timeline, but when I queue it to Media Encoder or render directly through Premiere, it renders the older version of the AE comp, as if it thinks nothing has changed. This happens even after cleaning the cache, saving a new copy and restarting premiere.
    The only way I've managed to fix it, is by saving a new copy of the Premiere project file over the temp file submitted to Encoder.
    This is how it looks on my timeline (Correct):
    How it looks when I queue through Encoder (Incorrect):
    Any help on how to avoid this in the future would be much appreciated!
    Cheers,
    S

    I thought you had something working after you installed FFDshow tryout.
    It would be helpful if you could upload one of your files that you can't convert to a file sharing website. Then others can download the file and work with it on their machine to see if they can convert it.
    I use MediaFire's (http://www.mediafire.com) free plan to upload and share files. For example, http://www.mediafire.com/?uhpmob5nc1w6q is a link to one of my files: "Kodak Zi8 720 30p." It's not a direct link.

  • 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. :)

  • Upload of exif encoded JPEG's not working in FF

    .Hey,
    Just starin this thread to get everyones input/comments/suggestions on handling this interesting issue.
    I have a script that uploads jpeg's. When I do the upload from the hard drive all works well in IE, FF, and Safari. When done directly from a camera it works in IE, but not in FF or Safari. I get an error saying the file is not an image. The camera (canon) saves images in JPG format and the script allows uploads of jpg, jpeg, png, gif.
    Upon doing some research i found out that the camera 'encodes' the JPEG by way of EXIF to add image data to the JPEG, but its still a JPEG.
    At first i thought it was the script but since it works in IE, i was told that it cant be... I have a discussion going on about it in another forum provided by the company I purchased this upload script from. You can see it at http://www.webassist.com/forums/showthread.php?t=4783. I'm staring to think its a browser issue and wonder how to 'accomadate' for such... I am using cs4 with vista 64 and the latest version of all browsers.  there has to be a way to accomadate for the inconsistency across browsers without changing the file extension or putting the images on the harddrive first... I want convenience for my users.... any ideas?

    I am having a very similar issue, but the reverse - IE9 doesn't work, but IE8, FF, and Chrome all work fine.  The error:
    SCRIPT5007: Unable to get value of the property 'split': object is null or undefined  -->  Line 43: _10d=_10c.split("/");
    The field has both name and id, as does the CFFORM. (There is only one CFFORM on the page.)  I am event calling the CFAJAXIMPORT at the beginning of the file.
    <cfajaximport  tags="cfform,cftextarea,CFINPUT-DATEFIELD">
    <cfform name="registration" id="registration" method="post" action="#cgi.SCRIPT_NAME#"> 
    Funny thing though, on the exact same code, but in another page, it works fine in all browsers.
    <cfinput  type="datefield" name="udf_43" id="udf_43" class="editbody" style="width:255px;" validate="date" validateat="ONSUBMIT"
    required="yes" message="Required Field: Please enter the information for - BIRTHDATE.">
    So, what is the fix?

  • Preserving Meta Data when encoding JPEG (JAI)

    I have a project where the requirements are that images which I compress (using the JPEG encoder of JAI) must be as much compressed as possible, but also must not be altered in any other way from the original image file, i.e. things like meta data must be preserved exactly as it was, and preferably other things in the header (such as resolution) should also be preserved.
    I have had no problems with the compression process as such, but unfortunately it seems that JAI writes a fresh new (default) header every time the compressed (encoded) image is written out. I also tried the new Java Image I/O stuff for doing this, and it seems to have exactly the same behaviour.
    I have searched both thses APIs extesively for something which would enable me simply to set the option that original meta data (and preferably all header data) should be preserved, but to no avail.
    I do realize that image meta data can be both read and written (at least using the Image I/O), but I find it quite complex and also find it a pitty and a waste to have to do that when the requirements are not about altering/processing any of this data, but simply about leaving it alone.
    If any one has any suggestions about how this problem might be solved, I would be very interested to know about it, and very greatful for any hints or pointers to information also.
    Thank you.
    Helgi

    What do you meen about meta-data??? Can you provide an example.....
    i.e. an initial image you have, in what format is in, it's meta-data (as you say ) and what you finally get encoding

  • Confused! Video I captured rendered blurry. Titles & "outside" video rendered clear

    Here is a link to the video that may make this more clear: http://www.youtube.com/watch?v=fmz7-cLqblQ
    I am very very very new to all this, so please be patient.
    I captured video using a DSLR - Canon T1i - which shoots in HD. I imported it to Adobe Premiere CS3 as an .avi. I created some titles in Premiere and also imported some video I received from an outside source.
    The video I captured was dark, so I used the enhancement features in premiere (brightness/contrast, color levels, etc.) to lighten it up. I checked "preserve luminosity".
    When I put all these things together in Premiere, it was completely clear in my preview screen. When I rendered and then played back it back on my computer, the video I captured on my T1i was completely blurry.  Everything else was crystal clear. I checked on google and many people were saying this happens a lot when watching it from your own computer (?) but to upload it to youtube or vimeo and it should be fine. I did that (took hours!) only to find the same thing is happening there.
    I want to tell you what settings I had the video project started in, but I am not sure how to go back and find that out. I know I tried to do the HD settings. If you could tell me how to do that, I am perfectly happy to go back and check the settings for the video or whatever else you need to know.
    Thank you very much for your help!

    I just experienced the same thing today. I bought a new White MacBook this weekend (I installed all the latest software updates). I published an imovie project to iTunes using the medium setting (Share->iTunes->MEDIUM). I saw the same artifacts that you are seeing. I republished the movie using the LARGE setting and the artifacts were gone. This is my workaround for now.

  • Relatively poor BitmapData.encode JPEG performance (iOS)

    Hi,
    Our app currently uses a native extension to access the inbulit JPEG encoder in iOS (UIImageJPEGRepresentation(...)). With a quality setting of 0.6 (not sure if that relates to standard JPEG quality settings) and a image size of 640x360, a typical encode operation takes 18ms on an iPhone 4S.
    I just tested the new BitmapData.encode functionality with the hope of migrating from using a native extension, but even at a quality of zero i'm seeing encode times around 49ms. At a quality of 60 it's not much slower (52-53ms) although it does return a file less than half the size of the native encoder.
    Have you considered wrapping the iOS SDK encoder, or if you are, should it be taking so much longer?
    My native encoding extension implementation: http://pastebin.com/VS1jhKB8
    By the way, really enjoying the momentum behind the Air releases!
    Cheers,
    Dave

    Well, in general I operate on the princiapal that removing code is a good thing
    I can see what you're saying about Native Extensions, however in this case since they've just added a JPEG encoder to the API it might make sense to use the fastest one available. However I can also see that they might prefer consistent behaviour over execution speed - no doubt the iOS native JPEG encoder will produce a different result than the Android one (http://pastebin.com/vu6BeE5p)

Maybe you are looking for