Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

i have a wordpress media library of 1,500 image currently I only use t WordPress


i have a wordpress media library of 1,500 image currently I only use the thumbnail at 150x150 however as you can see in the array some of the images are really large. I need a way to remove these large images and set the thumbnail as the default and thumbnail size image. So everything will continue to work but reduce the overall storage.

[width] => 3264
[height] => 2448
[file] => image-1081.jpg
[sizes] => Array
[thumbnail] => Array
[file] => image-1081-150x150.jpg
[width] => 150
[height] => 150
[mime-type] => image/jpeg

Answers (5)


Darlene Grace Arcenal answers:

Go to your WordPress dashboard.
Navigate to the Settings > Media tab.
Look for the Image sizes
Set the Thumbnail Size, Medium Size and Large size to 150 by 150

or add this on your functions.php
set_post_thumbnail_size( 150, 150 );

you can also install this plugin , this is used to regenerate the thumbnail sizes of the old uploaded images.


Arnav Joy answers:

So you want to delete all these large images and want to keep only small images?

Arnav Joy comments:

you can try this plugin to remove unsed images
or if you want to optimize images you can do it using this plugin
but please take full backup of the site before doing anything.


Reigel Gallarde answers:

Do you still need help on this?


Samiha answers:

This plugin will helps you to resize bulk of images in your media library, fast and effective:

Here are main features that I think it meets your need:

- Automatically scales large image uploads to a more “sane” size
- Bulk-resize feature to selectively resize existing images
- Allows configuration of max width/height and jpg quality
- Optionally converts BMP files to JPG so image can be scaled
- Once enabled, Imsanity requires no actions on the part of the user
- Uses WordPress built-in image scaling functions

Hope this helps


Monit Jadhav answers:

This plugin can help you

It can delete the original full-size image and also allows you to remove the meta data entry from database

It can even detect unused image which you can get rid of quickly.

If you need an automated solution contact me and we can work it out.