Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18082
    adriO
    Participant

    Hi,

    As I’m developing a stockphotosite it is for me very important to protect my product images from “stealing”.
    That’s why I downloaded your Image Watermark plugin. It works great, especially the option to add a watermark to distinctive post and image types. Thumbs up!

    However I stumble into an issue. When a page is zoomed (product-archive or single product page) the watermark vanishes. This way a bad willing visitor is able to make a screenshot, cut out the image and work with it without payment. That is not what I wish for.

    I have tested it on the mac, using Chrome, Safari, Firefox and Opera. They all suffer from this in its own way. It is not consistent on every browser the same way nor it happens every time (on Safari). Most of the times a page reload brings back the watermark but that is not in any case.

    You can download two screenshots from here (will be only available for a short amount of time)

    Screenshot of Images with watermark -before page zoom.Screeshot of images without watermark – after page zoom

    Is it a bug or am I doing something wrong here.

    I hope to hear soom,

    Best wishes,

    Adri

    #18148
    adriO
    Participant

    Anyone?

    #18183
    Bartosz
    Keymaster

    Hi,

    It’s a very strange issue, honestly I don’t know how it’s possible.
    Image watermark does not put a watermark in a form of overlay, it integrates with an image (becomes a part of an image). So zooming in/out or any HTML/js manipulations should not remove it.

    Question is to what image sizes you apply watermark on – if all image sizes get watermarked it’s just impossible to happen.

    The only thing I can think of at the moment – the srcset attribute introduced in WP 4.4. Maybe the hidden “medium_large” image size used in srcset did not get watermarked and is being displayed when you zoom the browser? (you could check that by disabling srcset – there are some snippets in the web for this)

    #18343
    adriO
    Participant

    Hi Bartosz,

    Thank you for your reply, I take the liberty to mail you two screenshots.
    The first is at browser zoom 100% and the second at browser zoom 110%.

    The automatic apply for the watermark is set to shop_catalog, shop_single ant shop_thumbnail.
    Just thinking about it…. as you can see is my product archive lay-out in a masonry fashion. The strength of it is in the ability to generate a newly re-arranged page when the screen size changes. I’m using the script(s) found here: https://masonry.desandro.com/

    Is it possible that when the window size changes (or the zoom factor) new thumbnails are generated on the fly?
    And if so, what can we do about it?

    HTH and best wishes,

    Adri

    #18362
    Bartosz
    Keymaster

    Hi,
    It’s not possible that thumbnails are generated on the fly (even though can be technically done, it makes no sense).

    Please try to apply the things i mentioned in the reply – disable srcset (using a code snipped added to your theme functions.php file) and test, watermark other images sizes (especially medium_large) and test.

    There must be a logical explanation of this issue.

    #18479
    adriO
    Participant

    Hi Bartosz,

    Sorry for m late response, somehow I missed the notification in my email.

    I tried to disable srcset by using his filter:

    add_filter( 'wp_calculate_image_srcset', '__return_false' );
    

    That works in Chrome, Safari, Opera and Firefox (on the mac at least).
    As I’m not a coder (in any case not an experienced one) I don’t know what it does or what Has caused the problem but it seems to be resolved.

    Thank you for your help.

    adri

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.