Compatibility with Image Watermark plugin
-
Hello,
I tried to use your beautiful plugin with Image Watermark plugin (https://www.ads-software.com/plugins/image-watermark/). 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 beforerequire_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
- The topic ‘Compatibility with Image Watermark plugin’ is closed to new replies.