1

Using the google page speed test i saw that some images were too large and needed to be resized. I used the ftp to download the necessary images, resized them locally, and then used the media upload tool to import them into Wordpress.

I went to each relevant post and changed the feature image to use the new ones. In the media library the file name is the same as the updated images. However after updating and using the chrome inspect tool, I see that it is still using the old image size even though the visible appearance has changed.

The filenames are confusing me. The original images were named as follows: image-1000x1000. The new ones were named image-500x500. After updating the posts with the new images, chrome inspect is now showing: image-500-1000x500-100. What does this mean? Also, the original size of the photo is still the larger one.

Below is an image of the problem. Notice the size of the natural image it should be 450x450 now but it isn't.

enter image description here

4
  • That's because all your images are cached. Either rename and reupload all your files or purge all your cache (purge cache in server/CDN and hit shift + F5 in browser).
    – N00b
    Commented May 30, 2016 at 16:06
  • The images I uploaded have a different name (the size in the image name is different).
    – CZorio
    Commented May 30, 2016 at 16:08
  • But the original image name was still the same, wasn't it?
    – N00b
    Commented May 30, 2016 at 16:15
  • Ya. Turns out the theme was auto generating alternative image sizes upon upload, so I did in fact have the exact same file name in the cache.
    – CZorio
    Commented May 30, 2016 at 16:17

2 Answers 2

1

The theme was auto generating alternative image sizes for responsiveness, so my newly named images were actually duplicates.

Leaving this up in case anyone makes same mistake and stumbles across this.

0

You don't give enough details but your image naming is just bad for wordpress. I am not sure if anywhere in core there is code that tries to detect a resolution by the filename suffix but it is a fragile and confusing habit. If you have to have the data in the name maybe use underscore instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.