title: How can I replace TimThumb with WordPress native image tools?
body: <p>I have recently started work on an existing WordPress site.  The theme on the WordPress install uses TimThumb excessively, and it really is unnecessary.  WordPress native image sizes should be able to handle the functionality required.  However, I am not sure how to replace TimThumb.</p>
  
  <p>There is a <code>post-thumb.php</code> in the theme file that generates the thumbnails.  The file is as follows:
      
  
  <pre><code>if (get_option('solostream_default_thumbs') == 'yes') { $defthumb = get_bloginfo('stylesheet_directory') . '/images/def-thumb.jpg'; } else { $defthumb == 'false'; }
  
  $solostream_img = get_the_image(array(
      'meta_key' =&gt; 'thumbnail',
      'size' =&gt; 'thumbnail',
      'image_class' =&gt; 'thumbnail',
      'default_image' =&gt; $defthumb,
      'format' =&gt; 'array',
      'image_scan' =&gt; true,
      'link_to_post' =&gt; false, ));
  
  if ( $solostream_img['url'] &amp;&amp; get_option('solostream_show_thumbs') == 'yes' &amp;&amp; get_post_meta( $post-&gt;ID, 'remove_thumb', true ) != 'Yes' ) { ?&gt; 
  
      &lt;img class="&lt;?php echo $solostream_img['class']; ?&gt;" src="&lt;?php bloginfo('template_directory'); ?&gt;/scripts/timthumb.php?src=&lt;?php echo $solostream_img['url']; ?&gt;&amp;amp;w=150&amp;amp;h=150&amp;amp;zc=1" alt="&lt;?php the_title(); ?&gt;" title="&lt;?php the_title(); ?&gt;" /&gt;
  
  &lt;?php } 
  
  } ?&gt;
  </code></pre>
  
  <p>I just want to replace this entire function with WordPress' built in <code>the_post_thumbnail('thumbnail')</code> function.  </p>
  
  <p>Is it as simple as replacing</p>
  
  <pre><code>src="&lt;?php bloginfo('template_directory'); ?&gt;/scripts/timthumb.php?src=&lt;?php echo $solostream_img['url']; ?&gt;&amp;amp;w=150&amp;amp;h=150&amp;amp;zc=1"
  </code></pre>
  
  <p>with something like </p>
  
  <pre><code>src="&lt;?php the_post_thumbnail('thumbnail'); ?&gt;"
  </code></pre>
  
  <p>Any ideas or a push in the right direction would be appreciated.  Thanks for reading.</p>