I investigated some code and made a patch to fix that. Image Watermark plugin uses
wp_handle_uploadfilter 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.
Video Thumbnails: v2.7.7
Image Watermark: v1.3.1
- The topic ‘Compatibility with Image Watermark plugin’ is closed to new replies.