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

  • SOLVED

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.

Array
(
[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)

2019-08-20

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 https://wordpress.org/plugins/regenerate-thumbnails/ , this is used to regenerate the thumbnail sizes of the old uploaded images.

2019-08-21

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
https://wordpress.org/plugins/media-cleaner/
or if you want to optimize images you can do it using this plugin
https://wordpress.org/plugins/ewww-image-optimizer/
but please take full backup of the site before doing anything.

2019-08-22

Reigel Gallarde answers:

Do you still need help on this?

2019-08-22

Samiha answers:

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

https://wordpress.org/plugins/imsanity/

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

2019-08-21

Monit Jadhav answers:

This plugin can help you

https://wordpress.org/plugins/image-cleanup/

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.

Regards

Monit