Welcome Guest, Not a member yet? Register   Sign In
$config['quality'] not working for the image_lib
#1

[eluser]chefnelone[/eluser]
Hello

I'm using $config['quality'] as shown below but it's ignored. NO ERROR MESSAGES
I know it isn't working because I've tested setting it to:
$config['quality'] = '10'
and
$config['quality'] = '100'
but..both images have the same kilobytes. Then it is no working...

I also tried:
$config['quality'] = 10;
and
$config['quality'] = '10%'

but nope...
Code:
$this->upload->do_upload()
$data = $this->upload->data();
unset($config);
$config['image_library'] = 'GD2';
$config['source_image'] = './uploads/gallery/'.$data['file_name'];
$config['quality'] = '10';
$this->load->library('image_lib', $config);
$this->image_lib->resize();
#2

[eluser]sooner[/eluser]
as far as i see from the user guide quality should be in percentage between 1-100%..default is 90%....higher the quality..larger the file size...
#3

[eluser]Atharva[/eluser]
No need to give % as image lib strips the %.

Have you tried uploading larger size images?




Theme © iAndrew 2016 - Forum software by © MyBB