locked
problem about creating thumbnail RRS feed

  • Question

  • User870757769 posted
    Hi everybody! I had a problem while creating thumbnail from an image . the thumbnail's file size is bigger than the original image , please tell me what wrong with it? thanks a lot
    Monday, March 21, 2005 2:55 AM

All replies

  • User-680512290 posted
    It's hard to know without some detail. What format is the input image and what dimensions, number of colours etc? What format, size, dimensions is the output image? You can find that if you recompress, say a JPEG image, twice, the final image is bigger than the original. Cheers
    Tuesday, March 22, 2005 11:52 AM
  • User870757769 posted
    I test on the .jpg and .gif format . and I call the getthumbnailImage as follow: myBitmap.GetThumbnailImage(intThumbnailWidth,intThumbnailHeight,myCallback,IntPtr.Zero); ofcourse the thumbnail's width and height is smaller than the origial one After the thumbnail was created , I clicked to view it property (in windows explorer). I found that the thumbnail's bit depth is 32 while my original image is only 24 . I think that why the thumail's filesize is bigger than the original . But I don't know how to set the bit depth property
    Wednesday, March 23, 2005 2:12 AM
  • User-597377768 posted

    img.Save(path,PixelFormat.xxxxx);

    Change your PixelFormat to 24bit which is RGB, not ARGB

    Saturday, April 9, 2005 12:50 AM
  • User870757769 posted
    thanks [:)]
    Wednesday, April 13, 2005 3:55 AM