Do the images in your Wordpress site look shabby ?

1 replies
Hello Warriors,

Are you using Wordpress ? Do the images in your site look shabby or not clear ?

Here is the thing, "Someone" did some digging around the WordPress internals and found that the default image quality of thumbnails is set to 90%. Many of my clients asked me why the images or the thumbnails or custom image sizes so bad. All this while they were blaming me, till I pointed it out to them that it's Wordpress which is doing it and not the theme that I gave them.

However, I have a solution to this. You can get better and 100% quality images by putting this small code in your functions.php file ( in your theme folder ).

Code:
add_filter('jpeg_quality', 'jpeg_quality_callback');
function jpeg_quality_callback() {
return (int)100;
}
PS. Make sure you create a backup of this file before editing, this is one of the "most" important file of a theme.
#images #shabby #site #wordpress
  • Profile picture of the author LillySage
    Wow great tip!
    Signature

    Get my 149-Page Kindle Publishing System WSO FREE TODAY...FREE WSO TODAY!

    {{ DiscussionBoard.errors[7769072].message }}

Trending Topics