Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1325655

    I am working on a website which will have a lot of photos. To ensure the images load fast and I don’t run out of diskspace on my hosting account, I have resized all the images to below 150KB before uploading them.

    However, I have just noticed that all the images have been created in various sizes and many have increased in file size up to 4 times, eg. I uploaded an image called Manly-Beach-15 – the original dimensions were 1000 x 746 pixels and the file size was 138KB.

    When I look at the images via file manager, there are 14 variations of the image and majority of them increased in file size despite being smaller in dimensions. These are just some examples

    Manly-Beach-15-845×684 is now 413KB
    Manly-Beach-15-1000×423 is now 289KB
    Manly-Beach-15-768×573 is now 336KB

    So I am really confused as to why the file size would increase by so much and I am wondering what can I do to fix this.

    Here is a link to the website

    Your assistance is greatly appreciated.

    #1325856

    Hey Ivana,

    Thank you for the inquiry.

    The theme automatically adjusts the compression level of the uploaded images, which could lead to increase in file size. You can adjust the default quality by using this filter in the functions.php file.

    
    add_filter("avf_jpeg_quality", "avf_set_quality_mod", 9999, 1);
    add_filter("avf_wp_editor_set_quality", "avf_set_quality_mod", 9999, 1);
    function avf_set_quality_mod($quality) {
    	$quality = 65;   // compression level what you like in percent
    	return $quality;
    }
    

    Quality is set to 100 by default. And if you want to prevent the generation of multiple images or thumbnails, please check the following thread.

    // https://kriesi.at/support/topic/enfold-image-sizes-3/#post-1109028
    // https://kriesi.at/support/topic/portfolio-grid-alignment-issues/#post-1306849
    // https://kriesi.at/support/topic/how-can-i-delete-all-enfold-image-sizes/

    Best regards,
    Ismael

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