class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
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
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
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.
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
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;
sorry had to change the source of the created example again. http://image.adultsearch.net/UserFiles/Images/eroticmassage/2dTi0FOPDwcBPbrHdHI1_9561.jpgReply
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.
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?
here is the picture gif picture converted to jpg and watermarked.
let me check the issue with the dev version.
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.
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.
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..
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
So with this new version 0.30, it is fine, right? Or do you still have a problem?
http://image.adultsearch.net/UserFiles/Images/eroticmassage/2dTi0FOPDwcBPbrHdHI1_9561.jpg