Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have used timthumb.php to handle various type of image format in my custom theme, but this is making my site slow and more the number of images per page more it is taking to re size, crop them

I am planning to remove timthumb.php file from my theme.Since all my work is at starting phase, so it is not a whole rework for me.

What can be the best approach to accomplish this.Is there anything which needs to be taken care while doing this?

share|improve this question
add comment

1 Answer 1

Just delete your timthumb.php file.

If your site thumbnails use timthumb then the code might look like this

<img src="<?php bloginfo('template_directory'); ?>/xxxxx/timthumb.php?src=<?php echo "original image url" ?>&h=150&w=150&zc=1" /> 

Just replace those instances with code like this

   the_post_thumbnail('thumbnail', array('class' => 'thubnail'));
share|improve this answer
    
+1 for the counter method from WP :) –  Umesh Awasthi Jan 12 '13 at 13:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.