image conversion and watermark issue

See all posts Reply

image conversion and watermark issue new!
by allen, 13 years, 9 months ago
http://www.duslersokagi.com/editor_/pic_143.gif
http://www.duslersokagi.com/editor_/pic_143.jpg

if you try to upload the gif image with a bigger watermark size 700x500 it puts the watermark in front of the picture. however this doesnt happen with the jpg file. I think conversion causes this issue.Reply
Re: image conversion and watermark issue new!
by colin, 13 years, 9 months ago
Can you please try this version (0.30dev), and let me know how it goes?

But I am not sure I see the problem with the two images you provided a link for. I cannot see a watermark on them. Can you send the resulting pictures, with the watermark on?Reply
Re: image conversion and watermark issue new!
by allen, 13 years, 9 months ago
http://image.adultsearch.net/UserFiles/Images/eroticmassage/y7acKilbsOk8tRJTPkk_9561.jpg

here is the picture gif picture converted to jpg and watermarked.

let me check the issue with the dev version.Reply
Re: image conversion and watermark issue new!
by allen, 13 years, 9 months ago
well it worked with the dev version however the result is not what I expected.

As the new code downed sized the watermark, its really hard to read the text on the watermark. Instead of downsizing, it might be better just to crop the watermark in same cases.

result;
http://image.adultsearch.net/UserFiles/Images/eroticmassage/Uk7U950x5CTaEAJU1ICD_9561.jpg

expected result;
http://image.adultsearch.net/UserFiles/Images/eroticmassage/rdGtlIFKFadB3B3BWzzf_9457.jpg

as you can see, the text "adultsearch" is clearly readable on the second image.Reply
Re: image conversion and watermark issue new!
by colin, 13 years, 9 months ago
OK, I now see the watermark, I missed it the first time!

Can you link to the watermark you are using? Are you using the version 0.30dev?

With version 0.30dev, you have two new settings: image_watermark_no_zoom_in and image_watermark_no_zoom_out. Set them both to false in order to not automatically resize the watermark. It should then work with large watermarks, without shrinking it.Reply
Re: image conversion and watermark issue new!
by allen, 13 years, 9 months ago
watermark: http://www.duslersokagi.com/editor_/watermark.png

I think I need to set image_watermark_no_zoom_in and image_watermark_no_zoom_in to true in order to not automatically resize the watermark.

as the code checks if they are set false to process..
// if watermark is too large/tall, resize it first
  if ((!$this->image_watermark_no_zoom_out && ($watermark_dst_width > $this->image_dst_x || $watermark_dst_height > $this->image_dst_y)) 
   || (!$this->image_watermark_no_zoom_in && $watermark_dst_width < $this->image_dst_x && $watermark_dst_height < $this->image_dst_y)) {

I think everything works fine when I set them true. here is the latest picture created with the provided watermark and the gif image;

http://image.adultsearch.net/UserFiles/Images/eroticmassage/2UmGGITMzgHzjjIwl5cl_9561.jpg
$this->handle->image_watermark = /images/watermark.png';
$this->handle->image_watermark_x = 0;
$this->handle->image_watermark_y = 0;
$this->handle->image_watermark_no_zoom_in = true;
$this->handle->image_watermark_no_zoom_out = true;
Reply
Re: image conversion and watermark issue new!
by colin, 13 years, 9 months ago
Yes, you want to set image_watermark_no_zoom_in and image_watermark_no_zoom_in to true. My mistake.

So with this new version 0.30, it is fine, right? Or do you still have a problem?Reply
Re: image conversion and watermark issue new!
by allen, 13 years, 9 months ago
sorry had to change the source of the created example again.
http://image.adultsearch.net/UserFiles/Images/eroticmassage/2dTi0FOPDwcBPbrHdHI1_9561.jpgReply
Re: image conversion and watermark issue new!
by allen, 13 years, 9 months ago
yes it works fine. thank you for your help!Reply