Reducing the Image size of a PNG

Hi,
I wonder if anyone could possibly help me this.
I have a program that generates PNG images from an ImageBuffer and conerts this into a ByteStream to be sent via a Servlet:-
ImageIO.write( myBufImage2, "PNG", byteStream2 );
Unfortunately, the image size is uncompressed and consquently quite large to send. Could anyone suggest a way I could compress this image before sending it?
Thanks,
Pete

pete11:
i'm in a somewhat similar type of situation. first of all, wht platform are you using? UNIX OR PC?
i'trying to resize images to JPEGs. now the class by itself when executed in a standalone mode using -Djava.awt.headless = true, works. it resizes the image to a lower res JPEG. however, when i call the class thru a JSP page to resize the image i get the following:
sun.java2d.SunGraphicsEnvironment.createFontProperties()Lsun/awt/FontProperties;
bear in mind, i am running Xvfb on the server so it should work in headless mode.
any clues??

Similar Messages

  • Do I need to reduce the images size in pixels before upload them to M.Me?

    Do I need to reduce the images size in pixels (actual size jpeg 5616 × 3744 pixels/766kb) before upload them from iPhoto to a Mobile Me Gallery?
    Otherwise they will be heavy or the upload process take care of that?
    It would be nice that iPhoto took care and optimize the images to display online without any more work, because I´ve 1200 images to upload and they´re jpegs 5616 × 3744 pixels. It´s just to viewing purposes. Not o download or print.
    Thanks.

    In fact no matter if I use a High or Medium compression size JPEG, the size after upload is the same.
    Starts with 1,5 MB/5600px (high) or 780kb/5600px (medium) JPEG and ends after upload in 115kb for a 1024px image.
    This means that iPhoto auto compress in order to publish to Mobile Me, even if we start with a bigger file.
    I hope this info is useful to others.
    Thanks.

  • Email-to facilitate emailing a photo by gmail or AOL, I reduce the file size.  Is it better to reduce the image size or increase the jpg compression?

    To facilitate emailing a photo by gmail or AOL and avoid overwhelming the recipient's screen, I reduce the file size.  Is it better to reduce the image size or increase the jpg compression?  I have been making a duplicate image of 35 MB and reducing the image size to 8"x12" at 72 resolution giving a file size of 1.4 MB.  Then I SAVE AS a jpg of medium compression giving a  file size of about 111 KB.  Overkill?

    Go to File>save for web.
    I usually make the long side 800 px
    At the bottom of the dialog, check "constrain proportions."
    At the top, select JPEG in the dropdown for the file format.
    All the work is done for you! 72px/in is ok for web work. 240-300px/in is the recommended range for printing.

  • How can I reduce the image size (how to use "Steps X, Y" and "ROI")?

    I upgraded Labview (and NI-DAQ) from 5.X to 7 Express (and NI-DAQ 7). That seems to make PCI_IMAQ1411 to malfunction. I could move ROI and reduce the size by changing "ROI and Step X and Y" of NI_Snap.vi. All of a sudden, IMAQ started not to work properly even under the same code and device. Only difference is LabView and NI-DAQ version. Could you help me working IMAQ1411 under the upgraded LabVIEW and NI-DAQ?
    Thanks, Grace

    Dear Dcoutri
    Thank you for your reply.
    (1) The version I have on my computer is IMAQ 2.5.7 which has been installed together with NI-DAQ 7 when I install the LabView Express 7. It is strange that I cannot find the version on "DownLoad site".
    (2) You said that Imaq 3.0 does not support Step X, Y function. So you recommend that Imaq 2.5.5 is rather proper one. Then how about Imaq 2.6.1 (2.6). Does that support Step X, Y function?
    (3) Using Imaq 3.0, how can one scale down an image?
    Thanks, Hyun

  • How to reduce the image size of a jpeg image?

    How do I reduce the size of an iphoto jpeg image?

    What do you mean by size? The dimensions? The File size?
    There are options depending on exactly what you want to do and why you want to do it.
    In general: these are options in the File -> Export dialogue. The Jpeg Quality setting refers to file size, the Size option refers to dimensions.
    Regards
    TD

  • I need help reducing the image size...PSE8

    I have some photos that I won't be enlarging/editing (just want to keep them in catalog) that are large MB size files. I want to reduce the size of these photos and still see them large on the screen. Can anyone tell me what resolution I should enter to do that?
    For example what ratio would I enter for this photo:
    I have a photo that is 3.55 MB (JPG), PSE8 says my file is 55.556 inches x 41.667 inches at 72 dpi.
    When I open the resize Image option it says my pixel dimensions are 34.3M showing the width at 4000 and the Height at 3000
    This photo is one that I don't plan to edit - I just want to keep in my catalog at a smaller size for screen viewing. When I have tried to reduce the size it shows up small on the screen (at 100%).Or chosing smaller inches still keeps the file in large MB size.
    Why is it you can send an email in KB sizes that show up full screen but I can't get this reduced and it show up even be that big when it still says MB size?
    I hope this makes sense, I am new to PSE8 and not sure if I explained this well enough.
    I appreciate any help!,
    Thank you,
    Angela

    At the bottom of the screen, turn on Resample Image. Then enter a size in pixels for the longer of the two sides (figure this based on your monitor's pixel dimensions).
    I wouldn't do this to an original unless you have a copy elsewhere.

  • I cannot reduce the images size on my ipad2 has anyone had this problem before ?

    I have been unable to reduce all images on my Ipad2 screen. Any suggestions ? I was in an app called Bamboo Paper and the size blew up.Nothing I do works.

    Double tap your screen with 3 fingers and the image should go back to normal size.  You may also go into your settings and see if zoom is turned on.  If it is turn zoom off.

  • How to reduce the image size of a quicktime in FCP

    Hi there,
    I am creating a DVD (DVD Studio Pro 3) containing mv2 of quicktime files. The screen size of these files vary according to the quicktime. I would like to give them all the same screen size so it looks even.
    At the moment some mv2 are full size screen while others are half the size.
    When I play the DVD on a TV, some have really bad resolution. Hence my question.
    I have exported the quicktime files with a two pass VBR encoding as well as a one pass VBR. But it makes no difference.
    Thanks,
    V.
    Imac G5   Mac OS X (10.3.9)  

    What were the original file sizes?
    N

  • How to reduce the image size of a mv2

    Hi there,
    I am creating a DVD (DVD Studio Pro 3) containing mv2 of quicktime files. The screen size of these files vary according to the quicktime. I would like to give them all the same screen size so it looks even.
    At the moment some mv2 are full size screen while others are half the size.
    When I play the DVD on a TV, some have really bad resolution. Hence my question.
    I have exported the quicktime files with a two pass VBR encoding as well as a one pass VBR. But it makes no difference.
    Thanks,
    V.
    PS: I have final cut pro in case I should use that program to make any changes.

    It's the source files that determine the eventual size of the encoded assets.
    They need to be resized to 720x480 in your NLE before they are encoded. If they start smaller than this, you'll get a quality hit.

  • How do I change the background colour to the viewing screen when I reduce the image below full size

    Currently the screen has a black border when I scroll to reduce the image size. Originally it may have beeen white. I may have altered the setting but I dont know what. Any suggestions please.
    The programme is Elements 8

    Right click on the screen, then select custom color.

  • Need to reduce the page size, not the file size (shrink the page to allow for binding)

    I need to reduce the image size (text is too large to allow for binding).

    What is the output device - it is best to set scaling there, or scale while printing from Acrobat. The only means to accomplish
    I need to reduce the image size (text is too large to allow for binding).
    Print to Adobe PDF printer.
    Define a page size in the Properties of the PDF Printer
    Print from Acrobat to PDF Printer with scaling in effect.

  • Reducing the file size Pages

    I am trying to reduce the file size of a document in Pages. It has many jpegs. When I use File>Reduce File Size or Format>Image>Reduce File Size, I get stuck at "Determining potential file size reduction ..." and it will go no further. Selecting "Cancel" or "Reduce" has no effect. I need to to a forced quit to get anywhere. Thanks

    To use the Reduce file size isn't the best way to do it but the easiest if it works. You probably have an image clogging the process.
    Instead reduce the image sizes in a graphical application suited for it. Do the cropping of the images first if you haven't done that already. Then down size the resolution to about 300 dpi if you want to print the document images. If it is only going to show on the screen you can down size the images to about 75 dpi.

  • Reducing background image size

    Hi all,
    I'm working with Captivate 4 and have made a screencast of a particular process for training purposes.
    The project has 80 slides - but each background image is 1800+kb. Overall the project comes out at 3 MB even with the highest possible compression in the publishing settings.
    The project is to be hosted on the Web so I really don't need this kind of detail in the background images and I can't find anyway to reduce the image size apart from exporting each of the 80 backgrounds into Photoshop, reducing them in size and importing them back into Catptivate. For 80 slides this would take too long.
    So, two questions:
    How can the background image size be reduced within Captivate?
    How can I change the settings so when capturing screenshots the image sizes are smaller in the first place?
    Thanks in advance for any tips,
    Neil
    Is there anyway the

    Thanks Lilybiri
    I've bene recording at full screen (1024x768 or close enough) in order to get the largest recording space possible - and then resizing the project to 800x600 for the web production. The problem is that there is no optimise for web setting (or none that I can see). I just did another test and each background image is 3000kb - way over the top for something that will be viewed on the web.
    Does this help you get a fuller picture? Any advice?
    Thanks for sparing your time to answer here btw - much appreciated
    Neil

  • In putting together a book I can move photos onto a page and enlarge the picture but is there a way to reduce the picture size? some cases I want a smaller picture and if I change the size of the picture box I only get a portion of the image. I wnt to red

    picture size...in putting together a book I can move photos onto a page and enlarge the picture but is there a way to reduce the picture size? some cases I want a smaller picture and if I change the size of the picture box I only get a portion of the image. I want to reduce the image to fit the size of the box.

    If you right click on the image on the page in the context menu select photo box alignment and then select one of scale to fit {centered, Left-aligned, Right-aligned}
    That should do what you are loking for.

  • Scanning: The image size is too big. Please reduce the image height, width, resolution, scaling or output type.

    Good Day.
    I have recently discovered an issue with scanning.  I have tried scanning straight from the printer, through image capture, and through preview.  All yeilding the same results since they are essentailly kicking off the same scanning applet.  I can scan a jpeg formatted file as long as I applet is in the "Hide Details" mode.  If I click on the "Show Details" button, which I need to do to scan to PDF, I immediately receive an error stating: The image size is too big. Please reduce the image height, width, resolution, scaling or output type.
    I'm currently using an HP C5180 printer.   The most recently installed software was Adobe Digital Editions (I installed this to read an on-line e-book).  Not sure if there is any correlation.    Thanks for any help.
    Mac details are:
      Model Name:          MacBook Pro
      Model Identifier:          MacBookPro8,1
      Processor Name:          Intel Core i5
      Processor Speed:          2.3 GHz
      Number of Processors:          1
      Total Number of Cores:          2
      L2 Cache (per Core):          256 KB
      L3 Cache:          3 MB
      Memory:          8 GB
      Boot ROM Version:          MBP81.0047.B27
    Printer access log:
      Source:          /var/log/cups/access_log
      Size:          174 bytes
      Last Modified:          11/21/12 10:09 PM
      Recent Contents:          localhost - - [21/Nov/2012:22:09:16 -0500] "POST / HTTP/1.1" 200 61628 CUPS-Get-PPDs -
    localhost - - [21/Nov/2012:22:09:20 -0500] "POST / HTTP/1.1" 200 61628 CUPS-Get-PPDs -
    Image Capture Support:
      Image Capture Support:
      Path:          /Library/Image Capture/Support/Hewlett-Packard/Devices/HPAiOScan.bundle/Contents/Info.plist
      Version:          2.3.0
      Path:          /Library/Image Capture/Support/Hewlett-Packard/Devices/HPAiOScan.bundle/Contents/Resources/Dev iceInfo.plist
      Version:          2.3.0
    Photosmart C5100 series:
      Status:          Idle
      Print Server:          Local
      Driver Version:          4.0.0
      Default:          Yes
      Shared:          No
      URI:          dnssd://Photosmart%20C5100%20series%20%5B960B9E%5D._pdl-datastream._tcp.lo cal./?bidi
      PPD:          HP Photosmart C5100 series
      PPD File Version:          4.0.0
      PostScript Version:          (3011.104) 0
      CUPS Version:          1.6svn (cups-327)
      Scanning support:          Yes
      Scanning app (bundleID path):          -
      Scanning app version:          -
      Scanner UUID:          CC8DD435-CC8D-D435-CC8D-D435CC8DD435
      Printer Commands:          ReportLevels
      CUPS filters:
    Inkjet:
      Path:          /Library/Printers/hp/cups/Inkjet.driver/Contents/MacOS/Inkjet
      Permissions:          rwxr-xr-x
      Version:          4.0.0
    commandtohp:
      Path:          /Library/Printers/hp/cups/filters/commandtohp.filter/Contents/MacOS/comman dtohp
      Permissions:          rwxr-xr-x
      Version:          2.1.1
      Fax support:          No
      Printer utility:          /Library/Printers/hp/Utilities/HP Utility.app
      Printer utility version:          5.9.1
      PDEs:
    PDE.plugin:
      Sandbox compliant:          Yes

    Hello Sig
    The scanner works with a Windows computer, which proves the device is functional at a cursory level. The drivers are now distributed by Apple and this is an Apple computer. There is no scanning software provided by HP. HP's answer is that Mountain Lion takes care of all of this.  I anticipate that some setting or driver was somehow tweaked since the scanner had been working with Mountain Lion until a few days ago.  The device in question is an Apple product. So, I'm pretty confident that I'm in the right place.
    Regards

Maybe you are looking for