Hey Guys, I am currently using the TimThumb script with my WP Popular Post Plugin, but id like to have the script crop the image from the top left, rather than the center. At the moment, its cutting the heads off of people in my pics. This is the code which comes with WP Popular Post $thumb = "<a href=\"".get_permalink($wppost->ID)."\" title=\"". htmlspecialchars(stripslashes($tit)) ."\"><img src=\"". get_bloginfo('url') . "/" . PLUGINDIR . "/wordpress-popular-posts/scripts/timthumb.php?src=". $img[1] ."&h=".$this->options_holder[$summoner]['thumbnail']['height']."&w=".$this->options_holder[$summoner]['thumbnail']['width']."&zc=1\" alt=\"".$wppost->post_title."\" border=\"0\" class=\"wpp-thumbnail\" "."/></a>"; Code (markup): I know that adding this &cropfrom=topleft Code (markup): is the correct piece of code to achieve the top left cropping, but what i dont know, is where / how i place the "&cropfrom=topleft" in the large piece of code at the top of this post. Id really appreciate it if somebody could tell me where i place "&cropfrom=topleft" in the large code above. With Regards, Andrew
Here's a TimThumb Cropping Mod - Google Helped a lot http://blog.studio-xl.com/timthumb-cropping-mod/
Hey Ccoonen, Thank you very much for that sir. Followed the instructions on that web page, and that gave me the desired result. Thanks for taking time out of your day to help me. Its very much appreciated. Andrew