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.
Asked
Active
Viewed 159 times
2 Answers
0
if ( ! $this->image_lib->resize())
{
echo $this->image_lib->display_errors();
}

Nithin Krishnan P
- 748
- 1
- 6
- 14
-
$this->image_lib->initialize($config); if(!$this->image_lib->resize()) { echo $this->image_lib->display_errors(); } return $this->image_lib->resize(); this is my code ,$this->image_lib->resize() never returns false as well as not displaying proper image,it generates broken image – sneha Jul 02 '15 at 11:07
0
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

sneha
- 41
- 5