How can I improve the quality of resized images ?

Hello,
I've written a program for batch resizing Jpegs which is working fairly funky however the quality of the resized images could be a bit better. Is there any way of doing a smoother resize of the images ? I'm currently using:
AffineTransformOp op = new AffineTransformOp(AffineTransform.getScaleInstance(scaleX, scaleY), null);
theImage = op.filter(theImage, null);
Also I'm having trouble with some Jpegs taken with my friends digital camera. When I resize the vertical (480*640) ones the colours get all messed up while the horizontal (640*480) ones turn out fine. This only happens with Jpegs from his camera ! The colour scrambling looks very similar to what I was getting with all Jpegs when I used the below code to resize images:
AffineTransform scaler = new AffineTransform();
scaler.scale(scaleX, scaleY);
AffineTransformOp scalerOp = new AffineTransformOp(scaler, AffineTransformOp.TYPE_BILINEAR);
theImage = scalerOp.filter(theImage, null);

See bug: 4712797

Similar Messages

  • How can in improve the quality or bit rate of my iTunes library.

    I need to improve the quality of my original iTunes library.  How do I  increase the bit rate in iTunes for the library I have downloaded or can I improve what I have or will download.

    iTunes purchases are at 256k in AAC format. If you want better than that you'll need to purchase elsewhere. You can rerip your CDs at your preferred bitrate. If you have some older itunes purchases these could be in 128k protected AAC format. Every now and again the iTunes Store offers links to upgrade such tracks to the current format for a smaller fee than purchasing new copies.
    tt2

  • How can I improve the quality of my iPod Touch's camera ?

    I have an iPod Touch 4g. I noticed that the quality of the videos were great outdoors, but indoors, it's horrible. For the pictures, it's horrible outside or inside.
    Do you have any tips how I can improve the quality of my camera mainly for shooting videos ?
    Thanks,
    Franklin
    [email protected]

    All you can do is to increase the lighting.

  • How can i improve the quality of films, captured from mini DV (sony DCR TRV 25E pal).

    The quality is miserable.
    In Windows  and using Pinnacle software there is no problem. In Imovie the quality is very bad. I'm very disappointed about that.
    I choose the highest quality and get poor results.
    I hope someone can help me.

    The quality is miserable.
    In Windows  and using Pinnacle software there is no problem. In Imovie the quality is very bad. I'm very disappointed about that.
    I choose the highest quality and get poor results.
    I hope someone can help me.

  • How can I improve the quality of a photo that appears blurry when used in iMovie but not in iPhoto?

    A 320 x 240, 35 KB Jpeg file looks crisp and in focus in iPhoto.  But as soon as I put it into iMovie and hit full screen, it's blurry and looks terrible.  A photo taken with my Nikon D7100, a 3872 x 2582, 2.5 MB Jpeg photo translates to the big screen just fine, with perfect clarity.  How can I use this former picture but increase its clarity when it's magnified in iMovie?

    Apologies for opening this up again:
    I rasterised and embedded the photos, liked what I saw and marked the question as answered, then I zoomed out and lo! The white jaggedy edges are back! This is despite the fact I rotated them to vertical before rasterising them.
    It appears that the pixels in the rasterised image are relative to the screen, not relative to the object... so when I rotate the photo it goes back to the original hi-res photo and re-rasterises it to fit the new orientation.
    Also doing this has not lowered the filesize at all... It does appear that when you rasterise an image in Illustrator, the new raster is only a veneer, the original (hi-res photo) is still lurking in the background.

  • How can i improve the quality of photos in my newsletters?

    I create my newsletters in Apple Pages and inlcude high res photos.  When I save the file as pdf to email it to printer all the photo files are reduced and printnquakity is very poor.  Do I need acrobat X and if so how would it help?

    I think Pages has this option:
    Menu > File > Export… > PDF > Export Quality > Good/Better/Best > Next… >
    See if the "Best" quality setting meets your needs first.
    Gene

  • How can i improve burning quality of dvd.looks fine in preview on idvd,but final burn quality is poor/

    how can i improve burning quality of dvd.looks fine in preview on idvd,but final burn quality is poor.

    Had same problem with iPhoto pictures and poor burn quality. Went back to original picture file and dragged images into idvd project from there. Set encoding at professional quality and burned at slowest speed. Got very good result with high quality slideshow when played on TV.
    Also tried Old Toad's Aug 30, 2011 advice to get a slideshow into iDVD with transitions, music, etc. from iPhoto.
    Again the quaility of the burned CD was very good. 

  • How can I improve picture quality...now grainy after IOS update!

    How can I improve picture quality...now grainy after IOS update!

    Hello, dreamer5th. 
    Thank you for visiting Apple Support Communities. 
    Here are some troubleshooting steps that I would recommend going through when experiencing this issue.  They are labeled for the iPhone; however, the steps also apply to your iPad.  Also, make sure to test the camera in well lighted conditions as this can affect picture quality. 
    Camera isn't functioning or has undesired image quality
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tappingSettings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Cases can interfere with the camera and the flash. Try gently cleaning the lens with a clean dry cloth or removing the case if you see image or color-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center.
    Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. You can also tap to readjust focus while recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll.
    Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    If the issue persists see the last section labeled Issue not resolved.
    Cheers,
    Jason H. 

  • How can I improve the stability of itunes64bit 8.0.2 on my Vista system?

    Vista Home Premium: iTunes64bit: application crashes after adding album photos and then changing views (list, Album, split) or clicking on different playlists and back to the entire music library.
    The library has 42,000 items (mostly music) so it is quite large. At launch it takes a long time for itunes to load and display. There is no user cues telling me it is running. It simply displays after 60 or more seconds.
    Then I start working in the library, pasting pictures to multiple items, modifying album titles.
    After doing a few management tasks on my music items and navigating back and forth between the music library and playlist (changing views), the application stop being responsive and according to the log, the app just plainly crashes.
    Sometimes I can restart successfully but most of the times, I need to stop the itunes service or log-out before I can restart it successfully.
    I am using itunes64bit 8.0.2
    I am running it on a machine equipped with 4GB of ram and the library lives on a 500GB external hard drive plugged-in through USB 2.0.
    How can I improve the stability of itunes64bit on my system?
    Message was edited by: JF Boisvert

    This VI can be convert to labview 8.0 because subvi are not compatible with old version.
    I post a screenshot.
    Aurélien J.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Du 30 juin au 25 août, embarquez pour 2 mois de vidéo-t'chat ! Prenez place pour un voyage au coe...
    Attachments:
    image.jpg ‏38 KB

  • How can I flip my iphone videos on my PC? My videos from my iphone are horrible when I transfer them to my PC. How can I improve the video on my PC? Can I just convert the files to WMV? When the video plays the speed is off, it's half slow-motion

    My videos from my iphone are horrible when I transfer them to my PC. How can I improve the video on my PC? Can I just convert the files to WMV? When the video plays the speed is off, it's half slow-motion and staggers into normal play. The clips are slightly cut as well, the clips do not roll continuously.  I'm taling about videos that are no more than 2 minutes long.  I'm frustrated and I could really use some advice-my kids basketball games is what I'm recording and I'm trying to send them to my family (they are not very tech savvy). Thanks

    Not it's only function but one for which it was most admirably suited, which is why I really hope someone can find a work around. I am hoping my post to the Apple feedback may prompt a useful response from Apple and I live in hope that my post here will elicit a useful response from another user. I did not miss the the text at the top of the feedback form but you presumably missed my initial text, 'someone here can explain' or my subsequent 'work around from another user'
    Just in case anyone reading this has a large collection of music videos, video podcasts or iTunes U then DO NOT upgrade your iPad to iOS 5. If you are considering purchasing the iPad as a useful mobile device to experience these media organised in your iTunes please don't as you will be wasting your money. (unless someone on this forum knows of a way to undo the mess created by those infallible folks at Apple)
    Yes I know it does other things but the purpose I bought it for doesn't work anymore

  • How Can we improve the report performance..?

    Hi exports,
    I am learning the Business Objects XIR2, Please let me know How Can we improve the report performance..?
    Please give the answer in detailed way.

    First find out why your report is performing slowly. Then fix it.
    That sounds silly, but there's really no single-path process for improving report performance. You might find issues with the report. With the network. With the universe. With the database. With the database design. With the query definition. With report variables. With the ETL. Once you figure out where the problem is, then you start fixing it. Fixing one problem may very well reveal another. I spent two years working on a project where we touched every single aspect of reporting (from data collection through ETL and all the way to report delivery) at some point or another.
    I feel like your question is a bit broad (meaning too generic) to address as you have phrased it. Even some of the suggestions already given...
    Array fetch size - this determines the number of rows fetched at a single pass. You really don't need to modify this unless your network is giving issues. I have seen folks suggest setting this to one (which results in a lot of network requests) or 500 (which results in fewer requests but they're much MUCH larger). Does either improve performance? They might, or they might make it worse. Without understanding how your network traffic is managed it's hard to say.
    Shortcut joins? Sure, they can help, as long as they are appropriate. [Many times they are not.|http://www.dagira.com/2010/05/27/everything-about-shortcut-joins/]
    And I could go on and on. The bottom line is that performance tuning doesn't typically fall into a "cookie cutter" approach. It would be better to have a specific question.

  • How can I Improve the Performance using Global Temo Tables ??

    Hi,
    Can anyone tell me , How can i make use of Global Temporary Tables to improve the Performance.
    I have few sample scripts ,
    Say i have the View based on some Complex query like ,
    CREATE OR REPLACE VIEW Profile_values_view AS
    SELECT d.Profile_option_name, d.Profile_option_id, Profile_option_value,
    u.User_name, Level_id, Level_code
    FROM Profile_definitions d, Profile_values v, Profile_users u
    WHERE d.Profile_option_id = v.Profile_option_id
    AND ((Level_code = 'USER' AND Level_id = U.User_id) OR
    (Level_code = 'DEPARTMENT' AND Level_id = U.Department_id) OR
    (Level_code = 'SITE'))
    AND NOT EXISTS (SELECT 1 FROM PROFILE_VALUES P
    WHERE P.PROFILE_OPTION_ID = V.PROFILE_OPTION_ID
    AND ((Level_code = 'USER' AND
    level_id = u.User_id) OR
    (Level_code = 'DEPARTMENT' AND
    level_id = u.Department_id) OR
    (Level_code = 'SITE'))
    AND INSTR('USERDEPARTMENTSITE', v.Level_code) >
    INSTR('USERDEPARTMENTSITE', p.Level_code));
    Now i have created the Global temp Table as ,
    CREATE GLOBAL TEMPORARY TABLE Profile_values_temp
    Profile_option_name VARCHAR(60) NOT NULL,
    Profile_option_id NUMBER(4) NOT NULL,
    Profile_option_value VARCHAR2(20) NOT NULL,
    Level_code VARCHAR2(10) ,
    Level_id NUMBER(4) ,
    CONSTRAINT Profile_values_temp_pk
    PRIMARY KEY (Profile_option_id)
    ) ON COMMIT PRESERVE ROWS ORGANIZATION INDEX;
    Now I am Inserting the Records into Temp table as
    INSERT INTO Profile_values_temp
    (Profile_option_name, Profile_option_id, Profile_option_value,
    Level_code, Level_id)
    SELECT Profile_option_name, Profile_option_id, Profile_option_value,
    Level_code, Level_id
    FROM Profile_values_view;
    COMMIT;
    Now what my doubt is, when do i need to execute the Insert Statement.
    Say , if the View returns few millions of records , then loading such a data into Global Temporary table takes lot of time.
    Then what is the use of Global Temporary tables and how can i improve the Performance using the same.
    Raj

    Thanks for the responce ,
    There are 2 to 3 complex views in our database, and there always be more than 5000+ users will be workinf on the application and is OLTP application. Those complex views are killing the application performance.
    I what i felt was, if i create the Global Temporary tables for thow views and will be able to load the one third million of records returned by the views in to cache and can improve the application performance.
    I have created the Global Temporary tables for 2 views with the option On Commit Preserve , But after am inserting the records into the Temp table and when i Issue the commit statement, the Temp table is getting Cleared.
    I really got surpised of this behaviour as i know that with the Option On Commit Preserve , the rows should retain in the Temp Table, Instead , it's getting cleared.
    Pelase suggest , what to do ??
    Raj

  • How can I improve the sound in final cut express using my mic?

    How can I improve the sound in final cut express using my mic?

    I think you're in the wrong forum. This is the LiveType forum. There is no sound in LT.

  • How Can We Change The Quality Of Youtube app on ipod touch 6.1

    How Can We Change The Quality Of Youtube app on ipod touch 6.1 like from hd to 240p i just cant get it when ever my video's play they're in HD and i have slow connection

    Previous to iOS 6, Apple provided the YouTube app. For iOS 6, the YouTube app is made/developed by Google. It is now like any other third-party app.

  • How can i improve the speed of my mac?

    my mac has 667 MHz, how can i improve the speed?

    Sorry if that sounded not very helpful, but basically it comes down to that. Not much can improve the performance of machine of that vintage, to stand up to a current model, unless you spend almost as much on upgrades (some of which to consider are listed below).
    Some thought should be given to the budget (money and time and effort) one is willing to spend. The G4 Digital Audio is possibly a good candidate for upgrading for someone who is interested in do-it-yourself computer stuff and bargain hunting for parts. It can even be a fun hobby. But even max-ing out all possible upgrades will still be lacking in performance compared to the current Mac models, I don't actually have any specific benchmarks, just my gut feel. And you may spend a good portion of the cost of a new machine on all those parts for the old machine.
    Is this the 667MHz machine (G4 Digital Audio) in question?
    http://www.lowendmac.com/ppc/digital-audio-power-mac-g4.html
    http://eshop.macsales.com/Descriptions/specs/Framework.cfm?page=g4da.html&title= Power%20Macintosh%20G4%20Digital%20Audio
    or is it some other model?
    Here are some CPU upgrades, for example:
    http://eshop.macsales.com/MyOWC/Upgrades.cfm?sort=pop&model=162&type=Processor&T I=2420&shoupgrds=Show+Upgrades
    you can even get a small rebate for your original CPU
    http://eshop.macsales.com/Service/rebate-program/
    Any of those CPUs should double your processing speed, but you may also need more RAM...or the CPU will just be waiting for data to be read from the virtual memory on the hard drive.
    http://eshop.macsales.com/item/Other%20World%20Computing/133SD512328/
    you could max it out with a whopping 1.5 GB, with 3 of these.
    and you may need a better video card...
    http://eshop.macsales.com/MyOWC/Upgrades.cfm?sort=pop&model=162&type=Video&TI=29 34&shoupgrds=Show+Upgrades
    To add larger and faster hard drives than the original Ultra ATA/66 can handle you would need a PCI ATA133 or PCI SATA card...
    http://eshop.macsales.com/item/ACARD/AEC6280MOB/
    http://eshop.macsales.com/item/Sonnet%20Technology/TSATA/
    And if you need to install OS X from a DVD, and want to burn your own DVD, you may need a new optical drive, if one hasn't been installed already, to replace the CD-RW:
    http://eshop.macsales.com/MyOWC/Upgrades.cfm?Model=162&Type=InternalOpticalDrives&sort=pop
    Also, check out the Power Macintosh G4 forums if you have any questions about that particular model, (if I guessed correctly)
    http://discussions.apple.com/category.jspa?categoryID=113
    Even while I am trying to build a case to convince someone not to waste their money on this project, I am thinking to myself, where can I pick up one of these G4 towers to take on this project myself. Maybe a Quicksilver, no a FW400 MDD dual-boot for sure, I still have some OS 9 software. I did about all I can with my G3 Desktop, and spent more than my MacBook cost.

Maybe you are looking for

  • Creative Cloud gives me a Blank White Page

    I am trying to install the creative cloud in my computer, but the creative cloud app gives me a white blank page and does not let me sing in. So far, I tried to delete both AAAupdate folder and OOBE folder, reinstalling the creative cloud app but it

  • How can I make a while loop wait 10 seconds before iterations​?

    I am using labview to for an osmosis system that measures the amout of water lost from the reading on a scale.   I currently have the program displaying the data from 3 scales every second. I also need to calculate the flux through the membrane over

  • Microsoft product future releases

    Where can i find information about Microsoft production future releases announcements? I googled it, seems that information are not clear? Can anyone shed some light on this?

  • Transfer Order Idocs

    While creating a transfer order in WM, I Docs are genreated. From which settings this IDocs generated. How I can stop this? Please advice.

  • About customer master record

    hi how to delete the customer master record in the company code regards raj