Results 1 to 12 of 12

Thread: how do you compress an image?

Hybrid View

  1. #1
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: how do you compress an image?

    No, that code was just for the JPEG codec. JPEG image types allow you to change the compression percentage. Other types do not allow this. BMP's are uncompressed, GIF's dont have "compression", just different pallettes I believe (2-bit, 4-bit, 8-bit, etc). Thats why I was saying that each image type would be different, because it would matter on the image type that you are trying to work on.

    In regards to your question about giving a preview, you can just run the code, saving it to some temp file, then load that temp file right back into a picturebox to see the preview. Just a quick solution using the code provided...
    Last edited by gigemboy; Jun 3rd, 2006 at 12:00 PM.

  2. #2
    Hyperactive Member OMITT3D's Avatar
    Join Date
    Mar 2006
    Posts
    368

    Re: how do you compress an image?

    I have a bunch of images off a camera with HUGE resolution is there a way to change the resolution on all of them to say 800x600 thus reducing the image size from 2mbs to something around 100 kbs?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width