Regarding using advanced filter with CDN
-
Hello, thank you for providing such good plugin development.
i’m having a task of setting uploads to CDN, upon done the file transfer(without thumbnails), i would have to regenerate thumbnail from the original images, that are actually stored within the external server directory, at CDN service.
Currently, the setup of CDN is fully supporting uploading with also thumbnails on upload generating, via several WP builtin media filters. Now to use your plugin within this specific setup, i’ve read through the advanced filters scripts you’ve posted at GitHub , so my question is, considering the provided snippet :
// add_filter( ‘regenerate_thumbs_original_image’, ‘my_frt_original_image’ );
function my_frt_original_image( $original_path ) {
if ( false !== strpos( $original_path, ‘bad_original’ ) ) {
return false;
}
return $original_path;
}-can i set effectively the remote server location as the $original_path //=’cdn.example.com/’ , considering the already explained fully functioning remote upload transferring ? The $original_path set value would only serve as the source locations of the original unscaled images, while the upload part would be handled by the functions of other, the CDN plugin, do you have any suggestion on attaching event/hook with that other function?
Thank you for any further information
- You must be logged in to reply to this topic.