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

Similar Messages

  • How to save Buffered Image with variable transparency in a file.

    Hi,
    I need to save BufferedImage (type ARGB) in a file.
    Transparency in this image is a function of position. Who knows, what would be the best suggestion for type of file to store this image (probably not JPEG) and which package would be appropriate. A sample of code would be higly desirable. Please help, thank you in advance.

    Your can use the ImageIO-API if your software runs under JVM1.4 or you must use the JAI (Advanced Imaging API) ...

  • How to save a graph with some parameters on it?

    hi
    my application involves analysis of data and plot a graph of analysed data, how to save graph along with analysed data in a file otherthan labview?

    Well, it sounds like you are wanting a picture of the graph, yes? If so there are two ways of getting it. First there is a VI method (Get Panel Image) that lets you get an image of the entire screen, and then there is a control method (Get Image) that lets you get an image of just the front panel object that you are interested in.
    The help file entries for either method provides added detail on how to uses these methods to save a picture of your data.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • My illustrator CS6 crashes when i try to open an AI file with RGB color mode

    My illustrator CS6 crashes when i try to open an AI file with RGB color mode. I worked on this file yesterday and changed it to RGB mode. Today i tried to open the file again but illustrator won't open it and crashes. It does work when i want to open a file with CMYK color mode.
    Anyone know how to fix this ?

    Have you tried trashing the prefs?

  • How to save a png with a straight or fat alpha?

    Long story short, work in broadcast and a new piece of gear prefers png files.  I know how to save png's with a transparency, that's not the problem.  What I don't know how to do or if it's possible is to save them with a straight or fat alpha.  Right now we feather or extend the edges out past the alpha of say a logo and save it as a tif, psd or .tga.  That way once it's keyed over video or whatever, the edges look good, no black bad edging.... this makes sense, probably not explaining it very well.   But switching to png files I have no idea how to make a straight or fat alpha since it sees transparency.  I mean if I feathered out the edges, a png will see that correct, since there's no alpha??
    I hope this makes sense ?

    Chris, this is probably the answer I seek "PNG always saves with straight color - that's how the PNG spec defines it." 
    I admit my explanation was a bit weak and I understand PNG only supports transparency, which is not an alpha,  and the apps aren't treating them wrong....I just couldn't formulate an intelligent question and explain it, my bad.
    After thinking about it I don't think using a PNG will work. RIght now for broadcast gear/applications if we don't fill the transparent and semi-transparent areas of an image with the colored part of the image, we usually end up getting a dirty key/matte or a lot of fringing.  So when using a .tif or .tga that reads an actuall alpha, we can fix the issue by doing what I described.  In fact we use a quick little plugin from flaming Pear called "Solidifty" to speed up the process http://www.flamingpear.com/download.html .  With that said, I know we can't do the same steps with a png because it only sees transparency, but I guess I was wondering if there was a work-around or a trick to fix that issue.  I could be wong, but doesn't a png save with white ?
    But again, as I thought about it, I think i'm asking for something it's not meant to do, but I thought I'd ask anyway.
    Thanks Chris, does this make more sense or more confusing?  The bottom-line is I don't think it will work.

  • How to save a JPG in 256 colors?

    I'm using Photoshop CS2.
    1. How to save a JPG in 256 colors?
    2. Is there a way to see an image properties?
    -- I want to know if that image is in 256 color or not...

    Mary Jo, since you are a newcomer, you may not yet understand that in any given Adobe forum, there are a whole bunch of conversations going on at the same time. Each one of these is about a certain "topic", described in the title and opening post. The discussion sometimes stays right on point, and sometimes veers off a bit, and there are often quick side-issues branching off from the main topic, but still related. Within limits, people here try to keep the discussion on a single general topic. For example, in this topic, the initial issue is whether there is a way, in Photoshop, to limit the number of colors in a JPEG image to 256; there were discussions about whether this could be done or not, and alternative programs that may be able to accomplish this, and a comparison of the file sizes for 256 bit images in different file types.
    Your question, however, is not a logical outgrowth of the discussion. It's a perfectly good question, but it deserves its own new discussion topic. It's like a bunch of people have been sitting around a table discussing the merits of Canon vs. Nikon SLRs, and someone sits down at the table and, instead of joining the conversation, asks a completely unrelated question about point-and-shoot cameras, or camcorders.
    It's off-topic here, and you should start a new topic. Make the title descriptive, such as "Why does a 8 megapixel image result in a 3 megabyte file on my computer?" (assuming that's what you want to ask -- just "M" doesn't tell me whether you are talking about MP or MB). In the initial post, provide a more detailed description of what you want to know. Tell us what camera and Photoshop version you are using, and how you encountered the issue. People will see that a new topic raises an issue they know something about and you will get a response -- probably a good answer, if you keep in the conversation.
    [Edit: Trez hit "post" before I did. Trez-- I think she is using Photoshop, not Elements; she did say CS2.]

  • How to save a flash with .SWF

    Hi, I have the 'Adobe Flash CS3 Professional', and I want to
    know if you could tell me how to save a flash with .SWF.
    When I want to create a new project, I can chose between nine
    types of documents, and I want to make a flash for a website. What
    type of document would you chose if you were me ?
    I can't write the name of the diferent types of documents,
    because I have this programme in Spanish.
    Can you help me ?
    Thank you

    FLA is the native source format - make your movie and then
    publish to SWF -
    you can not create an SWF initially - SWF is the
    exported/published format
    of your FLA>
    "Marti_17" <[email protected]> wrote in
    message
    news:gioa0k$otm$[email protected]..
    > Hi, I have the 'Adobe Flash CS3 Professional', and I
    want to know if you
    > could
    > tell me how to save a flash with .SWF.
    > When I want to create a new project, I can chose between
    nine types of
    > documents, and I want to make a flash for a website.
    What type of document
    > would you chose if you were me ?
    >
    > I can't write the name of the diferent types of
    documents, because I have
    > this
    > programme in Spanish.
    >
    > Can you help me ?
    > Thank you
    >
    >

  • How to save a photo with a password on a mac

    how to save a photo with a password on a mac

    http://osxdaily.com/2012/08/12/encrypt-folders-mac-os-x/
    Note: I have never tried this.
    Best.

  • How to draw a bar with Gradient Color ?

    Hi,
    How to draw a bar with Gradient Color ? I see
    in Java Help about GradientPaint, maybe this
    can help ?
    Thanks in advance,
    Michael

    Try to use this in you paint method :
    public void paint(Graphics g)
    Graphics2D g2D = (Graphics2D) g;
    // Get the height & width
    int width = this.getWidth();
    int height = this.getHeight();
    // Create the gradient paint
    gradientPaint = new GradientPaint(0,0, Color.blue, width, height, Color.red);
    g2D.setPaint(gradientPaint);
    g2D.fillRect(0,0, width, height);

  • How to save settings in the front panel to different files and retrieve it later?

    How to save the front-panel controllers' settings to different files and retrieve it later?
    What I've archived is the "Save Settings" function, but when trying to "Reload Settings", I can only retrieve the saved data to front-panel indicators, but not the controllers!
    Can anybody give me some advises?
    Thanks in advanced!
    Charles Lu

    Hi
    Just write the retrieved data to a local variable (but make it writable first) or property node of the controls.
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How To Save Screen Shot Photo From iPAD to JPEG FORMAT

    How To Save Screen Shot Photo From iPAD to JPEG FORMAT

    The "iPad format" is PNG (which is better quality than JPEG).
    There is no way to choose JPEG at the moment of taking the screen shot. You will need to convert the file using conversion software, probably on your computer. Google "convert PNG to JPEG".

  • Problems with RGB colors in Illustrator

    Hello,
    i have a problem with saving my artwork which is done in illustrator in PDF file. This artwork needs to be saved in PDF in RGB colors. It seams  that I cannot do this. Originaly artwork was done in CMYK. Option Edit/Edit Colors/conver to RBG is not working that is this option is not possible.
    Any suggestions please. Printing company cannot process it if PDF is not in RGB colors.
    Thank you in advance.

    But there is no difference in either case as the file will not be overwritten.
    True that the file will not be overwritten if you're careful not to do a regular save, but there is a difference.
    When you switch from CMYK to RGB document mode in Illustrator, AI simply converts to whatever you've set as your RGB working space. Yes, of course, you can go into Color Settings and change your workspace profile if need be, but now you're monkeying with settings that you might not want to be changing frequently.
    Why not, instead, take advantage of a feature that's there specifically to deal with workflow issues like this?
    If the printer requires a specific RGB space that's different from your normal working space, it's much easier to select it from the destination color dropdown during PDF creation. If you'll be creating more files for this particular printer, simply record a custom PDF (job options) preset.
    Even if one chooses to do it the Wade Zimmerman way, one should make sure to look at the color panel during PDF creation to make sure no unwanted space conversions are taking place.

  • How to save a clip with a transparent background?

    How do i save a clip with a transparent background to export to quicktime and then be able to import it back into my timeline and have it be able to overlay ontop of another clip? Transparent clip is for lower third

    For transparency to work, you need to save it in a format that has an alpha channel. Not sure if FCE supports the Animation codec but if it does you'll want your material as "millions of colors +". The "+" means Alpha.
    x

  • How to save a variant with dynamic selections parameters

    Anybody knows how to save a variant for an ABAP that uses a Logical database with Dynamic Selections?
    Have a look for example to the following:
    SE38 - DEMO_PROGRAM_GET - Execute - Shift F4 - Connection Number.
    How to save 0820 as Connection Number?
    Function Group SVAR seems good but FREE SELECTIONs are not easy to manage...

    Hello,
      I tried to save the variant of DEMO_PROGRAM_GET with dynamic selection field (Connection Number) filled. It gets saved without any problem. Just click 'SAVE' and enter the variant name and description.
    Thanks,
    Venu

  • How to make different events with different colors on calendar, on my new iPad

    how to make events on calendar with different colors ?

    Sergio,
    The color of an event is dictated by the color assinged to the calendar it's on.
    Tap Calendars then tap Edit to either changed the color of an existing calendar or to add a new one.
    Matt

Maybe you are looking for

  • Citi EO office FAILURE

    applied for the Citi Simplicity card and was approved for sli of $1800, my lowest since the start of my credit journey. I want to turn it down but not sure. HELP

  • My default user can't access internet

    when I tried to use the internet from my default user account, it refused to connect, but my secondary user has no issues. how do i fix my default account?

  • Viewing olap cubes in java

    hi all! i´ve a problem... i´ve build some cubes with the oracle enterprise manager console and i want to view them in a java application with mdi tables etc, but when building the metadata model and initializing the expressdataprovider (-> documentat

  • Death of OVM manager. How to recover?

    I found myself in a situation where my OVM-manager server got hosed and I had to rebuild it (disks died, and since it's a test environment, no backup of the host exists). Unfortunately I had previously set up an OVM pool and repository. I re-mounted

  • What should i do if my contact app freezes and goes to home screen by itself?

    Hi, does anyone know how to deal with this kind of problem?