0

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. (Yes I know the header needs to be fixed.) Notice the size of the "natural" image...it should be 450x450 now but it isn't. enter image description here

  • 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 May 30 '16 at 16:06
  • The images I uploaded have a different name (the size in the image name is different). – CZorio May 30 '16 at 16:08
  • But the original image name was still the same, wasn't it? – N00b May 30 '16 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 May 30 '16 at 16:17
0

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, privacy policy and cookie policy

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