• I have uploaded East-Sample-4.JPG.
    The image size is 1434X960 Px. with 113.29 KB.
    Wordpress & my Avada theme creates lot of images with different sizes.
    In it, East-Sample-4-1200×801.jpg with 216.77 KB.
    East-Sample-4.JPG is bigger image size than East-Sample-4-1200×801.jpg but file size more than uploaded size.
    How to correct it?
    Refer https://ibb.co/r3JcRkR

    Regards,
    Sudhan.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You can use the ‘jpeg_quality’ filter to use a different compression level for resized JPG images. Valid range is 0 – 100, 100 is best quality, biggest file size. The default is 82. Using lower numbers can result in more noticeable compression artifacts.

    Try adding this to functions.php of your theme:
    add_filter('jpeg_quality', function( $quality ){ return 50;});
    You can change the 50 to any valid number.

    This code will be removed when your theme updates, its proper location would be in a simple custom plugin. This code will only affect newly uploaded images. Existing images remain unchanged.

Viewing 1 replies (of 1 total)
  • The topic ‘Need real Media upload – Optimization’ is closed to new replies.