How to Change the quality of your WordPress thumbnails images.

Thumbnails is very popular word in wordpress. The function creates different size of images for our wordpress site. Post Thumbnails is a theme feature was introduced with Version 2.9. It was quickly changed to Featured Images with Version 3.0. Thumbnail, now Featured Image, is an image that is chosen as the representative image for Posts, Pages or Custom Post Types. The display of this image is up to the theme. This is especially useful for “magazine-style” themes where each post has an image.

Some times we are facing issues with our thumbnail images that has been generated my wordpress. It may has low quality or heavier to download. When we are uploading any images through admin uploader, wordpress by default set 90% quality to the generated images. If you think that your cropped thumbnails don’t have a good enough quality? or it is much heavier to download ?. Here is solution to overcome from this type of situation.

The following code will help you to increase or decrease the thumbnail image quality of or generated images.
Just add the code to the theme function.php file.


/*  Set custom thumbnail quality ------------ */
function crayon_thumbnail_quality( $quality ) {
    return 100;
}
add_filter( 'jpeg_quality', 'crayon_thumbnail_quality' );
add_filter( 'wp_editor_set_quality', 'crayon_thumbnail_quality' );

Change value to anything you want. 95 would be the default max quality. The code also work any new version of wordpress.

Enjoy WordPress!!!

Comments

  1. Fantastic website you have here but I was wanting to
    know if you knew of any community forums that cover the same topics discussed here?
    I’d really like to be a part of online community where I can get
    feed-back from other experienced people that share the same interest.

    If you have any suggestions, please let me know.
    Kudos!

  2. Hi, the whole thing is going well here and
    ofcourse every one is sharing data, that’s truly
    excellent, keep up writing.

  3. I think the admin of this web page is actually working hard
    in favor of his web site, since here every material is quality based information.

  4. Useful information. Fortunate me I discovered your site accidentally, and I am shocked why this twist of fate didn’t took place earlier!
    I bookmarked it.

  5. Heya i’m for the primary time here. I found this board and I in finding It truly
    helpful & it helped me out much. I hope to present something
    again and aid others like you aided me.

  6. I blog often and I seriously appreciate your information. This article has truly peaked my interest.

    I’m going to take a note of your site and keep checking for new information about once a week.
    I subscribed to your Feed as well.

  7. Hey! I know this is kind of off-topic but I needed to ask.
    Does running a well-established blog like yours take a lot of work?
    I am brand new to operating a blog but I do write in my journal
    everyday. I’d like to start a blog so I will be able to share my personal
    experience and views online. Please let me know if you have
    any kind of ideas or tips for brand new aspiring bloggers.
    Thankyou!

  8. Hi to every single one, it’s actually a good for me to
    pay a quick visit this web page, it includes helpful Information.

  9. You’re so awesome! I do not think I have read through something
    like this before. So nice to discover somebody with a few original thoughts on this issue.

    Really.. thank you for starting this up. This web site is something that is needed on the internet,
    someone with a bit of originality!

  10. Howdy are using WordPress for your site platform? I’m new to the blog world but I’m trying to get started and set up my own. Do you
    need any coding expertise to make your own blog? Any help would be really appreciated!

  11. Hi there, i read your blog occasionally and i own a similar one and i was just wondering if you get
    a lot of spam feedback? If so how do you prevent it, any plugin or anything you can recommend?

    I get so much lately it’s driving me crazy so any help is very much appreciated.

  12. Hi there, this weekend is nice in favor of me, because
    this point in time i am reading this fantastic informative paragraph here at my
    house.

  13. I am now not certain the place you are getting your info,
    however good topic. I needs to spend some time
    finding out much more or working out more. Thank you for fantastic information I was in search of this info for my mission.

  14. Thanks for any other magnificent post. Where else may just anyone get that kind of information in such an ideal method of writing?
    I have a presentation subsequent week, and I’m on the search
    for such info.

  15. Howdy, i read your blog occasionally and i own a similar one and i
    was just curious if you get a lot of spam comments?
    If so how do you stop it, any plugin or anything you can suggest?

    I get so much lately it’s driving me insane
    so any help is very much appreciated.

  16. Hmm it looks like your site ate my first comment (it was extremely long)
    so I guess I’ll just sum it up what I wrote and say, I’m thoroughly
    enjoying your blog. I as well am an aspiring blog blogger but I’m still new to
    the whole thing. Do you have any helpful hints for rookie blog writers?
    I’d certainly appreciate it.

  17. I think this is one of the so much vital info for me.

    And i’m glad reading your article. However should remark on some general things, The website style is great, the articles
    is truly great : D. Excellent task, cheers

  18. Ahaa, its fastidious dialogue on the topic of this article at this place at this blog, I have read all that,
    so at this time me also commenting at this place.

  19. Excellent post. I was checking continuously this blog and I’m impressed!
    Very useful info particularly the last part :
    ) I care for such information a lot. I was seeking this certain information for a very long time.
    Thank you and good luck.

  20. Hey there, I think your website might be having browser compatibility issues.
    When I look at your blog site in Safari, it looks fine
    but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that, awesome blog!

  21. I think this is one of the most important information for me.
    And i’m glad reading your article. But wanna remark on few general things, The web site style is
    ideal, the articles is really great : D. Good job,
    cheers

  22. Hey I know this is off topic but I was wondering if you knew
    of any widgets I could add to my blog that automatically tweet my newest twitter updates.

    I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this.

    Please let me know if you run into anything. I truly enjoy
    reading your blog and I look forward to your new updates.

  23. I’m not sure why but this web site is loading very slow for me.
    Is anyone else having this problem or is it a problem on my end?
    I’ll check back later on and see if the problem still exists.

  24. My spouse and I absolutely love your blog and find the majority of your post’s to be what precisely I’m looking for.
    Do you offer guest writers to write content for you personally?

    I wouldn’t mind composing a post or elaborating on some of the subjects
    you write about here. Again, awesome weblog!

  25. Wow, marvelous weblog structure! How long have
    you ever been blogging for? you made running a blog look easy.

    The total look of your web site is fantastic, as smartly as the content material!

  26. I was pretty pleased to discover this web site. I want to to thank you for ones time for this particularly
    wonderful read!! I definitely loved every little bit of it and i also have you saved as a favorite to check out new information on your blog.

  27. You made some decent points there. I checked on the internet to find out more about the issue and found most people will
    go along with your views on this site.

  28. I am sure this article has touched all the internet visitors, its really really good piece of writing on building up new weblog.

  29. Hi there! This post couldn’t be written any better!
    Going through this post reminds me of my previous roommate!
    He constantly kept preaching about this. I’ll send this
    post to him. Pretty sure he will have a great read.
    Thanks for sharing!

  30. Wow, superb blog structure! How lengthy have you ever been blogging for?
    you made running a blog look easy. The whole look of your
    site is excellent, as well as the content!

Leave a Comment