Plugin Author
Ajay
(@ajay)
Hi,
Can you tell me if the image you see is:
1. Featured image of the post
2. Image attached to the post, i.e. Uploaded to this particular post
3. First image
Plugin Author
Ajay
(@ajay)
Hi,
I think that is because the plugin is set to fetch out the thumbnail and I believe your thumbnails are set to 100×100 which is causing the stretching.
Can you try this code change and let me know if this works?
Change line 1048 which is currently:
$image_attributes = wp_get_attachment_image_src( $attachment->ID, 'thumbnail' ) ? wp_get_attachment_image_src( $attachment->ID, 'thumbnail' ) : wp_get_attachment_image_src( $attachment->ID, 'full' );
to:
$image_attributes = wp_get_attachment_image_src( $attachment->ID, 'full' );
I believe it’s the same problem i mistakenly emailed you about.
Timthumb is ignoring the settings of the top10 plugin and using the 100x100px that is default on timthumb.php file.
Plugin Author
Ajay
(@ajay)
@nicoblog, can you check by editting the code above?
I changed the above line, the plugin still uses sizes from timthumb.php
define (‘DEFAULT_WIDTH’, 100);
define (‘DEFAULT_HEIGHT’, 100);
Plugin Author
Ajay
(@ajay)
Hi, it shouldn’t use sizes from timthumb.php
Those definitions are in case you don’t pass a width and height to timthumb as parameters, which we are currently doing.
Can you check if 100×100 is your default Thumbnail settings under Settings > Media?
I found the problem, we are not giving any width and height parameter at all, all my thumbnails finish with:
jpg&w=&h=&zc=1&q=100
That’s why it’s using timthumb default.
Something is wrong with that.
Plugin Author
Ajay
(@ajay)
Are you using the WordPress widget? Can you try deleting the widget and adding it back if this is the case?
If this doesn’t work, can you check the setting you have for thumbnail width and height in the settings page and resave the options
I’ve just done both things also deleted timthumb cache it still not giving parameters on url. my plugin has the modification u suggested above not sure if that affects anything.
Solved!
I was setting width and height on
“Output Options” -> “Post thumbnail options”
Apparently that doesn’t do anything.
You have to set them on the widget.
Hi there! Sorry it took so long for me to get back to this post and I really appreciate the replies and help!
Changing line 1048 solved this one for me exactly. The image it’s using is the first one. My theme doesn’t have featured images.
Anyway, I think I’ll keep the line 1048 change for the time being, hope that helps out anybody who has the same issue.
Again, thank you very much again for the help and this awesome plugin!
Plugin Author
Ajay
(@ajay)
You’re welcome. It’s good to know that it’s working.