Hello, the idea is to extend the functionality of this plugin: User Submitted Posts – WordPress plugin | WordPress.org
In order to generate a blurred version (using gaussian blur) of each image submitted to a post trough the plugin. So we can use a shortcode similar to usp_post_attachments() to show the blurred version of the attachments.
We were making some research and found some interesting code for implementing the blur functionality:
We need to add new methods to generate the blurs, maybe inside this function usp_attach_images($post_id, $newPost, $files, $file_count) i.e. generate_blurred_images()
We need to modify the function function usp_post_attachments($size = ‘full’, $beforeUrl = ‘’, $numberImages = false, $postId = false)
i.e. $blurredImages = false
To know if the blurred version of the images should be displayed instead of the original ones.
If false: show the original images
If true: show the blurred images
All the rest of the functionality of the usp plugin will remain the same, no additional work should be made than generate the blurs and override the shortcode function.
More details: firstname.lastname@example.org