Hello! There is a task - processing the downloaded image. The photo should be checked so that it can be superimposed text. I did not think that this would be problematic. Because site on Codeignite, I immediately decided to use image_lib: just take a picture, in fact, just black and apply it as a watermark, setting opacity = 50 at the same time. But it was not there ... After suffering with experiments, I realized that is not so simple. When you try to apply a solid watermark, nothing has changed (
$config['source_image'] = $img_path; $config['create_thumb'] = FALSE; $config['wm_type'] = 'overlay'; $config['wm_opacity'] = 50; $config['wm_overlay_path'] = $watermark_file; $this->image_lib->initialize($config); $this->image_lib->watermark(); Tell me, please, how to implement such a chip ...