• Hi all – my client uploaded about 300 images, over a span of about 6 months, and they are all massive in dimension and file size.

    I want to download all images from the /uploads/ folder, bulk re-size and bulk compress them all.

    If I do this, and I maintain the folder structure – can I just re-upload the entire /uploads/ folder and nothing will be broken since all the folder / file paths will be maintained?

    (I know there are plugins for this to compress in realtime, etc, etc, , but I want to avoid this. I would prefer to do it properly.)

    Thanks, Corrie

Viewing 3 replies - 1 through 3 (of 3 total)
  • Not a good idea. The files in the directory are managed by WordPress. So are their dimensions, and therefore their size. Thumbnails are created for each image, depending on the theme used.

    My recommendation would be to use a WordPress plugin for this. Maybe this one can help: https://www.ads-software.com/plugins/resize-image-after-upload/ – or this one: https://www.ads-software.com/plugins/imsanity/

    Hello @corrinarusso ,
    you can download all images from the /uploads/ folder, bulk resize and compress them, and re-upload the entire folder as long as the folder structure and file names remain the same. Doing this will ensure that existing image paths in your posts/pages remain intact.
    Example with FTP:
    [1] Download the /uploads/ folder via FTP (e.g., FileZilla).
    [2] Use a tool like ImageMagick to bulk resize/compress:
    mogrify -resize 1200×1200> -quality 85% *.jpg
    [3] Re-upload the /uploads/ folder back to your server using FTP, maintaining the same structure.
    By maintaining file paths, nothing will break on the site.

    The latter tip would also change thumbnails generated by WordPress. Your website might look very strange afterwards. I would still recommend my tip above.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.