Feedback

Darren Hoyt Dot Com | Design, Development, CSS, CMS, WordPress

TimThumb PHP Script Released

The custom image-resize script created for Mimbo Pro is now available as an open-source project! It’s already being used by a handful of other theme designers and I look forward to seeing what other folks do with it.

View Source Code | Live Demo

Background

The script was written by Tim McDaniels as a way to achieve the core functionality of phpthumb while using half the code. Ben then added PNG and GIF support, plus improved speed and caching.

How do I use it?

Simply copy the source code into a new document called ‘timthumb.php’, place it in a folder on your site (ex: /scripts/) and call the image like this:


Some important things to note:

  • TimThumb requires the GD library, which is available on any host sever with PHP 4.3+ installed.
  • Once installed and in-use, TimThumb will automatically create a /cache/ subfolder with proper write-permissions. If your host server doesn’t allow this by default, be sure to manually change the /cache/ folder permissions to 777.
  • In addition, make sure the folder which contains TimThumb is set to 777.
  • As in the example, use absolute paths for your script and images
  • To really speed things up and make use of the advanced caching checks added to the script, copy these rules to your .htaccess file.

TimThumb allows the following parameters:

  • w: width
  • h: height
  • zc: zoom crop (0 or 1)
  • q: quality (default is 75 and max is 100)

Support

Please visit the dicussion forums»

248 Responses {+}

