Hello! When saving the image
Image1.Picture.SaveToFile(Edit1.Text+inttostr(i) +Edit2.Text);
In this way, the question arose: how to control the volume of the image? I need to have an image of fun no more than 65 KB. How can this be implemented?
Hello! When saving the image
Image1.Picture.SaveToFile(Edit1.Text+inttostr(i) +Edit2.Text);
In this way, the question arose: how to control the volume of the image? I need to have an image of fun no more than 65 KB. How can this be implemented?
Change the depth of the palette, sv-in PixelFormat
. The default is pf32Bit
, you can install it in pf24Bit
without loss of quality, pf15Bit
also gives a good result. Well, if this is not enough, then make your own algorithm for reducing the number of colors in the palette. Fewer colors - smaller size.
Source: https://ru.stackoverflow.com/questions/130207/
All Articles