Site logo

Archived topic

Image Size Actual

5 replies · Started by Puneet on April 5, 2023

Viewing posts 1–6 of 6

I NEED HELP finding an answer to this. I have an image with a dimension of 807 X 541 when I open it on my system (https://prnt.sc/ra21rgshvkFl). When I upload the same image to WordPress, I cannot get its dimensions (https://prnt.sc/cYtbwW1qNOUy). As these Images are FHD, I want to get the same quality. I don't want to compress the images; they are already compressed.

The actual problem is the size of the Image in the WordPress Editor as I'm sure that WordPress isn't changing the size while uploading. https://prnt.sc/COrKPaYv2udc

Hi there,

WordPress applies its own JPEG compression to images you upload.
You can stop that from happening by setting it to 100% with this PHP Snippet:

add_filter('jpeg_quality', function($arg){return 100;});

How to add PHP:
https://docs.generatepress.com/article/adding-php/

Note you will need to upload new images to fix older compressions issues.

But we use 100% PNGs

If you're using a PNG then the full size image isn't being compressed by WordPress.

One thing i note on your site is the images are being served from here:

https://cdn-amgoo.nitrocdn.com/qJvQlgGQEOwNXyhUqNwiAWOQgCDvoMdJ/assets/images/optimized/rev-f176165/wp-content/uploads/2023/04/1-change-tab-color.png

looking at that URL, it looks like Nitro is optimizing your images....

This archived topic is closed to new replies.