Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author erolsk8

    (@erolsk8)

    Hey @jonahcoyote,

    I’m sorry to hear those .webp files got imported as separate files, I should probably ignore those by default. Because those now get generated automatically (with newer WordPress versions).

    And about deleting those, I know it can’t be done with this plugin, maybe there is some other plugin for that or to filter by file type in Media Library.

    Or even with some custom piece of code that finds those database records. I know that all files imported with this plugin have _msc medatada in the database, so finding them can be done with this:

    $media_sync_posts = get_posts(array('meta_key' => '_msc', 'post_type' => 'attachment'));

    But I’m not sure how much experience you have with these things, so I don’t want to get into too many details. And I hope you have already solved this issue ??

    Erol

    • This reply was modified 2 years, 4 months ago by erolsk8.
    Thread Starter jonahcoyote

    (@jonahcoyote)

    Hey @erolsk8,

    Thanks for the reply! I actually ended up using a combination of https://www.ads-software.com/plugins/media-cleaner/ and this command in SSH find . -name "*.webp" -type f -delete to remove the files and it worked pretty good. I think yes, in the future it’s a good idea for your plugin to ignore these files.

    Thanks again,
    Jonah

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Delete Extraneous Thumbnails’ is closed to new replies.