Image optimize and controlling pixel sizes
-
Hi there,
I really like the WP-Optimize plugin so far but regarding the image optimization part, when I optimize images the plugin does not seem to let me either retain, or specify the PIXEL SIZE and it always sizes it down smaller, not just compressing it. The photos on our site are photography and we have to keep images at a certain pixel size and aspect ratio or they are too small for the various devices. Especially with certain things like home page sliders.
Is there any way to control this? As an example if I have an image that is 1600×1200, the plugin sizes it to 1024×768, and in many cases I have to retain the pixel size but would just like the additional compression. Thanks for your help.
The page I need help with: [log in to see the link]
-
Hi,
Thanks for contacting us! I’ve been running some tests on my sites and in my tests WP-Optimize is not resizing any of the full sized images or automatically generated other sizes (as WordPress will automatically create smaller dimension images based on the settings in Settings > Media when a new file is uploaded) after I run them through compression.
WP-Optimize will take a backup of the original image (or sometimes the image that ends with -scaled if the original image exceeds the max dimensions of 2560px) and will then compress all of the registered sizes for that image but doesn’t resize them. This is why there are no settings present for image dimensions in our compression tools.
One thing I’d like you to test on your site:
- Upload a new image to the WordPress Media Library and take note of the dimensions before you upload it. Ideally with a max dimension (width or height) that doesn’t exceed 2560px so that WordPress won’t create the “-scaled” version.
- Manually compress the image from the Media Library, you may need to select the List View in order to see the compression options. In List View there should be a WP-Optimize column with a “Compress” link beside each image.
- After the image is compressed, if you connect to the filesystem using your hosts File Manager or an FTP Program and navigate to the /wp-content/uploads/2026/04 folder to locate the newly uploaded and compressed image.
- Download the full sized image to your computer and take a look at the dimensions.
Can you let me know if there is any difference in dimensions from the original image and the downloaded compressed version? In all of my tests our plugin isn’t resizing the images so I’m hoping you get similar results, which will help us figure out if there’s something else causing the images that are served to be at a lower dimension.
Let me know how it goes!
Thank you for your response! I will test that out as soon as I can and let you know.
Daniel
Hello I tried to test this exactly as you instructed but I was not successful. I have screenshots of what I did. Is there a way to upload screenshots for you to view?
Daniel
Hi,
Absolutely! You can use a tool such as https://prnt.sc/ to upload the screenshots and then you can post the links here for me to take a look at.
Thanks!
Thank you. I want to see first if you are able to access the screenshots from my Dropbox. If not I will try something else.
Overall I am confused about where the newly optimized image is placed and how to see it in the media gallery (if possible). But here is what I experienced. See screenshots in the order they are listed below.
Hi there I have not gotten a response on my last post to you and am wondering if you can see my screenshots of the scenario I went through in the above Dropbox links.
Please let me know. I hope you can still help me through this.
Daniel
Hi!
Sorry for the wait. The screenshots with Dropbox worked perfectly. I’ll take a look through them and get back to you once I’ve investigated.
Thanks!
Hi,
Thanks for your patience. There might have been a temporary issue with the compression API so I would definitely recommend trying it again, and also instead of trying the compression from the media item itself you can try it from the Media Library page in List View.
As for all of the extra images you see, these are created automatically by WordPress once you upload a new media item. Other plugins or themes can also register custom image sizes which is why you see a bunch of other image sizes when looking at the files directly, however in the Media Library you only see one. When inserting images into Pages or Posts this is often where you can choose the image size (full, large, medium, thumbnail etc).
The images that you see ending in .webP are created by WP-Optimize after the images are uploaded, and will typically be automatically served instead of the JPEG versions.
When WP-Optimize compresses images it will compress the original image and all of the other sizes that you see in the list. It will also back up the original size which is the image you see that has the filename “updraft-pre-smush-original”.
Could you try again with a different or the same image? Your steps are all correct it just seems that the image compression had a temporary issue.
Thank you for all of the info. However, I tried again with the image and tried to compress it from the list view as you asked, and same problem. The processing screen gets stuck forever (I waited 10 minutes), and then the same results. It’s not functioning correctly. Here are two more screen shots..
Daniel
Hi Daniel,
I ran into a similar issue today when testing the image compression. When I use the “Prioritize retention of detail” then the image I was testing wasn’t compressed (0%) but when I tried the “Prioritize maximum compression” then I was able to get the image compressed by about 39%.
Can you let me know which option you were testing with and if you could test the “Prioritize maximum compression”? I just want to ensure that even with compression the images aren’t being resized since that shouldn’t be happening with our plugin.
Thank you!
OK I ran the original image again using “prioritize compression” setting and the same thing happened where it stays frozen on the “please wait” screen and never refreshes the page. I have to refresh browser myself and then I see results.
I think I found the full size “webp” version of the image and it looks like it retained the original pixel size of 2000×1333. So that part seems ok after all, but it did not really compress it more at all. Just so you know, the original image was exported from photoshop as JPG compressing at 80% so it seems like the smush program should have compressed it quite a bit more than what it did.
Thank you!
Hi,
Was the JPEG version of the full sized image also the same dimensions? It should be but just want to confirm this.
As for the issue where you have to refresh the page, can you open up the browser console and go to the Network tab? Once that tab is open if you try to compress an image there should be a few calls to admin-ajax.php while the compression is happening. Can you check to see if they are all returning a status of 200 (there should be a column called Status in the Network tab) or if any of them are getting stuck on Pending or returning a status other than 200?
You must be logged in to reply to this topic.