> For photographs you could probably go as low as 25%, but for computer 
> generated images, you might want to use 75%.  Experiment, and you will find a 
> suitable default for your needs.  Additionally, you can always adapt the 
> function to take quality as a parameter.
>

Or consider using libpng to save the images instead. For small images (and a 
30kB uncompressed jpeg *probably* falls into that category) then PNG will quite 
often return a smaller file than the equivalent image stored as a jpeg, with 
the advantage of not introducing any compression artefatcs at all.

In some work we were doing (storing computer generated image sets, not real 
photographs) with a relatively limited palette, the PNG's were significantly 
smaller than jpegs, right up to around 100kB or so, and often a lot more. PNG 
is particulary effective if you have large areas of flat colour in your image, 
which jpeg handles poorly.

For actual photos, which have a lot of 'texture" to them, results can be very 
different, so YMMV!

--
Ian

_______________________________________________
fltk-opengl mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-opengl

Reply via email to