How can i resize a image with changing good quality?

i do not know how to resize a image and display to let the user view immediately.
I hope somebody can teach me and show the completed coding

Look at BufferedImage getScaledInstance

Similar Messages

  • Resizing an image  with changes in quality factor

    Hello
    I have a requirement where in a image uploaded by the System has to create 2 new images of different sizes and changing the quality factor.
    The System is a web based interface with jsp as the presentation layer and application server as the middle layer.
    Can anybody suggest something for the same.
    Thanks

    See the Java Advanced Imaging API: http://java.sun.com/products/java-media/jai/

  • How can I resize an image without losing resolution or using the crop tool? I am using Photoshop Elements 13 on a PC.

    How can I resize an image without losing resolution or using the crop tool? I am using Photoshop Elements 13 on a PC.

    Hi Peru Bob,
    I've tried two images, the results were:
    Image 1
    Jpg, original file size 923KB, dimensions 848px x 279px.
    After resizing to 848px x 180px with 72dpi, the file size decreased to 164KB.
    Image 2
    Jpg, original file size 809KB, dimensions 1200px x 1800px.
    After resizing to 668px x 722px with 72dpi, the file size decreased to 307KB.
    So, there seems to be a fair file size loss - is this to be expected?

  • How can I resize my image?

    How can I resize my image to be smaller?

    You asked about changing the file size
    To change the size in Pixels, you use the options at Size in the export dialogue
    Regards
    TD

  • How can I view all images with Safari on my mac?

    how can I view all images with Safari on my mac? When I go to pinterest or any stock photo site I can only see some of the images on my mac.

    Please link to an example of a page you're having problems with. It should be accessible without a login.

  • How can I blur a image with two variables : degree and radius?

    how can I blur a image with two variables : degree and radius?
    a lot of thanks !

    What are the values of these variables supposed to represent?

  • How can to resize an image uploaded in to the smart image

    Hi
        I have an image uploaded into the smartimage from the local file system. How can i resize this file or create a rendition for this image?
    Thanks
    Veena

    Hi
       I got a reference for the same question from Stack Overflow http://stackoverflow.com/questions/14726485/resize-an-image-resource-in-cq5/16728970#16728 970
    I tried the same method
    Resource resourceNew = resource.getResourceResolver().getResource(img.getFileReference());
        Asset asset = resourceNew.adaptTo(Asset.class);
        log.error("asset ****" + asset);
        Layer layer = new Layer(asset.getOriginal().getStream());
        layer.resize(200, 200);
        log.error("layer ****" + layer);
                            Image image = new Image(resource);
        String mimeType = image.getMimeType();
        ByteArrayOutputStream bout = null;
        ByteArrayInputStream bin = null;
        try {
            bout = new ByteArrayOutputStream(2048);
            layer.write(mimeType, 1, bout);
            bin = new ByteArrayInputStream(bout.toByteArray());
            asset.addRendition("resizedImage", bin, mimeType);
    log.error("asset Bin" + asset);
        } finally {
            // close streams ...              
    Where img is my Image object and I was able to create a rendition in the dam.
    But the rendition I am getting is in File format. Is there a way by which i can change it to png format??? any Help will be appreciable..
    Thanks
    Veena

  • I am trying to send a file for a contest and my image is 2.7MB and they only want it 2MB how can I resize my image to fit ?????

    i am trying to send a picture on a pastel site for a contest and my image is 2.7MB........ they want it 2MB...how can I resize my photo to 2MB???? Pat....

    select the photo and export it (file menu ==> export) - there are several options for reducing the size including quality and maximum pixel dimension
    LN

  • How can I resize an image in the header?

    I have uploaded my organization's logo into our document, but it is out of proportion to the rest of the document. I've delted it and uploaded smaller versions of the logo and it is still too big. How can I format the image in the header so that it is more reasonably sized?

    Thanks. The triangle was buried in the image. If you hadn’t told me where to look, I would never have found it!
    Michelle
    Michelle Lancto
    Jewish Endowment Foundation
    a division of the Jewish Federation of Western Massachusetts
    Phone: 413-732-9994                Fax: 413-737-4348
    <mailto:[email protected]> [email protected]
    <http://www.jefwesternmass.org/> www.jefwesternmass.org 
    <http://www.jewishwesternmass.org/> www.jewishwesternmass.org
    JEF_Logos_1101_JFWM for email LOW RES
    Confidentiality Notice
    The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.

  • How can I lodge a complaint with Apple about quality of products?

    I am about to purchase my fifth or sixth charger for my 13' macbook... of this last year and a half!! I am so unbelievably frustrated with the quality of my charger and the fact that these have to be replaced so often for products that, in just a few months, will stop working. How can I get in touch with Apple to file a complaint of this nature? None of the numbers listed on the contact website correspond with the nature of my complaint.

    lehath9, I don't know if this is the issue you're referring to, but I, too, am terribly frustrated by the amount of money I've spent on genuine Apple chargers in the last 18-24 months. 
    I believe the quality of the chargers has declined significantly and have had to replace, several times over, the chargers that came with my 2nd generation iPad, my iPhone 4S and the latest iPod touch.  The cables/wires are breaking and fraying.  
    I thought perhaps I was being too rough on my cables somehow the first couple times that it happened, but I know that's not the case now.  For comparison, the cables that came with my first two iPod classics and my first Nano are fine. I also took an informal survey via Facebook to see if others have noticed the same issue and got about 20 affirmative responses, all of which stated the problems started with chargers sold in the last 18 months. 
    I've purchased four replacements in the last six months and the third of those 4 is now broken, exactly as the previous 2 replacements and exactly like the three before those.  The rubber/plastic casing for the wires pulls away from the non-USB part of the charger (the end that goes into your ipad/iPhone/iPod).  Once it pulls away the wires are no longer supported and they start to hang at an odd angle (no matter how careful you are plugging, unplugging and positioning the charger in the device) causing them to break and of course preventing a charge from reaching the device. 

  • How can I save an image with background transparency as an eps in photoshop?

    I have to submit an eps of my logo and I would like it to have a transparent background. I have googled this many times, followed all of the suggestions and I'm still having trouble.

    Follow the help text in PhS CS2. I have shown importat guidelines by bold text:
    "To save a path as an image clipping path
    Draw a work path that defines the area of the image you want to show.
    Note: Paths are vector-based; therefore, they have hard edges. You cannot preserve the softness
    of a feathered edge, such as in a shadow, when creating an image clipping path.
    In the Paths palette, save the work path as a path.
    Choose Clipping Path from the Paths palette menu, set the following options, and click OK:
    For Path, choose the path you want to save.
    For Flatness, leave the flatness value blank to print the image using the printer’s default value.
    If you experience printing errors, enter a flatness value to determine how the PostScript interpreter
    approximates the curve. The lower the flatness value, the greater the number of straight lines used
    to draw the curve and the more accurate the curve. Values can range from 0.2 to 100.
    In general, a flatness setting from 8 to 10 is recommended for high-resolution printing
    (1200 dpi to 2400 dpi), and a setting from 1 to 3 for low-resolution printing (300 dpi to 600 dpi).
    If you plan to print the file using process colors, convert the file to CMYK mode.
    Save the file by doing one of the following:
    To print the file using a PostScript printer, save in Photoshop EPS format, DCS, or PDF format.
    To print the file using a non-PostScript printer, save in TIFF format and export to Adobe InDesign,
    or to Adobe PageMaker® 5.0 or later.   "
    An image with clipping path contains everything outside the path as transparent.
    Tested actually by PhS CS6.
    Photoshop is not the right tool. Better use Illustrator or InDesign (ID for logos which are not too complex).
    Graphical objects in IL or ID reside on a transparent background without any selection or clipping path
    (PostScript concept).
    Best regards --Gernot Hoffmann

  • How can I Display a Image with tiff format in Jpanel?

    How can I Display a CMYK Image with tiff format in Jpanel ? Not in ScrollingImagePanel? Thank you in advance.

    Why nobody can help me?I am very anxious!help me,please!

  • How can I resize an image in Preview?

    There has been lots of discussion about Preview but non really answers my question. If I resize an image and duplicate it the duplicate over rides the settings of the original - so now I have 2 images the same size which is not what I want. I want the new image smaller but to keep the original the same size as before resizing. Versions seem to do the same thing, and as far as I can make out so does export. I know you can revert one of the duplicate images to get it back to the original size but it is a rather convoluted process.
    I know there are very clever people here so perhaps one of you can give me a work flow to do what I require. Thanks in advance.

    Of course, you can save some steps by duplicating the original file first, and then resize the copy.
    rolando

  • How can i resize my image after image trace?

    Hello all!
    I'm just now getting into using illustrator (currently on trial for illustrator cc) and I've taken a couple of my illustrations and attempted to use the image trace. The only way I can seem to get the image trace to actually produce an accurate trace is if I use a very large file size. So I take my scanned image (600 dpi 2000x 1891) and load it into illustrator, and here's where the problem comes in. Illustrator will not show my entire image on the screen. I zoom out as far as I can go and it's still cutting off the bottom and top of the image. When I try to scale the image it won't let me scale it down to even 90%.
    So my question, is there anyway I can load my full size image into illustrator, image trace it, and then scale it down so I can see the whole image on my screen? It's very hard to paint and work around the image when it's getting cut off.
    The first picture is what the whole picture looks like, but it's such a small file size it's blurry and won't image trace correctly.
    The 2nd image is what happens when I load my full image size in, I'm scrolled as high as the page will go and the top is still cut off.

    Hope this helps Trevor.
    There are other ways of doing this, but try this one.
    Menu - ‘Select all’
    Object - ‘transform’ - ‘scale’
    Dialogue box - click ‘uniform’ add number 1% to 100%, your choice
    Options - tick ‘scale stroke & effects’
    tick ‘preview’ to see results

  • How can I make thunderbird update with changes I've made in my folders/

    On another computer, I will delete adn file emails. When I get to my home computer, I have to restart TB to see these changes. Is there a refresh button?

    No. I usually find just hopping from folder to folder does the trick. Or using F5 to force a fetch of messages from the server can force the display to update. You can use the Get New Mail button as well, but it tends to operate only on the account currently selected. There are add-ons to modify this behaviour.
    I use some Saved Searches which suffer from this; one shows me only Unread messages, but when I've read a message, it remains in view although it's been read. Flipping to a different folder then coming back to the Unread folder usually sorts it out.

Maybe you are looking for

  • Can I update the native sound support on my early 2008 MacPro to support HDMI audio out.

    I recently connected a HDTV as a second monitor.  I don't have HDMI listed under the possible options for audio output in my settings panel.  The MacPro's system information also doesn't list support for HDMI devices under the Audio panel -- so I ass

  • Problem uploading music from iPod to iTunes...please help!!

    Dear All, I originally had all my music on iTunes on a laptop and I quite happily ripped new CDs onto my laptop and updated my iPod from time to time. Then the lap top disappeared and I got a new desk top PC. I thought it would be a simple job to tra

  • Sql tuning advisor 11g

    Dear all, We have installed oracle 11g on solaris. We have configured EM with this DB.. Is there anyway I can check a query using sql tuning advisor in oracle 11g. ? .. I tried, but I couldn't find the exact navigation ?. I need to submit th query an

  • Currency translation key 899 has not yet been defined

    Hello, While executing report S_PL0_86000028 in production client I am getting message 'Currency translation key 899 has not yet been defined' Message No. KH292. However, the same message does not appear in quality/development client.  Any idea as to

  • Problem in finding the total count

    my table as below: ID code group cand A 001 01 1 A 001 02 1 A 001 02 2 A 002 01 1 A 003 01 1 B 001 01 1 B 001 01 2 B 001 02 1 B 002 01 1 C 002 01 1 C 002 01 2 C 003 01 1 Here is what I want ID Code tot_grp num_cand A 001 4 3 A 002 4 1 A 003 4 1 B 001