Welcome Guest, Not a member yet? Register   Sign In
Image library (GD) resize problem
#1

[eluser]RaBu[/eluser]
Hi,

I'm trying to re-size a newly uploaded image-file in a controller function, I get no errors and the image get re-sized just fine, but the quality is crap. The image get very dusty and with a low amount of colors (in the blue-, gray-, white-ish scale).


Code:
$imageconfig['image_library'] = 'GD';
$imageconfig['source_image'] = "uploads/".$uploadFiles['0'];
$imageconfig['quality'] = "100%";
$imageconfig['maintain_ratio'] = TRUE;
$imageconfig['width'] = 250;
$imageconfig['height'] = 150;

$this->load->library('image_lib', $imageconfig);

$this->image_lib->resize();

Anyone else have experienced this problem?

Kind regards,
Rasmus


Messages In This Thread
Image library (GD) resize problem - by El Forum - 02-22-2009, 02:23 PM
Image library (GD) resize problem - by El Forum - 02-22-2009, 02:32 PM
Image library (GD) resize problem - by El Forum - 02-22-2009, 02:41 PM
Image library (GD) resize problem - by El Forum - 02-22-2009, 02:49 PM
Image library (GD) resize problem - by El Forum - 02-22-2009, 05:19 PM
Image library (GD) resize problem - by El Forum - 02-23-2009, 02:56 AM
Image library (GD) resize problem - by El Forum - 02-24-2009, 05:15 AM
Image library (GD) resize problem - by El Forum - 07-29-2009, 05:11 PM
Image library (GD) resize problem - by El Forum - 07-29-2009, 07:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB