Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #990163

    Hi

    added a masonry gallery to the page. Upload images which had all been resized to around 50Kb. When looking in the backend the gallery shows the correct file sizes for the images. But when look at the site as a visitor the files sizes are 200kb plus.

    Any ideas / suggestions for my ‘deliberate mistake’ would be welcome.

    John

    #990697

    Hey JohnMYates,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    What sizes were you uploading?

    Best regards,
    Victoria

    #990827

    See private data

    #991376

    Hi,

    Thanks for the update.

    The theme increases the quality of the uploaded image set by WordPress from 80% to 100%. You can adjust that value back to default by using this filter in the functions.php file.

    /**
    * Sets the default image to 100% quality for more beautiful images when used in conjunction with img optimization plugins
    *
    * @since 4.3
    * @added_by Kriesi
    */
    function av_return_100(){ return 80; }
    add_filter('jpeg_quality', 'av_return_100');
    add_filter('wp_editor_set_quality', 'av_return_100'); 
    

    Best regards,
    Ismael

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