Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1467532
    Martin
    Guest

    Hello Kriesi Team,

    I want to report a bug for a WebP direct image upload using the Enfold theme. The original size is much smaller than the resized size (smaller in pixels but larger in kilobytes). I tried many themes, but this is not the case.

    Here a screenshot: https://ibb.co/S3Pps1j

    Regards,
    Martin

    PS I send the same message from ThemeForest profile, I can’t find a bug report section in this site

    #1467631

    Hey Martin,

    Thank you for the inquiry.

    The theme automatically sets the upload quality to 100%, whereas the WordPress default is 82%. However, this can be adjusted by adding the following 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 = 70; return $quality;}

    Best regards,
    Ismael

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