Support » Plugin: Video Thumbnails » Compatibility with Image Watermark plugin

  • Resolved antongorodezkiy



    I tried to use your beautiful plugin with Image Watermark plugin ( And I faced the issue that watermarks are not applied to the video thumbnails.

    I investigated some code and made a patch to fix that. Image Watermark plugin uses wp_handle_upload filter to apply watermarks to images in the gallery. I added the following code to the method Video_Thumbnails::save_to_media_library() right before require_once( ABSPATH . 'wp-admin/includes/image.php' );:

    apply_filters('wp_handle_upload', array(
    	'file' => $upload['file'],
    	'url' => $upload['url'],
    	'type' => $wp_filetype['type']
    ), 'upload');

    After that watermarks were applied.

    I would appreciate if you’ll made this change so I could update your the plugin automatically in future and not lose my code.

    If you have github for this plugin, please let me know so I could send pull requests in future.

    Thank you

    WordPress: v3.9
    Video Thumbnails: v2.7.7
    Image Watermark: v1.3.1

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility with Image Watermark plugin’ is closed to new replies.