sneha sneha - 1 year ago 89
PHP Question

broken image while resizing image in codeigniter

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.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download