WordPress Image Quality
-
I added some code to functions.php of 2016 theme and now I can upload images to my gallery at 100% of their original quality. I have a page with an image gallery embedded inside and for some reason when I open the images in a new tab the image appears grainy like it is at much less than 100% quality.
I need a way to display images at 100% of their quality in a way where users can zoom in on them and look at fine details.
Is there a way available in WordPress to do this? I’ve been trying to get this done for about a week and I havn’t come up with a solution yet. There are some plugins I tried as well that didn’t have the effect I am requesting.
Thank you
[code]
//Added to functions.php. Images are still grainy when used with gallery
//embedded in a page.
// set minimum word count to publish post
function wcs_disable_image_compression( $arg ) {
return 100;
}
add_filter( 'jpeg_quality', 'wcs_disable_image_compression' );
add_filter( 'wp_editor_set_quality', 'wcs_disable_image_compression' );
[/code]
The topic ‘WordPress Image Quality’ is closed to new replies.