Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Related Posts : bad quality images #1530

nicolinuxfr opened this Issue Jan 22, 2015 · 1 comment


None yet
2 participants
Copy link

nicolinuxfr commented Jan 22, 2015

On my blog, I'd like to display three related posts with only pictures, and at 100 % width, so 1/3 of the width for each pictures. Unfortunately, the result isn't great, since the images are really blurry (open this screenshot at full size to see the problem).


The code explains why : the image pulled from Photon is at 350 pixels width, where it should be in this case at least 640px wide.

<img class="jp-relatedposts-post-img" src="" width="480" alt="Titanic, James Cameron" height="274" src-orig="" scale="1">

Is there a way to change this parameter and have bigger sized images instead ? Thanks for your help !


This comment has been minimized.

Copy link

jeherve commented Jan 22, 2015

Yes, you can use the jetpack_relatedposts_filter_thumbnail_size filter, like so:

function jetpackchange_image_size ( $thumbnail_size ) {
    $thumbnail_size['width'] = 422;
    $thumbnail_size['height'] = 241;
    return $thumbnail_size;
add_filter( 'jetpack_relatedposts_filter_thumbnail_size', 'jetpackchange_image_size' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.