Site logo

[Support request] Image Size Actual

Home Forums Support [Support request] Image Size Actual

Home Forums Support Image Size Actual

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2597461
    Puneet

    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.

    #2597465
    Fernando
    Customer Support

    Hi Puneet,

    Can you provide a link to a page on your site where this image is displayed?

    You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    #2597488
    Puneet

    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

    #2597816
    David
    Staff
    Customer Support

    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.

    #2597873
    Puneet

    But we use 100% PNGs

    #2598180
    David
    Staff
    Customer Support

    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….

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.