Welcome Guest, Not a member yet? Register   Sign In
Problems with applying watermark (ragged edges)
#1

[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
#2

[eluser]NateL[/eluser]
are you saving it as PNG-8 or PNG-24?

edit:
errr n/m...I was thinking it looked like something else - and then looked at the image. sorry :zip:
#3

[eluser]emperius[/eluser]
[quote author="NateL" date="1222108503"]are you saving it as PNG-8 or PNG-24?

edit:
errr n/m...I was thinking it looked like something else - and then looked at the image. sorry :zip:[/quote]

24
#4

[eluser]emperius[/eluser]
i tried 8 bit. It became to be better butanyway nor perfect.
#5

[eluser]Colin Williams[/eluser]
It SHOULD be 24-bit. It might have something to do with the limitations of the graphics library on your server. I dunno.
#6

[eluser]emperius[/eluser]
I tirend on local computer and on hosting. Result is the same... Sad

configuration is standart...
#7

[eluser]Colin Williams[/eluser]
Have you inspected the watermark png by itself? I'm wondering if it is bad somehow.
#8

[eluser]emperius[/eluser]
[quote author="Colin Williams" date="1222111148"]Have you inspected the watermark png by itself? I'm wondering if it is bad somehow.[/quote]
the image is good

Source logo in Corel draw
#9

[eluser]Colin Williams[/eluser]
I suppose nothing resizes the PNG, but if it does, there might be an issue with that process.

I know. I'm just fishing here. I wish I had a good solution for you.
#10

[eluser]emperius[/eluser]
no
there is no operaions with png image




Theme © iAndrew 2016 - Forum software by © MyBB