/ Published in: PHP

TimThumb should be in the template folder named as "thumb.php".
Change H (height in px), W (width in px), Q (quality 0-100), ZC (zoom cropping 0-1) values.
You can provide only one of the dimensions of the picture to get a proportional scale.
Change H (height in px), W (width in px), Q (quality 0-100), ZC (zoom cropping 0-1) values.
You can provide only one of the dimensions of the picture to get a proportional scale.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Image loaded from a Custom Field <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&h=75&w=75&zc=1&q=90" alt="<?php the_title(); ?>" /> // Image loaded from images folder in template <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo bloginfo('template_url'); ?>/images/picname.jpg&h=75&w=75&zc=1&q=90" alt="<?php the_title(); ?>" /> // Image URI hard-coded <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=http://www.xaviesteve.com/image.jpg&h=75&w=75&zc=1&q=90" alt="<?php the_title(); ?>" />
URL: http://code.google.com/p/timthumb/
Comments
