[Theme: Hatch] Featured images are very low quality (3 posts)

  1. shirazk
    Posted 3 years ago #

    Hello all,
    I've finally got this theme nearly the way I want it, but for some reason when I set a featured image to a post, the image quality is significantly decreased.

    Here is an example:
    Post: http://www.shirazkhan.ca/pampering-4-paws/

    Original image uploaded via wordpress:

    I've already tried changing the 'jpeg_quality' in a couple of the wordpress files from 90 to 100 but seems like the featured image remains unaffected.

    Any help is appreciated!

  2. shirazk
    Posted 3 years ago #

    So I've figured out that for some reason the featured image is being cropped down to 316 wide, and then enlarged back to 640 width which is causing the low quality.

    Unfortunately I have no idea why this is happening (and only with this post so far).

  3. gerald@WPcustoms
    Posted 3 years ago #

    in your theme's post.php file line#34:
    <?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'single-thumbnail', 'link_to_post' => false, 'image_class' => 'featured', 'attachment' => false, 'width' => 640, 'height' => 360, 'default_image' => get_template_directory_uri() . '/images/single_image_placeholder.png' ) ); ?>

    where it says: 'size' => 'single-thumbnail', try to use 'size' => 'full',
    however this is a dirty workaround. The exact image size is set but I think it`s not defined as a mediasize. This way it grabs the fullsize image and downsizes it to 'width' => 640, 'height' => 360,

Topic Closed

This topic has been closed to new replies.

About this Topic