ImageIO writes bad quality images

Hi, create a new buffered image
bufferedImage = new BufferedImage(DIM_SIG.width, DIM_SIG.height, BufferedImage.TYPE_INT_RGB);
icon = new ImageIcon(getClass().getResource(FILENAME_400_125));
g.drawImage(icon.getImage(), 0, 0, null);This is adding a background picture, then I use the Graphics object to add some text.
Then I write it localy, but the end product is somewhat "shackened", in other words not the best quality.
ImageIO.write(bufferedImage, "jpg", file);How can I generate my picture with better quality? or what methods librarys should I check=
Kind Regards
HV

I also tried this without any luck.
FileOutputStream fos = new FileOutputStream("out.jpg");
JPEGImageEncoder jpeg = JPEGCodec.createJPEGEncoder(fos);
jpeg.encode(bufferedImage);and this:
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream("lol.jpg"));
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
encoder.encode(bufferedImage);now I aslo tried JIMI:
File f = new File("myimage.jpg");
JimiRasterImage jrf = Jimi.createRasterImage(bufferedImage.getSource());
Jimi.putImage("image/jpeg",jrf,new FileOutputStream(f));Kind Regards
HV

Similar Messages

  • My firefox is loading Bad quality images, but actully the images are perfectly alright

    My firefox is loading Bad quality images, but actully the images are perfectly alright

    In my experience, print quality settings such as dpi/ppi are hidden in your printer driver settings and not directly available through Firefox's UI. In the print dialog, if you click the Properties button, you hopefully will gain access to this setting. Obviously native web resolution (96ppi) can give disappointing results, so hopefully you can find a place to increase it.

  • Image quality in ImageIO.write();

    Hello,
    Ive made a prog to convert a BufferedImage into a jpeg and write the jpeg to file:
    ImageIO.write(image, "jpg", file);
    does anyone know how i can specify the encoding quality?
    Thanks,
    Jim

    AFAIK, there is no provision to set the encoding quality, if you want to save the image in a good quality image file, try the png format.
    ;o)
    V.V.

  • Bad quality of web images X1 Carbon 2015

    All images (especially the small ones) and icons from internet and some applications have very bad quality as if they had very low resolution. For example, all avatars on Facebook look really bad, I can hardly recognize people. The same holds for all logos and banners with text images. I understand that the images get distorted because of extremely high resolution of the display (2560x1440) - by the way normal text and all Windows images have excellent clarity - however I can hardly beleive that a 2000 EUR machine is not able to provide appropriate image quality even for simle internet surfing! Is that a fact you have to accept when having 2560x1440 or is it somehow possible to get normal image quality? (Otherwise I'll return the laptop).

    Here is a screen shot of how it looks like when you open private modus in IE.
    At the top you see the blue block [InPrivate] in excellent quality and at the bottom you see how the same thing is displayed when it's an image. Actually both should look the same.

  • When i transfer an photoshop image in Indesign, this one come out in very bad quality and pixelise even once print

    Hello,
    I have an issu, every image i bring or change trough Photoshop CS6 and transfer to Indesign CS6 or Illustrator CS6 comes out in very bad quality and very pixelated whyle printed.
    The original image in photoshop is 29x32 cm with 300 ppp.
    When i transfer in Indesign, i have to reduce the site via the adjustment button and it comes in terrible quality.
    It never happen before, its just recently, and i didn't change my way to save or the properties of my Photoshop, so if someone can help me to resolve this problem, i will be glad.
    Regards,
    Marie

    Before I should save the image as a PSD (without Clipping Mask and dont flatten the image). the print would come out different colours...not the same.
    Are you saying the printer can't get a .PSD to output, or a PSD's color is unpredictable? Sounds like your printer can print .PSDs, but you  have a color management problem. By different colors do you mean that the printed CMYK color values are different than what was in the placed PSD? If that's the case it may be that the PSD had a profile that conflicted with the InDesign document profile and you are getting unexpected color conversions somewhere in the workflow.

  • Bad quality after converting to PDF and direct emailing of form letters from MS Word

    Hello,
    when using the the "form letter" option (for creating personalized PDF files from form letters, that are then directly emailed as attachments via outlook) under the "Acrobat" add-in tab in MS Word I keep getting PDF documents with bad quality (e.g. a logo that is inserted in the document becomes very pixelated). When directly converting the same document to a PDF file using the "create PDF" option unter the "Acrobat" add-in tab in MS Word, I get a high quality pdf file with a perfectly smooth logo (very much the same as it looks in the original MS word document).
    Does anyone have an idea what causes the discrepancy in quality of the pdf files that are created via the two options "form letter" and "create PDF" in the "Acrobat" add-in for MS Word?
    Any help is highly appreciated,
    thank you,
    Hans

    Maybe I have not made myself clear in the first post. What I am trying to say is, that I keep getting bad quality PDFs (e.g. pixelated logos) when using the "form letter" option (blue box in the image above) but not when using the "create PDF" option (red box in the image above) from the Acrobat add-in in MS Word. Changing the settings for pdf conversion (green box in the image above) only affects PDFs created from the "create PDF" but not the "form letter" option.
    Does anyone know how to create high quality (e.g. high resolution) PDFs using the "form letter" option (blue box)?
    Best regards,
    Hans

  • Bad quality pictures in dim light

    When I'm in dim light situations, (Bar) my pictures are grainy and really dark. When I used several of my friends iPhones to take additional pics, I noticed 1) the image on the screen before taking the picture is brighter. 2) the picture is is better quaility, more vibrant. My comparison was against 2 other iPhone 4S'. Also, when using my flash, the pics have a blue tint. I always assumed that this is because of the use of an LED as the flash. Compared to both my friends iPhones, theirs is more normal looking.
    Should I just take it into the Apple Store and let them deal with this?

    cosoriocadenas wrote:
    Why my iphone 4S takes bad quality pictures in interiors? low light
    You answered your own question.  It's the low light.
    What is the solution to this issue?
    Are you using the flash?
    You might also want to try out an app called King Camera.  It allows a bit of control over exposure that might help.
    http://itunes.apple.com/us/app/king-camera/id430240788?mt=8
    Matt

  • When publishing characters get bad quality

    Hi!
    I'm trying to use Captivate 6 characters, but, when I watch the slides in the editing version, it's OK, when I try to preview or publish them, they get a very bad quality.
    Can you help me, please
    Thanks, Mariana

    Those characters are high quality images, with transparency. I suppose you are still on 6.0.1 and didn't change the default slide quality, which is set to low. That is the reason, finally the team listened to my begging and in 6.1. the default quality is set to Optimized. Try to change that quality, and if that doesn't solve the issue, uncheck all compression settings when publishing as well.
    Lilybiri

  • Bad quality preview in Bridge versus photoshop preview

    Okay here's my problem.  When I view my photos using Bridge CS4 I get a bad quality preview even when preview is set to "Always High Quality" The first photo you will see that there is a greenish yellowish tinge on the side of my daughters cheek.  However, when I open the same image in photoshop that tinge is gone! You can see this in the second image.  Is there a setting that I need to alter here in Bridge? And here's a weird thing....since that file is a raw cr2 file, when I open it up in camera raw, I see the exact same greenish tinge in camera raw as well.  Does anybody know what's going on here?

    Gosh darnit!  It's happening again.  I'm getting that murky yellowy tinge in the shadows again in the preview panel in Bridge AND Photoshop!! I downloaded the CS5 trial and when I was previewing some .CR2 RAW and jpeg files in sRGB color space in Bridge CS5, I see that in the preview box, the image looks awful with that yellowy tinge in the shadows.  I open it up in Photoshop CS5 and zoom way into it, and sure enough, I see that yellowy nightmare.  But when I open it up in picture viewer or in internet explorer, the yellowy tinge is gone.  Man this is frustrating!  I know it can't be a monitor calibration issue cuz if that was the case, the image in picture viewer would indeed, also have the yellowy tinge, correct?  Any ideas?  When the problem mysteriously went away with CS4 when I originally posted this thread several months ago, I thought updating Bridge was the solution.  However, I don't believe that was the real answer.  Anybody got any ideas?  I was curious if it was an "Adobe" issue so I opened up one of the jpeg problem photos in AE CS5 and zoomed in.  Fortunately, the yellowy tinge does NOT show up in the preview panel.  PLEASE HELP!!!
    Dell XPS 430
    Windows 7 64 bit
    Nvidia GT 240
    Dual monitors (Dell 2209WA IPS panels)  

  • Low quality image when adding to iMovie

    I have 2 movies that I want to remove some parts, but when adding to iMovie, it changed some video adjustments to a worst quality image.
    This 2 movies had already bad image quality from the source, because they have very darkness frames and were filmed in VHS.
    But they were reasonable to see, from Apple TV.
    Now in iMovie they became worst.
    The source is H.264, AAC 1280x720 FPS 23,97
    The source is H.264, AAC 1024x576 FPS 23,97
    What can I do ?

    Available ?
    More or less.
    And how can I send a sample ?
    Depends on the size of the sample and what space is available to you on a server. You can usually send snippets as e-email attachments up to about 10 MBs. If you have a MobileMe account, server space provided by your ISP, or other server space provided by a third-party service, then you can upload larger samples for FTP or webpage use and simply post/send me the URL, reference movie, or QTL.
    When the movie goes to iMovie, the brightness decreases and the contrasts became more darkness.
    Have you tried playing with the built-in "Video Adjustments" at all? Not the easiest thing to use but you can make some adjustments using it. In such work, "Less is usually best." By this I mean you should apply as little adjustment as you can get away with using.
    Normally I would start with a "Level" adjustment. While there is an "Auto" button you can press to get some idea as to what the application says you need for a particular frame or range of frames, this setting can vary drastically depending on the individual frame being tested. So it would usually be a good idea to expand your clip and "test" a number of frame ranges to see what is a "typical" setting for the clip. If the settings are fairly uniform, you can go with the suggested setting or something reasonably close to save "blowing out" highlights. On the other hand, if the settings vary drastically, you my either wish to select an "in-between" setting of your own manually, or split the clip into sub-segments which can then be adjusted individually. NOTE: the auto "Level" adjustment does not affect other settings -- only the clipping points and does not include controls for half or quarter tone adjustments. Still it is my preferred starting point for making adjustments.
    You can also try adjust the "Exposure" setting. This will tend to allow you to adjust the "Brightness" and "Contrast" uniformly by centering your color channel histogram but can easily be overdriven. "Brightness" and "Contrast" can, of course, be adjusted individually if you prefer but you may find the "Exposure" control easier to handle where the content is more uniform with regard to shadows and highlights. Lastly, adjustment of any of the previously mentioned controls will usually have some effect on color saturation. While they do not change the actual setting, they do tend to desaturate color as the other controls "lighten" the cast of your frame images. So, don't be surprised if the results "wash out" somewhat and you may need to touch up the saturation. But, once again, go easy as the saturation doe not increase uniformly and tends to "blotch" highlights and/or create color shifts in these areas.
    About the only controls left are the individual color channel levels. I don't normally recommend playing with these arbitrarily as they then to shift the color cast/white balance of your content. As to the White balance itself, the "eyedropper" had little or no effect on the content I tested so I assume the it either did not work as described or the sample white/grey points I used for sampling did not require adjustment. As to the Balance Wheel," it does work well but like the color channel adjustments may cause more harm than help most novice users.

  • +++ Photos imported from iPhoto to imovie6 become bad quality.

    Although imovie 6 is caught up with a sum of disadvantages of imovie
    5, I observe a new disadvantage which did not exist before.
    With knowknowing:
    In the "multi-media" mitre + "photographs", when I import
    a photograph from iphoto, I observe that the image which is transcribed
    in the screen of the visual display of imovie 6 is of a perfect
    quality.
    For example, a photograph taken with 3,5 Méga pixels with a
    weight of 2 Mo. PRECISION : !!!!!! ( FORMAT IS JPEG ) !!!!!
    The image is perfect, and in the internal adjustments
    with imovie 6 that they are with or without the effect Ken Burns,
    it seems the original.
    However when I decide to apply it in the
    timeline and that I it replay in the visual display, I note that the
    quality of the image was strongly degraded ( very bad quality).
    There are somebody in the specialists or the helpers who can give me explanations and how to cure that,
    because this disadvantage is strongly regrettable and detrimental for me.
    Thanks to you.
    powerbook G4, 17", 1,5 G   Mac OS X (10.4.6)  

    Hi pierre - here are some more useful references:
    Still Photo Quality in iMovie:
    http://www.sjoki.uta.fi/~shmhav/SVCDon_aMacintosh.html#slideshow
    http://discussions.apple.com/thread.jspa?messageID=961100&#961100
    http://discussions.apple.com/thread.jspa?messageID=971053&#971053
    http://discussions.apple.com/thread.jspa?messageID=961093&#961093
    and maybe especially:
    http://discussions.apple.com/thread.jspa?threadID=245638&tstart=0
    http://discussions.info.apple.com/webx?[email protected]@.68be025d/13
    and from Karl Petersen – to create Best Quality Still Pic for iMovie:
    http://discussions.apple.com/thread.jspa?messageID=1921544#1921544
    The main point to keep in mind is that before importing your photos, you must have the Ken Burns effect turned on in order to achieve the best quality. Also, remember that the iMovie screen is just there for editing purposes, and does not display the clips at full quality.

  • IMAGEIO.write,  create an empty file on my filesystem

    hi,
    I'm trying to write an image to my filesystem using this method, but it just create an empty BMP file.
    I can't understand why.. I'm sure that I getAsBufferedImage returns a BufferedImage (I checked the raster in debug mode)
    ImageIO.write(planarImage.getAsBufferedImage(), "BMP", new File(pathname));thank you
    bye

    Thank you. I'm in 8i.
    SQL> SET head off
    SQL> SET pagesize 0
    SQL> SET verify off
    SQL> SET feedback off
    SQL> SET serverout on
    SQL> SPOOL empty_file.txt
    SQL> BEGIN
    2 DBMS_OUTPUT.put_line (RPAD (' ', 2000, ' '));
    3 END;
    4 /
    BEGIN
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.DBMS_OUTPUT", line 57
    ORA-06512: at line 2
    Any solution ?

  • Poor quality images

    Have done many movies in FCE 3 and just loaded 4. I shoot photos with a canon 7D and in completing the movie the image quality is extremely poor. I have always just brought JPEGs in to FCE in the past and they were tack sharp. every image appears crushed vertically, major pixelation, and on images that move its just a blur. I have tried loading new images in smaller formats, PSD files, PDF all of the same images and all the same result. Its almost as if it is turning a 4:3 into a widescreen. Any thoughts are ideas to troubleshoot? I have tried almost everything from exporting in different formats etc. These are very high quality images and I have used many in the past with no problems at all.

    Michel
    No video in this movie. All photos. The photos are JPEGS (Very large, which have been used in the past and have slipped right in and worked) I'm uncertain of the settings, not sure where to find what you may be looking for...I set up the video as I do for all of my movies as a DV-NTSC file, then export in the same format using q-time conversion...used several this time hoping one would work.
    I did close all open projects, loaded a brand new one, imported files and still the same thing when burned...blurry, pixelated really bad images. I'm kind of at a loss. I have done nothing different to my knowledge with the new FCE4. Even in the canvas its a bit blurry when played, and it has been rendered. In the "RT" on the time line its set to Unlimited and dynamic. At this point I don't think its the images as I tested a few from my laptop to view on the tv and they are perfect.
    Appreciate any advise!

  • ( Additional ) Bad Quality : Photos Imported from iPhoto6 to iMovie 6

    Although imovie 6 is caught up with a sum of disadvantages of imovie
    5, I observe a new disadvantage which did not exist before.
    With knowknowing:
    In the "multi-media" mitre + "photographs", when I import
    a photograph from iphoto, I observe that the image which is transcribed
    in the screen of the visual display of imovie 6 is of a perfect
    quality.
    For example, a photograph taken with 3,5 Méga pixels with a
    weight of 2 Mo. PRECISION : !!!!!! ( FORMAT IS JPEG ) !!!!!
    The image is perfect, and in the internal adjustments
    with imovie 6 that they are with or without the effect Ken Burns,
    it seems the original.
    However when I decide to apply it in the
    timeline and that I it replay in the visual display, I note that the
    quality of the image was strongly degraded ( very bad quality).
    There are somebody in the specialists or the helpers who can give me explanations and how to cure that,
    because this disadvantage is strongly regrettable and detrimental for me.
    Thanks to you.
    powerbook G4, 17", 1,5 G   Mac OS X (10.4.6)  

    Hi pierre - here are some more useful references:
    Still Photo Quality in iMovie:
    http://www.sjoki.uta.fi/~shmhav/SVCDon_aMacintosh.html#slideshow
    http://discussions.apple.com/thread.jspa?messageID=961100&#961100
    http://discussions.apple.com/thread.jspa?messageID=971053&#971053
    http://discussions.apple.com/thread.jspa?messageID=961093&#961093
    and maybe especially:
    http://discussions.apple.com/thread.jspa?threadID=245638&tstart=0
    http://discussions.info.apple.com/webx?[email protected]@.68be025d/13
    and from Karl Petersen – to create Best Quality Still Pic for iMovie:
    http://discussions.apple.com/thread.jspa?messageID=1921544#1921544
    The main point to keep in mind is that before importing your photos, you must have the Ken Burns effect turned on in order to achieve the best quality. Also, remember that the iMovie screen is just there for editing purposes, and does not display the clips at full quality.

  • Bad quality colorbust

    I have a IMAQ 1408 and a NTSC camera (alm-2451g wireless microcamera,
    like this: http://www.prymesecurity.com/2451g.htm ) and i can't snap
    Still-color images because i get this acquisition error message:
    bad quality colorbust.
    I know that colorbust is color synchronization signal: someone can
    tell me why IMAQ 1408 can't find it?
    With other acquisition cards i can capture color videos and images
    easy, but with IMAQ 1408 i can just snap and grab in monochromatic
    mode (selecting disabled in "still color" combo).

    Hello.
    With other acquisition cards i can capture color videos and images
    easy, but with IMAQ 1408 i can just snap and grab in monochromatic
    mode (selecting disabled in "still color" combo)
    This is a little surprising, as the error message that you get is almost always related to a non-color camera being connected to a PCI-1408 (or 1409) in still-color mode. This error comes when the signal is not as expected. Based on what you have mentioned, I am guessing this is a composite color camera. There are only a few remaining things to check/change:
    1. Be sure composite is selected in the still-color mode.
    2. Be sure that NTSC is selected as the camera (right-click on channel and select Camera_NTSC).
    3. Go to the property page for the channel and ve
    rify that the reference voltages and other settings are according to the specs of the camera.
    I hope this helps lead to the answer!
    Regards,
    Colin C.
    Applications Engineering
    Colin Christofferson
    Community Web Marketing
    Blog

Maybe you are looking for