broken image while resizing image in codeigniter

164 Views Asked by At

I am using image lib library of codeigniter to resize image. But resize function of image library produces broken image sometimes and also not getting any error. how to detect broken image.

2

There are 2 best solutions below

0
sneha On BEST ANSWER

finally got the answer.In Image_lib.php file go to line no 1259 and replace imagejpeg($resource,'', $this->quality); with imagejpeg($resource,NULL, $this->quality); have a good day

1
Nithin Krishnan P On
if ( ! $this->image_lib->resize())
{
    echo $this->image_lib->display_errors();
}