Trackbacks

  1. Scripts, Releases and News » Curtis Henson
  2. TimThumb - PHP Image Resize Script - WebStockBox
  3. Script Image resize, create thumbnail via url - TP Hilfe Forum
  4. Resizing Images and Associating Them with Posts in Mimbo Pro » Darren Hoyt Dot Com
  5. Dynamic image resizing in PHP | Code.TechInterviews.com
  6. » TimThumb PHP Script Webcreatives
  7. WordPress TimThumb PHP Script
  8. Trevor Davis | Blog | Weekly Link Round-Up #25
  9. Skylog » Blog Archive » links for 2008-04-07
  10. links for 2008-04-07 « toonz
  11. timthumb script php per thumbnails : sastgroup.com
  12. Birgit’s & Uwe’s Blog » Blog Archive » Bilder einbinden mit TimThumb & iBox
  13. Valontuoja » Blog Archive » Kaoottinen linkkidumppi
  14. TimThumb - Fast And Easy Thumbnails Creation | Dezzain Studio
  15. Arthemia: Magazine-Blog Wordpress Theme Released - jubel and the unessentials
  16. TimThumb | milo
  17. Links for Wed 7 May 2008 - Joseph Scott’s Blog
  18. TimThumb Pembuat Thumbnail · Eka Priatna
  19. TimThumb PHPで画像縮小 :: Quuノタワゴト
  20. teste 1 | o blog do ricardo
  21. Automatic thumbnail image resizing options | WordPressGarage.com
  22. Que Nojo » Blog Archive » Arthemia: Wordpress Magazine Theme
  23. Go Tell News » Blog Archive » Heading There
  24. ReD-BeReTs » Blog Archive » deneme video
  25. ReD-BeReTs » Blog Archive » deneme guild
  26. 7Boys » Blog Archive » Apa jadi
  27. Chad Coleman » Tricks » Adding TimThumb To Your WordPress Theme
  28. demo.hostpy.com » Blog Archive » test
  29. Shutter Themes | WP-Premiums
  30. Galipe » Blog Archive » TimThumb, script php pour la génération de vignettes
  31. 风的世界 · Arthemia: Wordpress Magazine Theme Released
  32. Na!Belea » Blog Archive » Timthumb Php Script
  33. erfolgreich-bloggen.de » Blog Archive » arthemia2-Theme fehlerhaft
  34. » Blog Archive » ARTHEMIA
  35. Indomagz 2 WITHOUT TimThumb Image Resizer | MagzNetwork Wordpress and Blogger Solution
  36. テーマ変更― Arthemia « Blog Archive « Waviaei
  37. マガジン・スタイルのWordPressテーマ「Arthemia」 « Blog Archive « Waviaei
  38. Free Theme: WP Strict : WordPress Magazine
  39. links for 2008-09-21 | Deuts’ Notepad
  40. sengkuang.com » Blog Archive » After Install Artemia Theme
  41. Business Info » Blog Archive » Headline Test
  42. Arthemia WordPress Magazine Theme
  43. PHP compress image size on fly (Timthumb Script - Valid XHTML) | Dave Sniper's Blog
  44. PHP compress image size on fly (Timthumb script - Validate XHTML) | Dave Sniper's Blog
  45. 21 Thoughts» Blog Archive » Wordpress post excerpt with automatic thumbnail image (without custom fields)
  46. Creating Custom Listings with Expression Engine, Part II | Darren Hoyt Dot Com
  47. Troubleshooting Image Resizer (thumb.php) | www.enjoyfrancis.comâ„¢
  48. Troubleshooting Image Resizer (thumb.php) | www.enjoyfrancis.comâ„¢
  49. Troubleshooting Image Resizer (thumb.php) | www.enjoyfrancis.comâ„¢
  50. TimThumb, um achado
  51. Arthemia Wordpress Magazine Theme | Weblogian : Blogcasting Magically>Blog News>Blog Tips & Resources
  52. Blogging for Real (this time) | Onkels Online
  53. Image Resizing With WordPress - In the Woods
  54. Video objects bleed outside mediabox - DIY Themes Forums
  55. gearhed.com » Blog Archive » Image Resizing With WordPress
  56. PaoloCascia.it » Blog Archive » wordpress
  57. PaoloCascia.it » Blog Archive » articolo
  58. Arthemia free: best magazine wordpress theme?| il blog ufficiale del progetto BT.com dedicato al design, con un occhio particolare alla piattaforma Wordpress| TEMI WORDPRESS: customizza il tuo blog
  59. How to Resize an Image using PHP,JavaScript and CSS | Tech Stroke
  60. damic.net » Blog Archive » Post 3
  61. 突然?TimThumb PHP Script 起動 | WordPressとPHPの勉強中
  62. Knowing Nothing v2.5
  63. Automatic image resize / cropping with TimThumb - The Unstandard Demo
  64. Agafix V3.0 : Agadir Geeky Minds | Agafix Blog
  65. The Best Tutorials and Freebies of 2008 - NETTUTS
  66. Recipes Atbp. » Blog Archive » Testing Lang
  67. Toko Dephe Site Launch | hardiannazief.com
  68. Tutorial: Automatische Thumbnails mit TimThumb | webdemar.com
  69. Calon Presiden News » WP Strict
  70. Toko Dephe Site Launch | Hardian Nazief
  71. Het TB20090124 Thema « Thur Broeders
  72. Elegant Themes Blog » Blog Archive » Theme Updates Round 3 + Theme Sneak-Peek
  73. Noise Blogger » Blog Archive » Arthemia Free: Wordpress Magazine Theme Released
  74. TimThumb: thumbnailuri cu PHP | CNET.ro
  75. Bypass TimThumb Script in The Stars Theme - Matt Scott
  76. timthumb.php?XREA????? | LuteCreation
  77. AglioEoliO Homepage | Distração… » Novo Layout da Pesbrasil, correções em menus finalizadas
  78. Arthemia: Szablon w stylu magazynu za darmo | Blo24.pl - WordPress bez tajemnic
  79. Arthemia Free: Szablon w stylu magazynu za darmo | wpDaddy | WordPress za r?czk? z Daddy'im
  80. LET’S ROCK, BABIES ! | f4ces
  81. TimThumb | SpiderMarket
  82. Mimbo 3.0??? - ?WordPress China(???)?
  83. I am updating the theme of the blog | En.dogeno.us
  84. Mimbo Pro 2.0 Released | Darren Hoyt Dot Com
  85. 20+ librerías PHP para usar cada día | aNieto2K
  86. Timthumb uppdaterad – Macbloggen
  87. RuggedReporter.com » Blog Archive » Glen Beck Scandal Caught on Tape [EXCLUSIVE]
  88. ??TV? » Blog Archive » Arthemia Free: Wordpress Magazine Theme Released
  89. Simple Post Thumbnails - Add Thumbnails Easily « WP TOY
  90. Colorburned - WordPress Theme Design and Implementation | E.Webscapes Blog Design Studio
  91. Images inside a Wordpress Loop | Law9 Labs
  92. testowy wpis | It Idea
  93. Retrieve a Post’s First Image and Resize it with TimThumb | SpiderMarket
  94. WordPress as a CMS: Making Your Content Unbreakable | Darren Hoyt Dot Com
  95. Bookmarks for April 30th from 01:45 to 01:45 — Emil Olsson: The Portfolio of
  96. Bookmarks for April 30th from 01:45 to 01:45 — Bond Street Film: Just another WordPress weblog
  97. Easy Peasy Images Suggestion Roundup - Fun with WordPress
  98. Nasendackel.de (organisch) Automatische Thumbs Teil 2
  99. 2kBlog | Prueba
  100. Conclusive: WordPress Theme
  101. Album » pixie training camp
  102. Webmaster Cercle » Blog Archive » Auto-image redimensionnement avec shortcode
  103. Fearlessflyer Design » Free WP Theme - The Garamond
  104. WordPress theme for M2 Training | WordPress Design Drupal Development - Lunamedia
  105. Arthemia Free: Szablon w stylu magazynu za darmo | Sekrety WordPress
  106. All StudioPress Themes Will Have Auto-Thumbnails : Brian Gardner
  107. Streamline 2.1 Theme Released
  108. New website | Julius Honnor
  109. TimThumb PHP Script Released | Darren Hoyt Dot Com
  110. anti-islamlib.com » Thumbnail How To..
  111. Accélérer Wordpress - Partie 5 - Optimisation des images | Yann "Bug" Dubois
  112. Elizabeth Hunt
  113. All my bookmarks ever | Daniel John Gayle
  114. Æ • Ars Emporia » Blog Archive » WordPress: Get A Post Image
  115. timthumb for image resizing | Ellev.com
  116. Celebrity Masala » Blog Archive
  117. for the awesome release : Celebrity Masala
  118. Fearlessflyer Design » Free WP Theme - Blue Rooster
  119. 10 New Wordpress Hacks | Themeflash
  120. WordPress as CMS with Mimbo 3 at The world in my eyes
  121. 10 tricks to make your WordPress theme stand out
  122. Fixing 403, 404 and 500 errors when using timthumb.php | Recommended Web Tools
  123. 10 tricks to make your WordPress theme stand out « Design Updates
  124. Novo Layout da Pesbrasil, correções em menus finalizadas « Blog AglioEoliO
  125. New Theme: eBusiness | Quest For News, A TUTORIAL Base
  126. All StudioPress Themes Will Have Auto-Thumbnails | Quest For News, A TUTORIAL Base
  127. TimThumb PHP Script Released | Darren Hoyt Dot Com