Linda wrote:
> I found out the .jpg file’s size is relatively large.
> For example, an output result_0.jpg file is about 30KB.
> I open it with Windows ‘Paint’ accessory and save it
> as another result_1.jpg file. The new result_1.jpg file
> is only 10KB. Is there anyway to improve D. Zimmer’s code?
Check that you have the jpeg quality setting set to what you want.
JPEG has a quality value that is usually 0..100%, 100% being
the highest quality/lowest compression.
Typically one can get away with around 50% ~ 75% for most
jpeg images.. depends on the image.
In D.Z's code, looks like quality is set to:
int jpeg_quality = 100;
If you've left it at that default, you might want to do some
experiments lowering it.
Basically with JPEGs you want to try to set the quality as low
as possible, without making the image all ugly with jpeg artifacts.
Check the jpeg library's docs for jpeg_set_quality() for more info
on what the range of values for jpeg_quality can be. There may be
other values that affect compression as well; check all the values
you're using in your code against the library's docs.
_______________________________________________
fltk-opengl mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-opengl