[eluser]emperius[/eluser]
While using image library i try to apply watermark. However inspite of all my efforts th image always has ragged edges. Is there way to avoid ragged edges?
How should be the image to make distortion not so visible
Here is the example code
Code:
$png = realpath("public/png_logo.png");
$config['image_library'] = 'GD2';
$config['dynamic_output'] = false;
$config['source_image'] = $f;
$config['wm_overlay_path'] = $png;
$config['wm_opacity'] = '50';
$config['wm_type'] = 'overlay';
$config['wm_vrt_alignment'] = 'bottom';
$config['wm_hor_alignment'] = 'right';
$config['wm_padding'] = '-20';
$this->image_lib->initialize($config);
$this->image_lib->watermark();
In attachment result of watermarking