• Im an stuck with a problem here and would like to see if I can get some help. I am using WC-Vendors Pro plugin and need to watermark all of my woocommerce images ( product images only ). Things are working now for this part after a few tweaks and playing with settings. WC-Vendors pro uses a front end upload with the WP media library. I have now run into a major hiccup. I need to be able to removed any watermarking from ADMIN/the back-end. As it sits now, when logged in to admin, all images I upload get watermarked, so I cannot upload site images. Any help would be much appreciated.

    https://wordpress.org/plugins/image-watermark/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author dFactory

    (@dfactory)

    You may trying doing that with a filter, for example, assuming that frontend upload is not using AJAX:

    if ( is_admin() ) {
    	remove_filter( 'wp_generate_attachment_metadata', array( 'Image_Watermark', 'apply_watermark' ), 10 )
    }

    This should disable watermarking on the admin side.

    Regards,
    Bartosz / dfactory team

    Thread Starter issues

    (@issues)

    Thanks for the reply, unfortunately that did not work 🙁

    Plugin Author dFactory

    (@dfactory)

    Ok, try this way:

    if ( is_admin() ) {
    	remove_filter( 'wp_handle_upload', array( 'Image_Watermark', 'handle_upload_files' ) );
    }

    You paste this into functions.php of your theme, right?

    Thread Starter issues

    (@issues)

    Sorry, but that too did not work.. I still get admin uploads with a watermark. 🙁 If you have any ideas, please let me know. I need to get to work now but will be back tonight. Thanks for your help.

    Plugin Author dFactory

    (@dfactory)

    Ok, dirty solution for now – comment this line (332) in image-watermark.php plugin file:

    add_filter( 'wp_generate_attachment_metadata', array( $this, 'apply_watermark' ), 10, 2 );

    Thread Starter issues

    (@issues)

    And that causes a script error,, I guess this plugin is just not right for me.. thanks for trying.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove Watermark for admin uploads’ is closed to new replies.