Welcome Guest, Not a member yet? Register   Sign In
image_lib watermarking - view part
#13

[eluser]Cristian Gilè[/eluser]
Code:
$this->image_lib->watermark();
return boolean TRUE upon success and FALSE for failure. If it fails you can retrieve the error message using this function:

Code:
$this->image_lib->display_errors();

So, to debug image processing use:

Code:
if( ! $this->image_lib->watermark())
    echo $this->image_lib->display_errors();

To make a test, put the images folder at the same level of the index.php file and place a dot in front of the source_image path.

Code:
$config['source_image']    = './images/banner.png';

In the view show the image with:
Code:
<img src='http://localhost:8888/images/banner.png' alt='Banner' />

Cristian Gilè


Messages In This Thread
image_lib watermarking - view part - by El Forum - 01-01-2011, 07:26 AM
image_lib watermarking - view part - by El Forum - 01-09-2011, 10:57 AM
image_lib watermarking - view part - by El Forum - 01-09-2011, 12:31 PM
image_lib watermarking - view part - by El Forum - 01-09-2011, 12:42 PM
image_lib watermarking - view part - by El Forum - 01-09-2011, 12:42 PM
image_lib watermarking - view part - by El Forum - 01-09-2011, 12:45 PM
image_lib watermarking - view part - by El Forum - 01-09-2011, 12:51 PM
image_lib watermarking - view part - by El Forum - 01-09-2011, 12:55 PM
image_lib watermarking - view part - by El Forum - 01-09-2011, 01:02 PM
image_lib watermarking - view part - by El Forum - 01-09-2011, 01:10 PM
image_lib watermarking - view part - by El Forum - 01-09-2011, 01:15 PM
image_lib watermarking - view part - by El Forum - 01-09-2011, 01:18 PM
image_lib watermarking - view part - by El Forum - 01-09-2011, 08:29 PM
image_lib watermarking - view part - by El Forum - 01-10-2011, 07:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB