[eluser]RaiNnTeaRs[/eluser]
Hi all, why can I rotate or watermark my images ??
Or not all images can be rotated ?
Here is my code :
Code:
$this->load->library('image_lib');
if (strlen($_POST['WMT'])>0 )
{
$config['source_image'] = './paint/'.$hh;
//$hh is my file name
$config['wm_text'] = $wmt;
//$wmt is watermark text, eg : "COPYRIGHT"
$config['wm_type'] = 'text';
$this->image_lib->initialize($config);
if (!$this->image_lib->watermark())
{echo "WATERMARKING FAIL <BR />";}else{
echo "WATERMARKING SUCCESS <BR />";
;}
}
it always show WATERMARKING FAIL error message T-T