JPEG image with interlacing / progression

Why is bug 4675817
http://developer.java.sun.com/developer/bugParade/bugs/4675817.html
closed?
I'm using J2SDK1.4.2 and with JWS my application just quits when trying to display a JPEG image with interlacing / progression.

This is an infuriating bug; I couldn't believe how much time I wasted before I found the bugreports � by which time I was ready to hang, draw & quarter the guilty party (or the nearest sun employee).
The bug seemed closed against a similar bugreport, and this in turn has been closed against Tiger � which is 1.5 the next upcoming major release; which will probably happen next year now.
- Richard

Similar Messages

  • How to set color space to JPEG image with Java advance Imaging

    How to set color space to JPEG image with Java advance Imaging.
    is there any API in JAI which support to set color space.

    I'm definately no guru, but this is how you can change it.
    CTRL + ALT + Click on the part of the component that you want to change. This brings up the Hidden Dom Inspector, background of component will be surrounded with a red outline (Make sure the red outline is surrounding the part of the tabset you want to change), Now you go to properties sheet and click the ellipses next to rules property this will pop up a dialog you look in this list (At the top) to see the default style classes that are affecting the rendering of the component outlined in red. (You will be able to select different sections of a single component) then you just rewrite the style class that you want to change in your Stylesheet (You will not find the styleclass that you want to change because it is a part of your theme .jar but as long as you name it exactly the same and place in your stylesheet it will override the theme .jar style classes) it's actually very easy -- you were right should be a piece of cake for a guru. Don't have the link handy but you can check out Winston's Blog on changing Table Formatting to get this information...It is EXTREMELY useful if you want your apps to have a custom look and not default that comes with Creator Themes.
    Hope this helps you out God knows others have helped me alot!
    Jason

  • Rotating JPEG images with feh [SOLVED]

    A funny thing happened to me using feh today.
    It seems it can't rotate JPEG images 90 degrees (neither clockwise, nor counterclockwise). Whenever I try (with different files), feh dies with the following error message:
    Bogus virtual array access
    It can do it if it's 180 degrees. It can also rotate PNG images 90 and 180 degrees without any problem.
    Did someone else experience this? Is the new libjpeg to blame? Should I open a bug report?
    Last edited by megadriver (2010-03-05 06:56:25)

    I'm not sure feh is actively developed/maintained any more, but you could email the author* - I'm sure he'd fix something like this. If indeed it is a bug (of course). Can't check myself, yet - will do later.
    Meantime check imagemagick (and the convert command), if you need an alternative.
    * though I'd be happy if I was wrong.

  • How to show JPEG-images with Forms?

    I am able to display .bmp-images in Forms, but according to the documentation it must be possible to display JPEG-images as well. How do I do that?
    null

    Procedure is the same as you call bmp. but you have to write 'JPEG' in place of format where you write bmp. and file_name.JPG where you write file_name.bmp.
    That may help.
    Mustafa

  • Can't see jpeg images with RAW

    Hi All,
    I'm using a Canon 5d11 with setting for RAW + jpeg combo. When I import to Aperture, all I can se is the RAW CR2 image. I tried a search etc. but no luck. Am I missing something or setting to view both or are they someplace else in separate folders?
    Thanks for any help.
    John

    Under Images menu there is a "Create Version from Master JPG". They are combined in one thumbnail but if you use the menu item on all the selected thumbnails you will get the JPG.

  • How to store jpeg images with IMAQ PCI-1409 without vision or labview

    I have acquired an IMAQ PCI-1409 card and have it working just fine. However the card is being primarily used to aquire images for display purposes only. The only options with MAX are .tiff, .bmp and .png
    It would be nice to be able to store images as .jpeg which would be easier to share with other people.
    Is this possible or do I have to compress the images using another software?

    Hello,
    Thank you for contacting National Instruments.
    Unfortunately, as you mentioned, the only save options available in MAX are TIFF, BMP, and PNG. In order to save the image as a JPEG, you will need to use another software program. Microsoft Paint will allow you to save/convert any of these types to JPEG format. Other programs (Adobe Photoshop for example) allow you to customize the compression used, but Microsoft Paint does not.
    Best Regards,
    Jesse D.
    Applications Engineer
    National Instruments

  • 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

  • How to get a jpeg image to a movie with best possible quality

    I've got a jpeg image from my 2 megapixel digital camera and I'm playing around with converting it to a movie. Yes, its a one image movie.
    +QuickTime Pro+ does a superb job when I choose H.264, 1024 kb/s, but I can't get iMovie 5.0.2 to give me the same quality. This is what I have done:
    1. Create a new movie as type MPEG-4.
    2. Imported the jpeg image and adjust the time from 5 seconds to about 2 seconds.
    3. Select Share, choose H.264, 1024 kb/s from the relevant option and after the movie making happens, the quality is obviously inferior to that from +QT Pro+.
    *QUES 1*: Why is the quality inferior?
    I have been to iMovie help and noticed this comment:
    "When you import clips in a format different from your project, they are converted to the video format of your movie."
    *QUES 2*: Is this why my jpeg image is losing quality? Is iMovie converting it to something else?
    Further, when the jpeg image is first imported, it is assigned a clip time of 5 seconds. When I move one of the sliders to reduce the time to just a few seconds, I notice that a black band appears at the top of the image in the iMovie window and as I make the time smaller, the image zooms in and the black band becomes wider. Letterboxing at the top seems to be occuring. This I can't fathom.
    *QUES 3*: Why does iMovie zoom in when I adjust time?
    Any comments most appreciated, especially those that tell me if iMovie can make a movie from jpeg images with the same quality as QT Pro -- and how to do that.

    Re the quality -- I think I have answered this one myself. Correct me if I'm wrong, but it seems to me that when I select a video option (DV, HD 1080 and so on), iMovie sets up a frame size to suit, and the frame size that iMovie sets up for MPEG-4 happens to be 640 x 480, thus the poor quality of my jpegs when I selected that option. The poor quality had nothing to do with the MPEG-4 format.
    Now the interesting things is, MPEG-4 is not limited to 640 x 480. It can be any size. So my question is:
    Ques: Can I set up a movie within iMovie that is any size I want? QT Pro gave better results because it allows any size movie at all, and thus adjusted the movie size to my jpeg size (1800 x 1200 pixels) when I imported an image from my digital camera.
    As it stands, not even the highest quality option in +iMovie 5.0.2+ (HD 1080) can handle the images from my piddly-little 2 megapixel camera.
    Message was edited by: Guy Burns

  • Unable to open saved edited jpeg image

    Not being the most techie type person, sorry if this is repeated in numerous place on the forum. I can see, and open, the images in thumbnail form in my 'Picture - Library'. I can then edit them in PE 10, but when I 'save as' (and I save as jpeg image with a version of IMG_****.jpeg copy ) the 'copy' jpeg thumbnail appears in the library as a blank page and no image. I'm then unable to open the 'saved' copy as it's the 'wrong type'. I've tried numerous images but to no avail. Any advice will be greatly appreciated.

    Change IMG_****.jpeg copy to IMG_****copy.jpeg

  • Unable to open saved JPEG images

    I opened and modified several JPEG images with Photoshop CS2. Now none of these files can be opened by Photoshop or any other program. All of the files seem to have a non-zero size, but when I try to open them in Photoshop, it does not generate an error, it merely offers to create a new file with the same image properties (size, etc) as the saved image on disk.
    I've also tried several other programs to open these files, and none of them can open them. FYI, one thing that all of the files have in common is that they are all saved with the absolute minimum compression settings.
    Any assistance in helping me to recover these files would be greatly appreciated.
    Thanks.

    You can email me one of the Pics (zip it first) but it sounds like they are toast.

  • ID ePUB export converts all *inline* anchored JPEG images to PNG?

    During ePUB export, when Image Conversion = Automatic, anchored JPEG images with Position = Inline are converted to PNG. If Anchored Object Position = Custom, the same images stay JPEG. Anyone know a better way to avoid than the less-than-ideal options below?
    Less than idea options:
    a) Use Image Conversion = JPEG (would also convert existing .gif and .png images)
    b) Specify Object Export Options for each image frame that contains a JPEG.
    Maybe this is just a bug.

    Here's the definition from the InDesign Help file:
    Image Conversion
    Lets you choose whether the optimized images in your document are converted to GIF, JPEG, or PNG. Choose Automatic to let InDesign decide which format to use in each instance. Choosing PNG disables the image compression settings; use PNG for lossless images or for images that include transparency.
    Choosing Automatic means InDesign decides which format to use. It doesn't mean keep the same format.

  • When I export an image with a Green label, it exports with a "Green" keyword! How do I prevent this?

    I've added a Green color label to an image. When I export the image as a JPEG and then upload it to Flickr, I find a "Green" keyword that I don't want. How can I turn off this behavior -- i.e., exporting color labels as keywords -- while preserving the ability to export all the keywords I added manually?
    I know the keyword is coming from Lightroom because I temporarily changed the Color label's legend to "GGreen" and the keyword "GGreen" appeared in the Flickr upload dialog.
    I inspected the IPTC data of the exported JPEG image with a 3rd-party program (Irfanview) but could not find "Green" (or "GGreen") in the file, but all my manually-added keywords are there.
    I've tried all of Lightroom's Export dialog Metadata settings.
    Thanks,
    -- Sam

    New information and some screen grabs!
    The new information is that the unwanted label "Green" (or whatever color label is selected) appears as a Flickr Tag only when no manually entered keywords are attached to the image in Lightroom. Adding even one keyword in Lightroom and repeating the export-from-Lightroom-then-upload-to-Flickr process results in no "Green" tag in Flickr.
    The images are a) the Flickr upload screen showing the "Green" tag; b) my Lightroom Metadata presets -- everything unchecked; c) my Lightroom Export dialog panel.

  • 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

  • Help with managing RAW and jpeg images and installing iphoto 9

    Greetings: Fist, let me make the neophyte apology and plea - I'm sorry, I should have come here first; I didn't and now I need your help.
    I have just purchased a macbook pro (still in its box) with updated software for my older imac os x. I have a number of Canon related photo editing programs (that came with my 40D digital SLR) and Adobe photo elements 6 for mac on the imac. Following some erroneous advice I have made a complete mess of the pictures folder's content by trying to delete images directly from that folder (there are now 6000+ images in the folder, many of which are duplicates(?). Most of the images are not tagged or labeled and some have been organized in/by iphoto (I corrupted the iphoto's library structure very early on by disrupting and editing its images - which might explain why iphoto had a difficult time 'finding' and displaying some of my photos). The picture folder now holds jpegs, smallRAW images (a Canon 40D photo format) and various duplicates of the orignal images - (some of the duplicates don't display as images, but as jpeg logos, which, when opened contain duplicate image or are completely black) The first time I downloaded RAW images into iphoto 6 the RAW data displayed as a black image. When shooting in smallRAW on the Canon 40D, the camera produces a jpeg image for 'easy viewing and editing in the camera' but it looks as though iphoto 6 made duplicates of the jpeg and the RAW data and stored them in different locals in the picture file. In an attempt to get the number of images down, I have been trying to delete them from the picture folder. (My daughters both download images rather indiscriminately in hopes of 'editing them on the computer' which inevitably does not happen) and there is a lot of experimental bracketing of images - shooting raw and different Camera formats etc., all of which need to be cleaned up before I proceed.
    Sometime in the not-too-distant future I would like to have iphoto 9 running on my imac with a clean library of images and a seamless way of downloading, editing and storing images (including the RAW data).
    The macbook pro is for my highschool-aged daughter, who will run iphoto 9 but not have any RAW image data on her system. She would like to copy some of the old iMac's images to put into her own iPhoto 9 library (probably using a disk, email or on-line photo service - ideally, I would like to be able to copy and remove a number of those images from my HD and give them to her for the macbook)
    A few questions and queries: Can I 'dis-able' iphoto 6, while I delete images (RAW and jpeg) from the picture file? (and is this even a good idea).
    Once I have edited the # of images down to a reasonable size, should I re-launch iphoto 6, rebuild the iphoto library and then update to iphoto 9 or skip v6 and rebuild with v9?
    And now for the 'how stupid is this guy question' - I really had planned to purchase an external backup; but between new the macbook, car repairs and braces it has never come to fruition. So, I have never properly backed up my images. What is the bare-bones, least expensive method for me to do this? I'd even consider burning everything to disks if that works. I can't afford the $ to purchase a new external hard drive right now (really). Budget is set aside mid-November for one though.
    I've been looking through some other discussion boards and it looks like I'm not the only one having RAW image issues. I know that shooting smallRAW with the companion jpeg is probably not helping things but I take my camera equipment on extended canoe trips - and we like the ease of on-the-spot editing with this format.
    Thanks in advance for your help - Mark

    Terence, Is the picture folder the primary source for the images or does that data reside somewhere else?
    If you gathered them there, then yes.
    I really don't want to have to go through 14,000 images looking for the pictures that I want to keep (or is that my only option?).
    Only you can decide what you want to keep.
    Why does the computer keep making copies of the images and filing them under date and events?
    That's how iPhoto works. It's not a problem usually, only you did go in there and make a problem, and now we are trying to fix it.
    You advise not to muck around in the picture file via preview,
    No I don't. I advise not to much around in the iPhoto Library Folder.
    but if I download images through a program other than iPhotos - image capture or adobe aren't I doing that anyway?
    Adobe what? Adobe is a software manufacturer who make many excellent applications, you need to be more precise. And no, if you import photos with Image Capture or “adobe” no you are not interfering with the iPhoto Library Folder.
    Can you edit a base image file somewhere and remove it from the HD without iphoto making a copy of it and storing it somewhere else?
    This is stunningly easy. Don't use iPhoto. Use an image editor.
    I want to look the negatives, decide which ones I want and throw the rest away. Can that be done or am I way off course?
    Yes, and iPhoto (or similar apps) make this really easy.
    Hook up your camera. Import the pics to iPhoto. Go through the imported pics. Trash the ones you don't want. Then process the ones you do. But you must learn how to use iPhoto to do this successfully
    To trash: put the pic in the iPhoto trash and empty it. This removes the file from iPhoto and the Hard Disk.
    Process it: If you want to use another editor: You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • How to get crisp jpeg images for slideshow on a Mac with Final Cut?

    Hi, I imported a large number of jpegs into Final Cut Pro and when I export to Quicktime Movie (not modifying the sequence size or settings I notice the quality of the jpeg images looks rather washed out and a bit fuzzy. The image dimensions of the jpegs are actually 2848 x 4272 and I was originally using a sequence setting of 720 by 480 (which scaled the images to about 12%). I experimented with doubling the sequence setting to 1440 by 960 and scaled the images to about 25.5% - still a bit washed out look.
    Basically this will be a presentation on a computer and output via projection. Looking for best possible and clearest photos. I experimented with iPhoto and when you play a slideshow it looks very crisp - this is what I am aiming for. When I export using the Slideshow export at the largest size 640 by 480 in iPhoto to quicktime - the quality seriously deteriorates.
    What would be the best way to maintain the crispness of the photos in Final Cut for an export to Quicktime that would be show on a Mac via a projector? Thank you

    Hi Nick, I do see information on creating a slideshow with Quicktime at: http://www.apple.com/quicktime/tutorials/slideshow.html
    however it appears Quicktime X removed that capability. There is no 'open image sequence' option from the File menu in Quicktime X.
    If I do end up sticking with Final Cut - would you recommend any codec and/or dimension size that would result in the best quality or the most crisp image? I also need a few fade in's and out's on various parts - I don't believe I would have the control without Final Cut.
    Would resizing the image files in Photoshop to 1920 pixels by 1280 before importing them into Final Cut result in crisper images? Thanks.

Maybe you are looking for

  • IMessage doesn't work all the time

    Hi, I'm using iPhone4S and noticed that recently for the past week, iMessage doesn't work when I text my husband who's using iPhone4. I tried switchin network (wifi and telco data) but both also doesn't work. Please advise why this is the case and ho

  • How to Create Business Partner with  fix number in t-code :BP

    Dear SIr, Normally I will set number range for auto  to create Business Partner. In case , If we would like to crea How to Create Business Partner with  fix number in t-code :BP , howe to do? Please kindly advise. THnak you and best regards, Vimol

  • Oracle BPM 11g -  Custom view  - Design Phase

    Hi, Does anyone know if you can create a custom view during the design phase (the way you do it in ALBPM 6.0 and oracle bpm 10g) so that users meeting the filter criiteria can then see the view in the BPM workspace. I don't want all users to create a

  • PowerView Dashboard Connect to Perspective

    Hi All,         We are working on a BI solution using PowerView for SharePoint connect to SSAS (Tabular). We would like to filter out the data to present to users when browse data from PowerView dashboard (in SharePoint) while remove the filtering wh

  • I want my photo files back on my hard drive, not on Revel

    I uploaded about 5,000 photos to Revel but neglected to keep the originals on my hard drive. I want my photos back on my hard drive. How do I download the photos back into Adobe PSE 13 Organizer in the same date folders they were in before they all g