Welcome Guest, Not a member yet? Register   Sign In
"bug" with image manipulation?
#2

[eluser]NateL[/eluser]
[quote author="Asinox" date="1233796028"] the another problem is if the images is too small (lees than 400), the images is resizing to the 400 and loss quality....[/quote]

Not sure about the first problem,

but for the quoted problem, you need to run an if statement to ensure that if it is less than 400, not to run the resize function:

Code:
$image = $this->upload->data();
if($image['width'] > 400)
{
$this->image_lib->resize();
}
else
{
//don't resize
}


Messages In This Thread
"bug" with image manipulation? - by El Forum - 02-04-2009, 01:07 PM
"bug" with image manipulation? - by El Forum - 02-04-2009, 01:50 PM
"bug" with image manipulation? - by El Forum - 02-04-2009, 02:27 PM
"bug" with image manipulation? - by El Forum - 02-04-2009, 09:59 PM
"bug" with image manipulation? - by El Forum - 02-04-2009, 10:11 PM
"bug" with image manipulation? - by El Forum - 02-08-2009, 09:57 AM
"bug" with image manipulation? - by El Forum - 02-08-2009, 02:33 PM
"bug" with image manipulation? - by El Forum - 02-18-2009, 08:13 PM
"bug" with image manipulation? - by El Forum - 02-28-2009, 10:45 AM
"bug" with image manipulation? - by El Forum - 03-05-2009, 10:24 AM
"bug" with image manipulation? - by El Forum - 03-05-2009, 11:01 AM
"bug" with image manipulation? - by El Forum - 03-05-2009, 12:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB