![]() |
Image Lib not creating Thumbs - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Image Lib not creating Thumbs (/showthread.php?tid=32012) |
Image Lib not creating Thumbs - El Forum - 07-10-2010 [eluser]Ki[/eluser] Not sure why, but image library alwasy gives the most problems from all CI libs. I am trying to do the following: Upload file->rename watermark resize->create thumb Code: //UPLOAD AND RESIZE THE FILE It creates the resized version but does not add watermark. An a remark: Does anybody else find the $config['create_thumb'] useless? After all, it requires to specify width and height, so what is the point if same can be acomplished with resize? Is there any way I can resize uploaded image, watermark and create thumb in one shot? Image Lib not creating Thumbs - El Forum - 07-10-2010 [eluser]pickupman[/eluser] The wm_overlay_path variable should be full path to image. create_thumb is useful when you don't need to resize the original, but create a thumbnail of the original, and provides a common suffix appended to the first part of the filename string. Image Lib not creating Thumbs - El Forum - 07-12-2010 [eluser]vitoco[/eluser] if it doesn't work...maybe you shold use a conditional statement like it says in the manual, to catch the error. A good practice is use the processing function conditionally, showing an error upon failure, like this: Code: if ( ! $this->image_lib->resize()) Code: $this->image_lib->display_errors('<p>', '</p>'); Saludos |