Replacing Images in Media Library

Well, I think the easiest way would be the following:

  • Download your wp-content/uploads/ folder so you have all images on your hard disk
  • Remove the images WordPress has automatically generated (the ones with -*x*.jpg, maybe read this if you have SSH access as a filename)
  • Optimize your base images with Photoshop
  • Reupload the images into the wp-content/uploads/ folder
  • Use a plugin like “Regenerate Thumbnails” (I use that one often) to rebuild all the necessary images

This should work, but I have not tested it.

Important! Do not change the filenames of your base-images, otherwise WordPress will not find them after reuploading. (Yeah, seems obvious, mentioned it just for clarification…)