Some Sizes Not Being Replaced
-
Hi, we want to use the ShortPixel Enable Media Replace plugin for our client’s site but have seen a problem during testing and would like help to work it out. We are using ShortPixel Image Optimiser with WP Offload Media for S3 storage.
The problem is that when we use the Enable Media Replace plugin some image sizes are not replaced when using the “Just replace the file” option. The results vary depending on the dimensions of the original and replacement image. In my tests the three that are causing problems are the original, thumbnail and post-thumbnail.
I’ve run a series of tests to show the problem. In between each test I am waiting for the entire optimisation and offload process to finish. The screenshots are from an S3 browser and if I download and open them I see the same thing so no browser caching is involved.
WordPress Image Sizes
Test 1 – Replace Largest Image With Medium Image
Upload CatTest (3047×2362)Replace CatTest With Paris Replacement Test (1920×800)
Test 2 – Replace Smaller Image With Medium Image
Upload GokuTest (1000×731)Replace GokuTest With Snake Replacement Test (1920×1080)
Try To Replace The Replaced Image (Fully Replaced)
Test 3 – Replace Largest Image With Smallest Image
Upload CatTest (3047×2362)Replace CatTest With GokuTest (1000×731)
Try To Replace The Replaced Image (Produces Same Result)
Test 4 – Replace Smallest Image With Largest Image
Upload GokuTest (1000×731)Replace GokuTest With CatTest (3047×2362)
Try To Replace The Replaced Image (Produces Same Result)
Test 5 – Replace Medium Image With Another Same Sized Image
Upload Fox 1 (1600×1024)Replace Fox 1 With Fox 2 (1600×1024) (Produces Same Result)
Replace Fox 1 With Fox 2 (1600×1024) (Produces Same Result Again)
Test 6 – Replace Medium Image With Another Same Sized Image
Upload Fox 2 (1600×1024)Replace Fox 2 With Fox 1 (1600×1024) (Produces Same Result)
Something I believe important is that when I first begin the replacement process, if I expand the “Replaced Thumbnails Preview” box I see the images have been replaced but once the Offload process has completed if I refresh the page and check S3 directly I see the original images.
Before Offloaded
After Offloaded
This eats up our ShortPixel and WP Media Offload credits. I’ve posted this in both the ShortPixel and WP Offload Media forums as I am not sure which side the problem sits on. I’ll update both as things advance.
- The topic ‘Some Sizes Not Being Replaced’ is closed to new replies.