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
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
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
whoknowme
Member
40 Points
13 Posts
problem about creating thumbnail
Mar 21, 2005 06:55 AM|LINK
geedubb
Member
202 Points
44 Posts
Re: problem about creating thumbnail
Mar 22, 2005 03:52 PM|LINK
whoknowme
Member
40 Points
13 Posts
Re: problem about creating thumbnail
Mar 23, 2005 06:12 AM|LINK
nightcoder
Member
55 Points
11 Posts
Re: problem about creating thumbnail
Apr 09, 2005 04:50 AM|LINK
img.Save(path,PixelFormat.xxxxx);
Change your PixelFormat to 24bit which is RGB, not ARGB
whoknowme
Member
40 Points
13 Posts
Re: problem about creating thumbnail
Apr 13, 2005 07:55 AM|LINK