• If I had been uploading images at 2000×2000, now I want to change them all to 1000×1000. The thumbnails I can use a regenerate plugin. The main files if I change just by ftp, the DB would still have the size as 2000×2000. Not sure what effect this would have, is there a way to regen these details?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, you can register one additional image size of 1000×1000. You do that by adding this snippet
    add_image_size( ‘new-size’, 1000, 1000, true );

    See more about the add image size function and the different options available on the following link – https://developer.wordpress.org/reference/functions/add_image_size/

    Then you could just use a regenerate thimbnails plugin (https://wordpress.org/plugins/regenerate-thumbnails/) and it would resize all the images to 1000×1000. You would still keep the old images at 2000×2000 though.

    Hope this is of help.

    Thread Starter funsail

    (@funsail)

    I want to remove all the old larger images. Because the gallery will still reference the biggest ones.

    Thread Starter funsail

    (@funsail)

    Eg the _wp_attachment_metadata will show s:5:”width”;i:2000;s:6:”height”;i:1469
    If I change it to 1000, each size is different so I can’t update the height in sql.
    Also I wouldn’t know which way it rounded anyway

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing image sizes’ is closed to new replies.