DR KOH

just sharing…photography, car, IT, computer, ocean engineering, God, Christianity, life…

Change Thumbnail Quality in WordPress

I notice that WordPress has really really poor thumbnail image quality when I upload my photos online. It really spoil a photo or even discourage people to view/click your photo.

To change the thumbnail image quality:

Edit File:
/wp-admin/includes/image.php

Change:
if (!imagejpeg( $thumbnail, $thumbpath ) ) {

To:
if (!imagejpeg( $thumbnail, $thumbpath, 90 ) ) {

90 is the image quality of your thumbnail. My personal experience is that 85-90 are of very good quality. Not encourage to use 100 as it will generate big file size with virtually very little different in image quality.

Here’s the thumbnail from original WordPress default setting (I used trial and error to check the compression setting of WP default, should be around 60-65%, which is definitely TOO POOR for photography work):

File size = 19.52 KB

kkk_0694-before.JPG

Here’s after (80):

File size = 22.31 KB

kkk_0694-80.JPG

Here’s after (85):

File size = 26.22 KB

kkk_0694-85.JPG

Here’s after (90):

File size = 33.06 KB

kkk_0694.JPG

Here’s after (95):

File size = 47.69 KB

kkk_0694-95.JPG

Here’s after (100):

File size = 94.14 KB

kkk_0694-100.JPG

Hope this helps. 🙂

Hits: 47