Thanks for thinking with us. I can think of a solution on this:
From the WP Menu -> Tools -> Regenerate thumbnails is an existing function that is fed by the image dimensions that are defined in Newspaper. Would it be a great idea to not only regenerate, but also check if the image, that will be regenerated, is actually linked to a page or post? If not, we then can opt to delete the applicable image thumbnails to be deleted instead of being regenerated, thus leaving only the original image existing and available in the Media folder.
Anyone interested in developing this great function with us? I am not a programmer, but I think there might be an opportunity using WP-CLI to do this! @ https://wp-cli.org/
What I now do is before removing a posting, I check the image name (example.jpg) that belongs to it. Then I perform a ‘find’ in Unix and detect all images that have the ‘example-‘ (watch the hyphen) notation thus leaving out the original image in my media library and delete them by hand.
Someone in for a short script? Unfortunately I am not a programmer ;-(
Hello @docdigit !
For customization and other services, you can contact our custom work team here: https://tagdiv.com/premium-customization-services/.
Thank you for understanding!