• Resolved MDC2957

    (@mdc2957)


    Hi, I’ve been reading about how I can clean up my media library, which, I think boils down to a couple of tasks.

    • Removing unused images, and associated thumbnails
    • Optimizing the remaining images, by converting them to avif

    My thinking is that I should go through my website and see if any of the thumbnail sizes are being used. If not, then I think I can use another plugin to delete all those thumbnail sizes except for perhaps the product images in WooCommerce.

    then I could use your plug in to convert the original images to avif. Then, if necessary, I can create new thumbnail sizes and have those thumbnails re-generated as avif files too, I think?

    Another thing that concerns me, is when the image type is converted, and the image is used in a page or post, won’t that result in a broken image link since it’s linked to a jpg file?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP Media

    (@wp_media)

    Hi @mdc2957

    Thanks for reaching out to us.

    What you said about removing the unused images and thumbnails is definitely way to go.

    Once you clean it up, you can use Imagify to create AVIF. It will be automatically applied to your site, there is nothing you have to do.

    Depending on the method you use to deliver AVIF (picture tag or rewrite rules), Imagify will use different method (altering the HTML output or rewrite images on the server level).

    Just have in mind that original images (jpg/png…) will stay on your server as these are still needed, so it still might affect your disk space.

    ?Let me know if you need any further assistance, I am happy to help.

    Best Regards
    Marko

    Thread Starter MDC2957

    (@mdc2957)

    Just have in mind that original images (jpg/png…) will stay on your server

    Why? No option to delete originals? In addition to speed on the front end, one of the reasons for wanting to convert to the newer format is to save space on the server.

    Plugin Author WP Media

    (@wp_media)

    Hey @mdc2957

    We still can not delete these as they might be used as fallback images when browser that does not support next-gen images is used.

    If you are absolutely sure you don’t need these, you can delete them manually, ideally using SSH and navigating to wp-content/uploads, then run the following command (make sure to create a full backup and that all images are converted to next-gen):

    find . -name "*.jpg" -type f -delete
    find . -name "*.png" -type f -delete

    Best Regards
    Marko

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cleaning up media library (pre-sales)’ is closed to new replies.