• Hello,

    Im using a plugin (for watermark images) that creates a backup image when uploading a photo. Ive stablished when i upload a image creates 2 variation size images (500×500 and 1280×800), well, this plugin creates a backup of all images created (imagine, 3 images stablished by me and other 3 of backup, and i dont needs this…)

    look
    https://ibb.co/9sjW1bG

    Its possible to identify images from library creating a code when detects a name of file or part of name of this file (_br_backup in my case, you can see in the image) delete it?

    In support dont have to add this option… Can you help me? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • WordPress already creates three additional formats for each of the images you upload (Thumbnail, Medium, and Large). If you don’t need one or any of those you can go to Settings > Media within your WordPress dashboard and enter 0 for the ones you don’t want. That should prevent WordPress from generating those additional images.

    Regarding additional images created by your plugin, you can look for an image cleanup plugin. They vary with their options, but usually there is some customization within their settings. Often they will look for unused images to be deleted.

    The other way would be to develop a custom plugin. There is no inbuilt way to do this. A custom plugin would need to scan your database and consider the various formats it could be stored in. I haven’t done this for images before, but could be a starting part for researching out to do it, if this is the option you choose. Or maybe someone else on here is better qualified to provide more details on a custom plugin to do this. But I’d try an existing plugin first.

    Thread Starter Kuassar

    (@kuassar)

    Hello Leslie! Its true, ill search a plugin for this ?? Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Delete image by name from media library’ is closed to new replies.