Feedback

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»

414 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. #WDNDL For 8/10/2009 – Web Inspirations, Mac Widgets & Tips, & jQuery! « CodeEdoc – Technology And Programming News
  128. Algunas Novedades en el Blog | Hello! Project
  129. Introducing: Guerrilla Theme – a free wordpress theme | Wordpress Guerrilla
  130. Premium Wordpress Theme Giveaway – Pholio | Inspired Magazine
  131. Timthumb cropping MOD | Studio-XL Blog
  132. Delicate: Blog + Portfolio WordPress Theme
  133. The Morning After, Modified « Musings of Wired Pig Archived
  134. Delicate: Blog + Portfolio WordPress Theme
  135. Photabulous - Free WordPress Theme | Theme Lab
  136. links for 2009-08-21 | AndySowards.com :: Professional Web Design, Development, Programming, Hacks, Downloads, Math and being a Web 2.0 Hipster?
  137. Wordpress Blog Services - Photabulous - Free WordPress Theme
  138. Download Blue wordpress themes | Photabulous – Free WordPress Theme
  139. Free WordPress Themes | Photabulous – Free WordPress Theme
  140. 在eblhost主机下安装mimbo3.0主题无法显示缩略图的解决办法 | 膜坊魔方
  141. Download Gratis | Mimbo Magazine-Style WP Theme
  142. Magic Mime Database Workaround « Hetal Bhagat
  143. Magic Mime Database Workaround « Hetal Bhagat
  144. Magloss – Free WordPress Theme | Free Themes Store
  145. STUDIO PRESS | FriKi Styles
  146. Featuring 1.0 Free Wordpress Theme | Wordpress Romania
  147. Kubrick On Crack - Free Wordpress Theme | Fearlessflyer Design
  148. Usar Thumbnails en entradas sin custom fields « dowarch
  149. 50 Free Themes from Premium Themers | WPLuxe
  150. Get the Image plugin voor je thumbnails : WordPress Dimensie
  151. Thumbnails For Related Posts in Wordpress | Swift World
  152. Displaying resized images as links in Wordpress « Hetal Bhagat
  153. Jungleland - Free WordPress Theme | Theme Lab
  154. Wordpress Blog Services - Jungleland - Free WordPress Theme
  155. Download Brown wordpress themes | Jungleland – Free WordPress Theme
  156. Free WordPress Themes | Jungleland – Free WordPress Theme
  157. Download Blue wordpress themes | Photabulous ? Free WordPress Theme
  158. Download Brown wordpress themes | Jungleland ? Free WordPress Theme
  159. WP Strict | Free Themes Store
  160. Free WordPress Themes | Photabulous ? Free WordPress Theme
  161. Free WordPress Themes | Jungleland ? Free WordPress Theme
  162. :: NotForPaper | The best design work for screen ::
  163. configure theme | Practical Web Development
  164. WooiTuts WordPress Theme | ProThemes
  165. Photabulous – Free WordPress Theme « WordPressMedia
  166. Jungleland – Free WordPress Theme
  167. 10 Exceptional WordPress Hacks | 9Tricks.Com - Tips - Tricks - Tutorials
  168. 50个非常漂亮的wordpress 模版 | 我的旅途
  169. STUDIO PRESS
  170. Уроки WordPress « The world in which I live….
  171. Automatic Wordpress Thumbnail Without Custom Field | Pro Blog Design
  172. Newsworthy – Free WordPress Theme | Theme Lab
  173. Easy thumbnails for The Unstandard (or any theme) - Derek Punsalan – 5THIRTYONE
  174. Wordpress Blog Services - Newsworthy – Free WordPress Theme
  175. Interview with Grant Friedman: Founder of Colorburned | Programming Blog
  176. Альтернатива произвольным полям и авто-ресайзингу картинок | Из vKontakte id найди.
  177. Aggiungere TimThumb ad un template Wordpress | Realizzazione Siti Internet Portfolio | Ideama
  178. Aggiungere TimThumb ad un template Wordpress | Realizzazione Siti Internet Blog | Ideama
  179. Альтернатива произвольным полям и авто-ресайзингу картинок | ALL about SEO
  180. japaonline.com.br » Novo post
  181. Automatically resize pictures on your WordPress blog
  182. Tip: Reduce automáticamente el tamaño de las imágenes | Guia WordPress
  183. Автоматично оразмеряване на картинки
  184. Автоматично змінюйте розмір зображень у вашому WordPress блозі « Блог про Блог
  185. Képek átméretezése TimThumb segítségével | WordPress blog és weboldal készítés
  186. Wordpress: Bilder automatisch skalieren | Pixelnetz.ch - CSS - WORDPRESS - AJAX - HTML - PHP - WEB 2.0
  187. 10 Useful WordPress Coding Techniques « Smashing Magazine
  188. Wordpress Blog Services - 10 Useful WordPress Coding Techniques
  189. Redimensiona tus imagenes mas facil con TimThumb ‹ CalinSoft
  190. Redimensionar imágenes con el API de WordPress - Marcial Soto
  191. Fundacion TCS » Blog Archive » prueba de post
  192. Redimensionar imágenes con el API de WordPress - Marcial Soto
  193. 10 Useful WordPress Coding Techniques « Tech7.Net
  194. TimThumb PHP Image-Resize Script | Designing Web User Interfaces | Merz Akademie | Neue Medien + Visuelle Kommunikation Wahlpflicht 6. + 7. Semester | Wintersemester 09/10
  195. » Using TimThumb with Wordpress MU
  196. Download DemusDesign wordpress themes | Newsworthy ? Free WordPress Theme
  197. Free WordPress Themes | Newsworthy ? Free WordPress Theme
  198. 10 Utili Tecniche di Codifica per Wordpress (1/2) | Kuandika
  199. TimThumb: Automatically Resize Images
  200. TimThumb, script PHP para redimensionar y optimizar imágenes | Nosolocodigo
  201. WP Resizes image automatically in Php | Learning PHP
  202. 10 Useful WordPress Coding Techniques – My Facebook
  203. Web Design News » 10 Useful WordPress Coding Techniques
  204. Wai Yan Lin » Free Premium Wordpress Theme: Featured
  205. Beer Life » Blog Archive » Dr Caves Semi Evil Late Night Test Posts
  206. 10 исключительных WordPress хаков | АртБухта
  207. Альтернатива произвольным полям и авто-ресайзингу картинок | Шаблоны Вордпресс
  208. 10 полезных приемов работы с темами в WordPress
  209. Free WordPress Script for Custom Post Images | Pixellica: Creativity Blooms
  210. Michael Honnor | Julius Honnor
  211. MyProjectStudio | Automatic Thumbnails with TimThumb for “The Morning After” Wordpress Theme
  212. TimThumb, script PHP para redimensionar y optimizar imágenes | {WebProgramo.com}
  213. Автоматично змінюйте розмір зображень у вашому WordPress блозі | Трюки | Блог про Блог
  214. 6 trendów w szablonach WordPress, czyli jak być na czasie | Sekrety WordPress
  215. Fresh Copy Theme | Dress Your Wordpress
  216. Зміна розмірів зображень у Wordpress | Трюки | Блог про Блог
  217. » Professionally designed premium WordPress themes
  218. Generar miniaturas con PHP | Kabytes
  219. Generar miniaturas con PHP
  220. Crear miniaturas de imágenes con PHP
  221. Crear miniaturas de imaxes con PHP - Galego
  222. 10 Wordpress temaer du bør kende | Wordpress Tips
  223. TimThumb – Script de retouche d’image en php | LudiBlog
  224. Kubrick on Crack! | Update A Blog
  225. Template sito web gratuito: presenta il tuo portfolio online in una singola pagina web | Your Inspiration Web
  226. Theatre Breaks blog updates | usefulwiki.com
  227. How to install Centizero « Centizero Wordpress Theme
  228. Delicate: Blog + Portfolio Theme
  229. 怎样在wordpress博客中显示摘要和缩略图 | Focusec.cn
  230. Upload Module Image Resize and Crop | Pligg CMS Forum
  231. mmonet.info » timthumb.phpが動かない、動作しない。
  232. Aperturious WordPress Theme Review | Theme Lab
  233. How to install and set up Centizero « Bilhörnan
  234. Blue Rooster – Free WordPress Theme | BloggingBlogging.com
  235. typoglyphic.com » 10 Tutorials to Take Your WordPress Development Skills to the Next Level – designm.ag
  236. My Blog » Blog Archive » theme
  237. 10 Tutorials to Take Your WordPress Development Skills to the Next Level | Web Design Byte
  238. The Garamond 3 栏简洁主题 | 极速博客主机
  239. My Blog » Blog Archive » unstandart
  240. News Ticker on Steroids | 18 Elements
  241. Free website template: present your portfolio online in a single webpage | Your Inspiration Web
  242. How to install and set up Centizero « INFOIDEEA
  243. Free Theme: WP Strict « Temas e Dicas para Wordpress
  244. aris » Blog Archive » 怎样在wordpress中显示摘要和缩略图
  245. Webord.net
  246. Onizukar Blog » Blog Archive » TimThumb, script PHP para redimensionar y optimizar imágenes en kumbiaphp
  247. Test Post 2 | Alison Hayashi Kiss & MakeUp
  248. 10 Tutorials for WordPress Development Skills | Gazan
  249. The Arras Theme
  250. WordPress: Gere thumbnails (miniaturas) automaticamente com o ThimThumb | ZackShinra
  251. Publikat Läbbt - Publikat Blog
  252. Arthemia Free: Wordpress Magazine Theme Released « www.rafaelnieto.com
  253. Générer des vignettes en PHP avec TimThumb | DevZone - Zone de développement web
  254. BranfordMagazine Version 3.x – grundlegene Einrichtung - Greve-Medien Blog
  255. Geek & Roll - Blog Archive » URL’s Pípiris Nais sin Wordpress
  256. wordpress dev » Blog Archive » Aperturious WordPress Theme Review
  257. 13 Useful Code Snippets for WordPress Development | Web Design Ledger
  258. 某白稀有记 » A New THEME!
  259. How to Make a Website | WebFolio | Brand. Build. Sell.
  260. Wordpress Premium Theme: TimThumb auto-image-resizing « Anarchopress
  261. Web Önerilerimiz » Wordpress geliştiricileri için kullanışlı kod önerileri
  262. 纪伊元享 » Blog Archive » Arthemia Free: Wordpress Magazine Theme Released
  263. Mengendalikan Theme WP {TimThumb} | Grafik Artwork Inc.
  264. Wittenberg Werbung » Blog Archive » Wordpress: Bilder automatisch skalieren
  265.   10 Useful WordPress Coding Techniques by Oshoamy
  266. 10 tricks to make your WordPress theme stand out « Code Impludt
  267. Listing your Wordpress posts as thumbnails with animated jQuery sliders
  268. Tema Wordpress Premium Gratis | Blue Rooster | | Temi Gratis Wordpress
  269. Utiliser les vignettes avec WordPress 2.9 | Encre de Lune
  270. Tema Premium Gratis Wordpress | Webfolio | Temi Gratis Wordpress
  271. manual - Paone Techblog
  272. The ADVENTIST Business Journal » Blog Archive » Test for ABJ2
  273. The ADVENTIST Business Journal » Blog Archive » Test for ABJ3
  274. WordPress WonderPress Theme | Downloads
  275. Free Theme: WP Strict « Tudo sobre Wordpress
  276. TimThumb PHP Script « myCloudCode
  277. Jungleland | Wordpress per siti Wellness | Temi Gratis Wordpress
  278. Suffusion Version 3.2.2 » Aquoid News
  279. utilizing TimThumb in wordpress templates | a new start
  280. Webfolio « Free WordPress Theme
  281. TimThumb ve VPS Ram
  282. Adăugare Imagini thumb pentru articole în 3 moduri, WP 2.9 ready | Grafiko.ro
  283. Site5 Webfolio WordPress Theme - RubicVn - Sắc Màu Cuộc Sống
  284. Another Test Post- Xpression 3
  285. Related Posts With Thumbnails | WpFunc
  286. Blue Eagle Development » Blog Archive » Gallery Plugin Update
  287. Presentation n°1 « Maxime Chardot
  288. Verzerrte Bilder mit Contextual Related Posts » Thumbnails, Screenshots, Thumbnail, Zeile, Plugin, Script » the internet experts
  289. 13 Useful Code Snippets for WordPress Development | WebsGeek
  290. WordPress 2.9 – Mangelnde Umsetzung von Post Thumbnails und Video Integration - WordPress-Zone
  291. Alternativa la redimensionari imagini TimThumb | Jurnal online LOG
  292. UKMoths News » New Thumbnail Format
  293. Shea Allen » Blog Archive » Making TimThumb.php work with WPMU