We can put it this way; this is getting rid of archive images in wordpress.
Because sometimes for heavy sites, old images are just unneeded that much. Removing them is not the solution, we often look for.
So I prepared a script to resize to smaller size and reducing quality to take lower disk space.
Free to use, here it is: