How i Reduce the resolution of an image?or image bytes

Hi all,
I want to reduce the size and resolution or bytes of an image?Is anyone knows the solution of my problem??
Plzz help me out.
Thankss

Supposing yourImage is an Image object or any of the Image class descendants such as BufferedImage, try:
Image scaledImage = yourImage.getScaledInstance(int width, int height, int hints);hints can be Image.SCALE_DEFAULT / SCALE_FAST / SCALE_SMOOTH / SCALE_REPLICATE / SCALE_AREA_AVERAGING depending on the result you want.
See the API reference for details:
[http://java.sun.com/j2se/1.5.0/docs/api/]
Specificly Image.getScaledInstance(int, int, int):
[http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Image.html#getScaledInstance(int,%20int,%20int)]
The BufferedImage class is handy:
[http://java.sun.com/j2se/1.5.0/docs/api/java/awt/image/BufferedImage.html]
Cheers/ jomik

Similar Messages

  • How i reduce the resolution and size or bytes of an image??

    Hi all,
    I want to reduce the size and resolution or bytes of an image?Is anyone knows the solution of my problem??
    Plzz help me out.
    Thankss

    rakhi@odm wrote: > I want to reduce the size and resolution or bytes of an image?Is anyone knows the solution of my problem?? > > Plzz help me out. That word is 'please'. It contains no 'z', let alone two of them.
    Darryl's suggestion is the best first course to reduce the image size. You might also experiment with reducing the color depth (e.g. - 64 million colors-> 256 colors/16 colors) of the images - which works particularly well for GIF (almost mandatory) or PNG - though it is relatively pointless for JPEG.
    BTW - adding dukes indicates 'interest level', but adding '4 dukes' indicates the problem is not very important. Do not expect me to make a second post on this matter unless the dukes are raised to '10' - I don't have the time.

  • How to decrease the size of an image (CS5)?

    I need help with how to reduce the size of an image to fit various smaller sizes.  E.g. 135 x 380mm, 254 x254mm etc mounted/matted. Therefore, the image must be made smaller than these sizes without losing quality and any part of the image. I am unable to crop to achieve these sizes since I need the full image. These photos were taken by using a Canon D450 camera and in both RAW & JPEG.
    Your help is much appreciated.

    You may want to use Image > Image size... and dial in the sizes you want.
    Set your units to mm in the dialog. Turn off resample and you can adjust the final print size.
    What I am showing you is called "scaling", changing the print size without throwing out pixels as resample would do. Your image is  intact. This is from CS6, but it should be about the same in CS5.
    Gene

  • Reducing the Resolution of a Referenced Original Image

    I made the mistake of taking photos in very high resolution, and then importing the originals into my Aperture Library as referenced images.  Now my hard drive is completely full (and I've already disabled and deleted Previews), so I'm trying to reduce the resolution of the original images using Aperture.  After much reading, it seems that I'll need to Export Versions at a reduced size, Import the new versions into Aperture, and Delete the old originals.  Seriously?!?  Before I venture down this horrific path, please let me know if there is an easier solution.  Thanks!

    As Terence said -- the easy thing is built-in and recommended: select the Images whose Originals you want to relocate, and relocate them to external drives.  External drives are _bargains_ right now.  I recommend -- seriously -- buying them in triplicate: one as your "working data" store, and two to use as back-ups (never have all three in the same physical location).
    Storage is so cheap, on fact, that even though for this one set of pictures you recorded a higher resolution than you need, I still wouldn't bother "down-sizing" those Originals -- particularly if you have made _any_ changes via adjustments or metadata.  Change your camera settings, and just live with a little extra data spinning around.
    Here is the page in the User Manual on relocating your Originals (click from the contents listed at the top).
    Note, too, the following, from the page Basic Components of Aperture:
    Using referenced images in your Aperture system provides a number of substantial benefits to your photography workflow. For example, you can incorporate your existing portfolio of images into Aperture without changing the current location of the files. Importing images by reference does not result in a duplication of your image files in the Aperture library, thus saving hard disk space. You can also connect and disconnect hard disks holding your referenced images’ masters as you need them. This allows you to keep masters for less-used images offline or to make specific types of images available for editing or adjustments as needed. Using referenced images in your Aperture system lets you build a flexible image management system customized to your work style. (Emphasis mine.)
    For my personal Libary, I keep 4★, 5★, Portfolio Images, and anything recorded in the last 45 days on my laptop's system drive.  Every other Original is relocated to a 2 TB external drive.
    I find Previews _very_ useful (both in and out of Aperture), and even rely on them as a sort of emergency back-up of last resort.  I recommend you rebuild yours.

  • How can I get the resolution of an image file in JSP?

    how can I get the resolution of an image file like jpg,gif,png in JSP ?

    Hii,
    If by the resolution, u mean size..this is how u can come to know....
    String add = "path/to/some.jpeg";
    javax.swing.ImageIcon chain = new javax.swing.ImageIcon(add);
    int height = chain.getIconHeight();
    int width = chain.getIconWidth();
    Hope that helps.
    regards
                   

  • How can i reduce the saturation of a image to make it almost transparent ?

    how can i reduce the saturation of a image to make it almost transparent ?

    You're talking about two different things:
    "Saturation" means the amount of colour, so you would use a Hue/Saturation adjustment layer to lower the saturation to make the image (or layer) appear more "black and white".
    "Transparency" is set by reducing the value of the "Opacity" in the Layers panel.  If that Opacity adjustment isn't available for the layer you want to make more transparent, first double-click on the layer to change it from a "Background" layer to a regular layer.
    Ken

  • Does any body knows how to detect the resolution of an inserted image in word?

    Does any body knows how to detect the resolution of an inserted image in word?

    I'm not sure I understand your reply but when you insert images into Word that are larger than will fit on the page, they are automatically compressed. If you right click and select Size and Position you can restore it to 100% but you will not see all the image.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How do I save as a pdf without reducing the resolution?

    Hi everyone. I am making business cards and I have to upload a pdf to a website to place my order. My card is ready to go at the specified resolution (300 dpi) and dimensions, but whenever I save it as a pdf, it reduces the resolution immensely. The dimensions of the photoshop file are 1062x615, whereas the pdfs (no compression) are always 254x147. The photoshop file, again, is 300 dpi.
    The dimensions in inches for both files: 3.54 x 2.05
    Obviously 254 pixels across 3.54 inches is not 300 dpi, but I cant figure out why it would do this. Please help.

    OK  InDesign quickstart guide
    Open indesign and create a new document.  Use the drop down and choose Intent: Print and US Business card
    Ctrl d opens the place image dialogue box.  locate the image which can be a PSD file with no text or JPG or PNG whatever.
    Drag the cursor to place and size the image.  Use the Selection tool (v) to move and resize.
    With your background image selected (handles and bounding box visible) use the Windows drop down to open the Text wrap panel and chose 'No text wrap' (or you won't be able to place text over it).
    Now create a text frame and use the Type tool to place your text.  This can be maddeningly frustrating but you'll get there.  Google and Youtube is your friend.
    https://www.youtube.com/results?q=indesign%20placing%20text&um=1&ie=UTF-8&gl=NZ&sa=N&tab=w 1
    When done, Export to PDF
    http://partners.adobe.com/public/asn/en/print_resource_center/Acrobat6PrintPress.pdf
    or this might easier to follow
    https://www.youtube.com/watch?v=79IEx1AKIN4
    The resulting PDF will print way way better than a bitmap image created entirely with Photoshop.

  • Printer finds 'image to complex to print' - can I reduce the resolution?

    This may be a printer issue, heaven knows this HP 2840 has given me enough of those, but I'm trying to print out an image that my printer thinks is too complex to print.  Is there a way for me to drop the print resolution down a bit to see if I can print?  I've reduced the resolution of the image in 'Image size' to 72 dpi and unchecked 'resample' but it's still telling me it is printing a 600 dpi image.  What do I do?
    I'm using PSE 9.0.  Thanks!

    Image>resize>image size brings up a dialog in which you specify pixels/per inch. For a good print, it is desirable to have the resolution = 240-300px/in. Printing at 72 px/in usually results in pixellation
    DPI to which you refer is a printer setting for the print quality.
    Open a picture file in Editor, go to File>print, and in the dialog that comes up, #2 is for Printer settings, and here you may be able to change the settings from  default. I don't have an HP printer.
    "but I'm trying to print out an image that my printer thinks is too complex to print". This is anthropomorphism at its finest. Do you get a warning message when you go to print? What does it say?

  • How is the resolution variable or when would we change the resolution of an image and why?

    How is the resolution variable or when would we change the resolution of an image
    and why?

    It all depends on the output:
    * for viewing on screen 90 -120 ppi
    * for printing on a laser printer 180  -300 ppi
    * for printing on a desktop printer 240 - 300 ppi
    Some people claim 360 ppi is optimum but I don't see any difference compaired to 300 ppi at least not with the naked eye...

  • How do I reduce the bit depth of images to 1-bit within Acrobat 9?

    I am hoping a simple solution exists within Acrobat 9 for reducing the bit-depth of images to 1-bit.
    I know of two methods that both seem more like workarounds. One, edit the image using Photoshop. Two, without Photoshop, export the page as a 1-bit PNG and recreate the page in Acrobat. It seems like one of the preflight fixups should be able to get it done with the right settings. But, it's a labyrinth of unfamiliarity.

    There's no predefined 1-bit conversion in Preflight because it doesn't make sense. Preflight will not dither bitmaps, so most images will become black squares. Extreme color conversion is only intended for text/vector objects.
    If you want to try it anyway, you can create a custom Fixup if you have a  1-bit ICC profile.
    Preflight > Single Fixups
    Options menu > Create new Preflight Fixup
    Name it something like "Convert all to 1-bit BW"
    Search for "Convert colors" in the type of fixup box and add it
    Destination tab > Destination > your ICC profile for 1-bit black
    Uncheck "use destination from Output Intent"
    Keep everything else as default, though I'd suggest using "Embed as output intent for PDF/X" if you're making PDF/X documents
    Conversion Settings tab > All Objects + Any Color (except spot) + Convert to destination + Use rendering intent
    Press the + key to duplicate this step, and change the second copy to "Spot Color(s)"
    Press + again and change the third copy to "Registration color"
    Save the fixup and run it.
    In case you don't have a 1-bit  ICC profile installed, I've attached one.

  • Any way to reduce the resolution when exporting to .pdf

    We are emailing reports.  On some reports with a large number of jpegs we are hitting a size limitation.  It would be helpful to reduce the resolution on the jpegs when exporting to .pdf.  Any way that would be possible?

    Hi,
    Need more info-
    VS version? or the developing application?
    CR Version? Are you directly emailing your reports from CR designer?
    Also once the image is fetched by the report, we can not make any changes in the image, as a work around you need to do required changes in the image before adding it to the reports, and as far as I know it is not possible through code, but we can wait for other responses though.
    Sincerely,
    Amit

  • How to check the resolution of a pdf file using Acrobat 9 pro?

    How to check the resolution of a pdf file using Acrobat 9 pro?

    PDF files don't have one resolution, but may have none or many different resolutions, one per image. You can check the maximum/minimum resoluion with preflight in Acrobat Pro, but not in Adobe Reader.

  • How to reduce the size of a pdf?

    How to reduce the size of a pdf?

    Not do-able with Reader. Acrobat Pro can reduce PDF file size, but... if it's text only (no media or images) it won't reduce any more than it already is.

  • How to reduce the size of the pdf scanned file ?

    Hi, 
    I have canon PIXMA MG2120. I am trying to scan the documents but the size is to big to attach to email. Any Idea how to reduce the size of the PDF file?

    Hello
     For pdf size,you can compress the pdf size if you want to reduce the size of the pdf files.
    Here is the code to do it:
    using System.IO;
    using System.Drawing.Printing;
    using RasterEdge.Imaging;
    using RasterEdge.Imaging.Codec.Compression;
    using RasterEdge.Imaging.PDF;
    DocumentCompression.infile(@"C:\1.pdf");
    DocumentCompression.Outfile(@"C:\2.pdf");
    DocumentEncoder = DocumentEncoder.Group3Encoding
    RasterEdgeImaging Document = new RasterEdgeDocumentg();
    Image. DocumentCompression(@"C:\1.pdf", "C:\2.pdf", DocumentEncoder DocumentEncoder.Group3Encoding);

Maybe you are looking for

  • How to get the New created Hier for existing IO and IS in the Infopackage

    hello Gurus, I have created a new Custom hierarchy on an existing InfoObject 0Costcenter. There are many Hierarchies already existing and being fed from R3. This new hierarchy is just a regrouping of costcenters. Now I have created this new Hier and

  • Problem with slis_t_specialcol_alv Field Symbol Assignment

    I have created a dynamic internal table (runtime determined number of columns) to contain data to be displayed in an ALV. I’ve also made ensured that the last column of the dynamic itab is of type <b>'slis_t_specialcol_alv'</b> and named <b>‘CINFO’</

  • What are appropriate directives for array implementation in hls

    dear friends,   I have tried hardware implementation in VivadoHLS by passing arrays to the function in Microblaze based soc. The problem I am facing is that the RTL is not being implemented properly.Though the implementation was success for register

  • Unable to restore the back up data

    i have upgraded the to OS10, just before that I did took the back up ...even though i am able to see the back up folders in the Blackberry link, after restore device->full restore (even custom restore)..the Option "RESTORE" is not available for selec

  • Access my Time Machine backup with another Mac?

    The HD on my 24" iMac just bit the dust and I am using my old eMac to try to get some work done while I wait for another. Fortunately, I have a Time Machine backup. Is it okay to access files off my Time Machine backup with my eMac, as long as I don'