+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Watermark in the middle

Hybrid View

  1. #1

    Watermark in the middle

    Hello. Does anyone have a clue how to get the watermark in the middle of the images instead of the corner? Thanks

  2. #2
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    Hello,

    You can to make it so:

    1. Open file includes/classes/rlResize.class.php
    2. Find the method saveImage()
    3. Replace this code (~235):
    PHP Code:
    Only registered members can view the code
    to
    PHP Code:
    Only registered members can view the code
    Example:
    watermark.JPG

  3. #3
    my png is still in the right corner. have refreshed several times the cache before adding a new ad. any ideea why is not working?

  4. #4
    Quote Originally Posted by Vladimir View Post
    Hello,

    You can to make it so:

    1. Open file includes/classes/rlResize.class.php
    2. Find the method saveImage()
    3. Replace this code (~235):
    PHP Code:
    Only registered members can view the code
    to
    PHP Code:
    Only registered members can view the code
    Example:
    Attachment 100

    Hello. How should this be in the 4.2 version? Thanks

  5. #5
    Senior Member
    Join Date
    Mar 2016
    Posts
    181
    how about move to left side corner?

  6. #6
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    I've fixed it in your domain, but it applies only to new uploaded photos. (please check listing id 439, last photo)

  7. #7
    i have noticed. works fine now. thanks

    beside the new modification
    $x = 2;
    $y = 2;
    have you made any other modifications?

    forgot to ask something....why the png shows smaller than the actual size? in large file or full size image
    Last edited by Petrache Nicolae; July 12, 2012 at 09:00 AM.

  8. #8
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    1. No, I've fixed only this code.
    2. This is happens because the logo is superimposed on the original photo and then a picture is cropped.

  9. #9
    ok. thanks for the help

  10. #10
    Quote Originally Posted by Vladimir View Post
    1. No, I've fixed only this code.
    2. This is happens because the logo is superimposed on the original photo and then a picture is cropped.
    hello again. do you have any ideea how to have this working in 4.1 script together with listing label?

    if i leave rlResize.class.php untouched, listing label will work but image will be shown on main image very small in and bottom right corner.
    if i apply the fix for centered watermark, the watermark will be ok but the listing label will not show at all on main image. will show just for thumbnails. thanks
    1.jpg2.jpg

+ Reply to Thread