Reducing the size of image and then save that image in a folder

can anyone help me about how to reduce the size of the image which i received from client .

use compressionQuality to redue the image size,
for example,
bufferedImage = ImageIO.read(sourceFile);
ImageWriter writer = (ImageWriter) ImageIO.getImageWritersBySuffix("jpeg").next();
writer.setOutput(ImageIO.createImageOutputStream(result_file));
ImageWriteParam param = writer.getDefaultWriteParam();
param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
param.setCompressionQuality(compressQuality);
writer.write(null, new IIOImage(bufferedImage, null, null),param);
hope this will help.....

Similar Messages

  • How to reduce the size of icons and descriptions of pallets?

    Hi!
    1. The "Control bar" is still something missing and to display the location of the same functions are different depending on the selected tool.
    Therefore, the tools will I need to keep an eye on pallets or icons. But description of the pallets is too great for me, takes place and I can not see as many pallets as I need.
    2. The idea to create multiple workspace and its continuous change is not good for me.
    When I work I prefer to have the tools at its one location, then I can rely on My reflexes when choosing a tool, and not constantly look where this time or constantly switch the workspace.
    3. How to reduce the size of icons and descriptions of pallets I, then he could fit more pallets in one column?
    Best Regards!

    Hi Monika,
    Nice to read you again. Thank you for your response.
    Yes, I read. It does not solve the problem about which I write. I guess that solves your opinion? Please hint.

  • How can i reduce the size of Images  in MIDlet

    Hi all,
    How can i reduce the size of Images in Form,bcoz they are covering lots of spaces in form due to that other items are not displaying in specific order.
    Best regrads
    karan

    Better you can use Canvas class and using drawImage() function you can show the image. Before that you have to Get the maximum size of your phone screen using the following:
    x = (width/2) - (image.getWidth()/2);
    y = (height/2) - (image.getHeight()/2);

  • I am unable to re-install itunes. The installer starts ok and then indicates that it can not access a network !!

    I am unable to re-install itunes. The installer starts ok and then indicates that it can not access a network !!  I have tried to uninstall but get the sme error message. I have used 3rd party software to uninstal but still have no joy. My pc is running Vista.
    Can you anyone offer a working solution ?

    Many thanks.
    Let's try the fixit from the following Microsoft document with that one:
    Fix problems with programs that can't be installed or uninstalled

  • HT3529 OS X Mountain Lion Messages - after receiving picture in texting, when you click on the picture of enlarge and then close that window to go back to texting, the picture disappears.

    In OS X Mountain Lion Messages, after receiving a picture in a text, when I click to enlarge the photo for viewing and then close that window and go back to texting, the photo is gone from the text.

    In OS X Mountain Lion Messages, after receiving a picture in a text, when I click to enlarge the photo for viewing and then close that window and go back to texting, the photo is gone from the text.

  • How to reduce the size of Checkbox and radiobutton

    Sir,
    We are using <af:tableSelectMany> and <af:tableSelectOne> in <af:table>. It provides a checkbox /radiobutton by itself. Can we reduce the size of these controls put inside these tables. Its showing a fixed size everywhere. So we cannot reduce the height of each row of the table. If possible, give an example of its implementation. as I am new to JSF.
    with regards,
    Anila.

    Hi Monika,
    Nice to read you again. Thank you for your response.
    Yes, I read. It does not solve the problem about which I write. I guess that solves your opinion? Please hint.

  • How do I reduce the size of images and text?

    The text and images are too large. I cannot follow the so-called instructions on any of your pages.
    == This happened ==
    Every time Firefox opened
    == I downloaded Firefox

    Hit Ctrl+0 (That's a zero, by the way). I'm not sure if it will work, but hey, that's the first thing I would try.

  • Using applet to select a part of an image and then save it

    Hi ,
    I want to use applet to select a part of an image and then save that particular selected part to a server. can anyone provide me a code for this. I have found codes on the sun site which help in uploading an image but I am having trouble in trying to select a part of the image.

    Sorry to get back to you so late, but I was away from my computer this afternoon.
    I'm not sure just what you are after. I do see that you have positioned the tree on the labels. I went to the web site for the label company, and their instructions are not too helplful.
    http://www.pixentral.com/show.php?picture=15sBkl9OZE9xSkHoLMxgwjTFv2VCg1
    I changed the white portion of 1 label to black - - this can be any color. To do this use the magic wand tool, tolerance=10 worked for me, then go to Edit>fill selection.

  • Printing to PDF using Chrome, and then save as a Word doc.

    I want to print a webpage using Chrome to PDF, and then save that PDF to a Word document.
    The problem is occurring when saving the PDF to a Word doc, as the Word document is blank.
    Im using Adobe Acrobat X, Chrome version 32.0.1700.107 m.
    (This question may seem a little strange/pointless, however current workflows within my workplace requires documents to be saved from online as PDFs, sent as PDFs, and staff then either save as PDFs or some convert the files to word documents as necessary)
    I can already do this using Firefox, but saving to PDF using Chrome is significantly faster.

    I'm sure you're aware that here you have an Acrobat user-2-user forum. Note a generic Q&A forum for non-Adobe products that, coincidentally, can create PDF.
    The quality of Export from Acrobat or Adobe's online subscription services very much depends upon the "inner quality" of how the PDF was created.
    GIGO is very much operative.
    Good In Good Out -- Garbage In Garbage Out. Sounds like you have the later.
    Regardless what is making the PDF is not Acrobat. Consequently "process support" would be with the software house that is responsible for the process.
    Be well...

  • How can I reduce the size of IPhoto ?

    I have tested IPhoto with a few hundred pictures.
    I do not find this software very user-friendly, in particular because I can no longer locate the files of these pictures. I kept fortunately a copy of my complete set of my photo collection.
    I removed all pictures from IPhoto, but the application shows a size of 600 Mb.
    How can I reduce the size of IPhoto and recover this storage space?

    patrick
    in particular because I can no longer locate the files of these pictures.
    There are three ways (at least) to get files from the iPhoto Window.
    1. Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. Show File: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    Rolls in the iPhoto Window (View -> Film Rolls) correspond exactly with the Roll Folders in the Originals Folder in the iPhoto Library Folder. You can move photos between Rolls, you can rename rolls, edit them, create them, as long as you do it via the iPhoto Window. Check out the Info Pane (wee 'i', lower left) the name and date fields are editable. Edit a Roll Name using the Info Pane, the Roll Folder in iPhoto Library Folder/Originals will also have the new name.
    You might also like to explore the iPhoto tutorials at http://www.apple.com/ilife/tutorials/iphoto/index.html
    Use the Get Info window to remove unwanted language resources.
    Regards
    TD

  • When i try to up load the new ios 5 my computer stop at the processing file stage and then says it has timed out can anyone help??

    When i try to up load the ios 5 it stops at the processing file stage and then says that it has timed out can anyone help??

    Disable your antivirus and firewall software.

  • Can I buy and download adobe premiere pro at home and then use that DMG to install it in my office?

    Have just purchased a beast of a Mac Pro. Will be using this for editing a feature film. Problem is I need to buy and download Adobe Premiere Pro.  My internet speed in the office is abysmal and it would take forever to download. Thats why I was thinking of downloading the software at home, and then using that DMG file to install on the Mac Pro in office. Is this possible? Will appreciate any help at all.
    Thanks!

    You can download the Enterprise Deployment packages and install them, but you still need to install the CC app in the first place.
    Mylenium

  • Question on Blu ray image size output and reducing the size

    Hi
    I have been using encore for blu ray projects which is been proving very helpful. However recently i have had a issue with output size on files. Normally Encore gives me it's estimate that it will fill the disc nicely and provides a image/folder which is about 17-20GB (using 25GB disc) but now out of the blue it's files sizes it outputs has been 24.8GB which technically is less than 25GB but as anyone knows who burns to media, the disc doesn't actually have 25GB of space (something like 23,8 or something, i can't remember without checking). Anyway of course this is a issue because my output size is contantly now coming up to be about 600MB - 1GB over the disc actual size, i figured Encore normally compresses files to fit considering i have burned similar amounts/size media before and never had a issue.
    Anyway my issue is the slightly larger file size, i figured the easiest way to reduce the blu ray output size was to of course play with the transcode settings, which usually are set to the default settings for Blu ray (the quality preset is called something like "1280x720p 50 High Quality MPEG-2") so of course i thought to lower the bitrate a little just for a test, so i did just that and cut the default bit rate from 25[Mbs] to 20, i didn't want to lower it too much as it was a test to see what i could save for file size. Anyway so i re-transcoded the file and built another image, sadly the image size oddly enough came out as 26.something GB... so it actually grew in size by reducing the file bitrate which put me at a loss. I was wondering what common ways i could use to lower this file size just by a few hundred MB or up to 1GB in this case without having to remove content from the disc (it would be a waste to not only seperate the content but to use a whole disc for a leftover 600mb-1gb project). I of course want to keep quality as high as possible but i understand when trying to reduce size quality has to normally be hit in these situations so i can deal with a slight loss of quality. I have been browsing the forums here and though some topics seem similar they have the issue of file sizes coming out as 40GB+.
    Now im no genius with Encore, normally as said the file size is always between 17-20GB as i figure encore was using a "fit to disc" type feature but because the output size is technically below 25gb but not actually below enough to burn i was wondering 2 things:
    1) is it possible to make encore it's self shrink these files a little more, lowering the target size down by 1GB would do wonders but only option i have seen is to have a 25GB disc or DL disc with no option to customize the output size (forcefully lowering it by 1GB).
    2) because i imagine the above can't be done i was wondering how to go about reducing the size by around 1GB or so, i don't need like 10GB freeing up so it's only a small amount, as said this is a issue i have had with the last few projects i made and the size varies from needing 600MB - 1GB (it doesn't usually exceed needing 1GB free space... besides when i lowered the bit rate which increased size a lot). In the past i always just cut the bitrate of files down a little (never by lots but enough to free space up) but clearly that failed my test so im at a loss of how to reduce file size without a huge loss in quality.
    For the record i have already produced the file as both a image file and a folder and both have the same issue.
    Extra info on the project:
    It contains 4 Menu's, 13 video files which vary in lengh from short ones at about 5mintues to longer ones which the largest is about 20minutes. I commonly burn this number of video files/space with fine quality and no issue so i would rather not take files from the project.
    quality preset details are defaultly as said above set to "1280x720p 50 High quality MPEG-2" settings, i am not on my computer with encore at the moment so i can't post full specifics right now but if you have encore handy you should be able to check.
    Tried reducing bit rate but that increased overall size, the actual plan was to hopefully lower the bit rate to around 21 [mbs] (from 25) and then do that for multiple (or all) files until it fitted but after it increased the size i lost hope there, it said the estimated file size (on the individual video) would drop by around 300-400mb  but that didn't work.
    I have tried both folder and iso which always come out the same size.
    Basically my main question/problem is any suggestion to drop the file size by up to 1GB without taking items out the project or a real high loss in quality (i don't mind small loss though as i can apply whatever solution to all files which should help).
    Any suggestions what i can try? as you probably gather im not a genius when it comes to this stuff but i tried including what i thought is relevent.

    Hi and thank you for the reply;
    one problem i seem to be having when reducing the bitrate is the file size is oddly increasing from 24.8GB to 26.4GB, i can't really figure this one out as well it's having the oppisite effect. I checked the "streams" folder on output and decided to compare automatic transcoding to manual lowered bitrate and im not too sure where the increased file size is going, i found which video file it was causing the issue, all videos files range or average around 1.6GB each but one file was taking 4.5GB, after lowering that files bitrate it cut it down to 2GB which was of course saving me 2GB from the old file but the overall size had increased which was odd. Seems the other files are all the same so it hasn't tried improving them (so it seems) so i can't make ends of why the size is increasing.
    I will try playing with the source file to see if i can do anything that way, if not i will try transcoding in premiere (i have had troubles with this before so i try to avoid it).
    Oh and yes i was using Automatic.
    Anyway i will see if editing the file outside might help first and see how that works. Thanks again for the reply.

  • JPEG/PSD issue--I open a jpeg and edit it (levels, crop) and then "save as" and the save as option shows there are now levels in the image and it wants to save it as a .psd file or a copy with layers.  What am I doing that has these settings appear?

    JPEG/PSD issue--I open a jpeg and edit it (levels, crop) and then "save as" and the save as option shows there are now levels in the image and it wants to save it as a .psd file or a copy with layers.  What am I doing that has these settings appear?

    16bit? Pixels extending beyond the canvas? (from a crop with delete unused pixels turn off).  Have you previously been saving PSD files?
    IME you sometimes have to tell Photoshop that the first save of a session is JPG, and it remembers from there on.  The way to 'tell' Photoshop that JPG, or PDF, or PNG etc are now your preferred format is to Ctrl (Cmd) click on that format in the Save As drop down list.  So long as the file does not have parameters that your chosen format does not support, then this should work for you.
    [EDIT]  Just noticed that you did include 'Crop' in the subject line.  Do you have 'Delete cropped pixels' checked?

  • In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone.

    In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone which are downloaded and not saved,but they remain in cache.
    Even in some apps i have data which i want to remove,but cant find a way to remove them and they are in my cache eating up my memory.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

Maybe you are looking for

  • Down Loading ALV Output to Excel Sheet

    Hi All, I am working on Vendor Line Items Report which have both Header details as well as line item details. So i developed Heirarical ALV to display the output and it is working fine.But my problem is Downloading output to Excel sheet functionality

  • Getting message :Can not implement column link for this detailed query.converting to group query.

    Hi Team, I have build two query report. Q1 qury: SELECT   hp.party_name "CUSTOMER_NAME",          hl.address1,          hl.address2,          hl.address3,          hl.city,          hl.state,          hl.postal_code,          hca.account_number "CUST

  • Wrt160n wireless router

    I recently bought this for use in our home, however, I have an older HP computer that did not have wireless capability. I aalso purchased a Belkin Model F5D8053 wireless N USB Network adapter to work in conjunction with my linksys router. Everything

  • Ipod w/ dim display

    My iPod 3rd gen. has a very dim display. Adjust the dimmer setting has no effect.

  • SUPPORT PACK ERRORS

    Hi all, We are patching the BI after the upgrade. we are trying to apply Basis  and Abap patches 11&12. But it threw errors. can anyone help us in deleting the patches and reapply them again. We deleted the patches from the PAT01 and PAT03 tables. Bu