Learn about Centmin Mod LEMP Stack today
Become a Member

Batch Optimizing a 20GB WordPress Uploads Folder

Discussion in 'Show Cases & Centmin Testimonials' started by leoadhemartan, Apr 27, 2020.

  1. leoadhemartan

    leoadhemartan New Member

    7
    3
    3
    Jun 28, 2019
    Ratings:
    +3
    Local Time:
    5:04 AM
    I inherited a WooCommerce site 4 years ago and ported it to a centminmod vps 10 months ago.
    When I tranferred it, the entire site was around 5 GB as it depended on HD images to showcase the products (niche collector items).

    Gave the client instructions on the ideal format to use for upload images... Cut to a week ago when I did a quick check and I find the uploads folder is already 20GB. Apparently they've been uploading uncompressed images for the better part of 6 months.

    Client never complained about any slow loading of images during that time. 3MB photos loaded with decent times and if you're on a modern internet connection, it loaded in a second or 2. Which I think is thanks to the centminmod configuration.

    Since the VPS had an 80GB size, it was not an urgent problem but I really wanted to compress the images.

    I learned about the optimise-images extension tool after searching this site and started off with using it on the smallest uploads folder (2016) at 2.3 GB.

    I was happy that the optimization of the script did not affect the perceptible image quality at all. And it dropped the 2.3 GB folder to 970 MB.

    I'm spacing out the batch jobs during the low traffic times of the site just to be safe but so far I've already reduced the uploads folder size by 8GB.


    Thanks eva2000!
     
  2. eva2000

    eva2000 Administrator Staff Member

    45,444
    10,313
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,997
    Local Time:
    7:04 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    @leoadhemartan thanks for sharing your experience. 3MB per image uploads will certainly add up so lucky you sorted it out now rather than later !

    Keep us updated on how the final optimisation of 20GB of images go :)