Answers for "wordpress thumbnail quality"

PHP
2

thumbnail size wordpress

the_post_thumbnail(); // Without parameter ->; Thumbnail
the_post_thumbnail( 'thumbnail' ); // Thumbnail (default 150px x 150px max)
the_post_thumbnail( 'medium' ); // Medium resolution (default 300px x 300px max)
the_post_thumbnail( 'medium_large' ); // Medium-large resolution (default 768px x no height limit max)
the_post_thumbnail( 'large' ); // Large resolution (default 1024px x 1024px max)
the_post_thumbnail( 'full' ); // Original image resolution (unmodified)
the_post_thumbnail( array( 100, 100 ) ); // Other resolutions (height, width)
Posted by: Guest on August-19-2020
0

wordpress set image quality

// ADD TO FUNCTIONS.PHP FILE
////// SETTING IMAGE COMPRESSION FOR JPG'S

add_filter(‘jpeg_quality’, function($arg){return 100;});

// YOU CAN CHANGE "100" TO ANY NUMBER 1-100 (100 BEING HIGHEST)
Posted by: Guest on October-17-2021

Browse Popular Code Answers by Language