[SOLVED] JPGraph Image quality setting
Posted: Sun Apr 24, 2005 12:02 pm
Hi all,
I'm using JPGraph and it's all going great but the images I'm wanting to make are 700x500 pixels and the default size is about 800KB (Bitmap)....!!!!
So I checking in the documentation and I see you can change the format to JPEG and therefore apply a quality (in precentage %).
I've done:
To acheive this and I can visually see the lower quality but when right clicking and choosing "Save Image As" I still get a Bitmap of over 800KB.
Any clues? (Those are the only two lines I've added to alter the qulaity).
Thanks
I'm using JPGraph and it's all going great but the images I'm wanting to make are 700x500 pixels and the default size is about 800KB (Bitmap)....!!!!
So I checking in the documentation and I see you can change the format to JPEG and therefore apply a quality (in precentage %).
I've done:
Code: Select all
$graph->img->SetImgFormat('jpeg');
$graph->img->SetQuality(75);Any clues? (Those are the only two lines I've added to alter the qulaity).
Thanks