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.
Background
The script was scoped out by me and originally written by Tim McDaniels as a way to achieve the core functionality of phpthumb while using half the code. Ben Gillbanks then added PNG and GIF support, plus improved speed and caching.
Ben now handles TimThumb’s development and has written a series of great articles and additional documentation.
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
TimThumb allows the following parameters:
- w: width
- h: height
- zc: zoom crop (0 or 1)
- q: quality (default is 75 and max is 100)

1:37 am
Thanks for releasing this! I shall give this a try soon. Seems pretty great.
3:11 am
This does indeed look very handy. I think I already have a use for it :)
One feature I’d like (it might already do this, I haven’t tried) is to just specify, say, a width, and have the script take care of maintaining the aspect ratio. So if I had an image that was 200px wide and 100px high, and all I used in the url was w=100, the image would automatically be scaled to 100px by 50px.
3:50 am
Scratch that: I’ve just tested this on a 290 x 236 pixel image. I used w=145 in the TimThumb url, and the resulting image had a height of 118 pixels.
Good stuff!
Thanks for sharing this Darren.
1:58 pm
Very handy. Thanks for sharing this.
8:08 pm
Thanks for releasing this Darren. I’ve been using a similar script i wrote myself, which was customised for WordPress, but tim thumb seems far more complete (I was relying on files that had already passed through WordPress, thus having WordPress generated thumbnails! Pretty horrible).
Thanks again.
1:13 am
really super code to crop the image in different size. great work thank a lot. i think it’s more useful code for all of php programmers. once again i thank u lot
6:54 am
Cool, as always, and the timing couldn’t be better. I just realized that it seems that WP 2.5 doesn’t create thumbnail images, it just resizes an image if you say you want a thumbnail. That is a problem with a theme that I’m using, so this may solve the problem.
11:44 pm
Nice! I was just modifying the Unstandard theme, wishing there was an auto thumbnail generation script – and here it is. I just built it in and it works fine! About the advanced caching checks I could put in the htaccess though, can I just use those without it interfering with my WordPress setup?
11:54 pm
The htaccess stuff shouldn’t interfere with other WP issues. I’ve got it written into a couple htaccess files on my sites and haven’t noticed any weirdness.
10:20 am
Is this wonderful script working with JS libraries like Lightbox ( or a derivative ) and if not, how hard would it be to incorporate this for an absolute PHP noob ?
Could you please demonstrate how & where to hardlink the Lightbox code in your PHP source ?
Being able to display nice & easy thumbnails is all good & well, but if the originals are not easily accessible for display, why bother with them in the first place …
11:16 am
@Peter: if you’ve already used Lightbox, etc, you can use it in the same way, just construct the image URL in the way I demonstrated above (“/images/whatever.jpg&h=150&w=150&zc=1″)
12:50 pm
Thank you for your prompt & helpful response !
I realise this is not a WP plugin, but it now looks like a very neat solution to the WP 2.5 thumbnail scaling issue, mentioned here earlier. I find that almost all of the existing WP plugins for image handling badly suffer from the prevalent tendency of ‘featuritis’. I don’t need a Photoshop-cum-FTP-cum-Ajax slideshow plugin to give me a decent thumbnail in a post …
TimThumb may well fit my need perfectly, so thank you for making it available !
3:01 am
Great script. Though, Id rather use my batch resizer as much as possible and avoids GD if I can. But the script would come in handy one time I guess :) Thanks
5:52 pm
Just a quick suggestion about using mod_rewrite to improve the path reference to a resized image, sometning similat to this -
http://mrphp.com.au/node/1805
6:38 pm
Great script!
Adding support for resizing remote images would make it even better.. :)
3:38 am
Very nice idea, I could really use something like this.
Three unfortunate things I’d love to see “fixed”:
1. Unfortunately it enlarges images smaller then the h x w size bounding, instead of leaving them in their original size.
2. Unfortunately it doesn’t maintain the original correct aspect ratios images. Stretch, ugghh, no thanks, how about maintain the aspect ratio and resize within the w x h bounds.
3. Unfortunately it doesn’t maintain png transparency. Oh white, you are nice, but not in big blocks around images that used to have transparency.
If those three items were fixed this script would be absolutely perfect.
Especially if crop did an aspect correct zoom then crop.
I’d be happy to work with you to provide examples of the above three issues.
Thanks again for the fabulous contribution.
9:14 am
im getting an error saying
“Invalid src mime type: unknown”
what does this mean????
2:42 pm
Unfortunatly I get the same error:
Warning: shell_exec() has been disabled for security reasons in
../scripts/timthumb.php on line 186
Invalid src mime type: unknown
How can I fix this?
4:41 pm
Can you guys post live examples of your errors? Also, have you confirmed with your host that GD library is installed?
12:50 pm
Guys, go ahead and grab the latest copy from the Google Code site. It should fix any mime type issues.
8:49 am
Mhm,
image is uploaded through custom-field and there, but the image doesnt pop up, only the alt tag.
Checked the paths- all right. Code also ok as is the gd libary for php.
Idea what could have happened?
Cheers, Os.
7:20 pm
I’ve got it working! :D :D
I found another version of TimThumb @ http://timthumb.googlecode.com/svn/trunk/timthumb.php
Thanx for your time, support and the script!
7:18 am
thanks for this
7:51 pm
Juuuust beautyfull! works like a machine! nice job brother!
1:39 am
timthumb with slimbox
thank you Darren!
1:43 am
Great work, Johan!
9:58 am
looks ok! I’m using phpthumb right now and I can’t find much difference in speed between the two. did you do a comparison?
obviously the features are nowhere near as elaborate as phpthumb but I only need the resize & crop function so I’m considering a switch. the only feature I’d like to see added is the ability to use external images, like so:
10:00 am
oops, I had no idea html was allowed here. I meant to say:
src=”/timthumb/scripts/timthumb.php?src=http://mydomain.com/sample.jpg&h=150&w=150&zc=1″
11:35 am
Thanks for sharing, Darren!
But I have a question. I want all of files in cache folder are deleted automatically when a page is loaded complete. How can I do that?
Thanks again!
11:26 am
I’ve been looking for a script like this for a long time and I’m so happy that I’ve finally found it! Big thanks and big thumbs (excuse the pun) up to the author! Fabulous! :-)
3:09 pm
Anyway to make this script generate thumbnails from flash video?
4:50 pm
can anyone offer a solution to make this work with wordpress? I am having trouble getting it to work.
I am doing this to pull the custom field image:
<img src=”/scripts/timthumb.php?src=ID, “custom-field-name”, true); ?>&h=150&w=150&zc=1″ alt=”" />
when I look at the source code after the page has rendered, everything looks correct, but the image does not appear.
should not be a server issue because I have run phpthumb on this server successfully.
anyone got a better solution to incorporate this into a wordpress tempplate?
10:54 am
Hi Guys,
Would this class work for a high resolution image.. lets say over 3MB..
I tried and it works for all images less than 2MB and does not for over…
Cheers,
Dave
7:05 pm
Anyway to make this script generate thumbnails from flash video?
Not currently.
I am doing this to pull the custom field image:
Unless your /scripts/ folder is actually in the root, that’s not going to work. It needs to point to the /scripts/ folder inside your theme.
Would this class work for a high resolution image.. lets say over 3MB..
It’s not currently equipped to handle hi-res images that big.
2:56 pm
I can make it works …. please help me how do i make it work with WordPress last version???
Please i love this plugin… write me an email please
6:00 am
Hey There, I love this plugin, and I will be using it with the Arthemia theme, But I just can’t get it to work on my server, when I use it on my local machine with Wamp it works fine, but it just doesn’t want to work on my server.
I checked that the Cache is 777, and that the server has PHP 4.5 or higher but still nothing. The argument that the IMG tag send is 100% valid. I just can’t understand why this doesn’t wanna work.
If you have time, your help will be greatly appreciated.
Dimitrio
5:46 am
Regarding the cache, any issues with deleting it? I’m building up a lot of unused images in the cache. Thanks!
5:54 am
CL:
No issue with deleting the images in your cache folder. Feel free to delete the cache anytime. If the script can’t find an image in the cache it creates a new one, so deleting your cache just forces the script to create new resized images.
I’d look at your .htaccess to make sure your rewrite rules are set correctly if your cache isn’t being utilized properly.
The following should be in the end of your main .htaccess file:
RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}]
Hope that helps! Cheers.
1:16 pm
Hi there,
Love the possibilities of this script :)
Is there a way to use this script to bring in a random image from a folder?
Any suggestions greatly appreciated :)
Thank you
12:26 pm
Really neat script. I have used a similar one for EE.
This comment is really for clarification on the following:
Is there any way to set max values for width/height? and avoid distortion?
w: width
h: height
Unclear about how this parameter works
zc: zoom crop (0 or 1)
Unclear about how this parameter works
q: quality (default is 75 and max is 100)
Do I simply write: &q=100 for the max quality? So my string would look like this:
BTW: I have left the height blank because I want the width to be the determining resize variable.
Any clarity on this would be greatly appreciated and useful for all.
Many thanks,
Josh
12:27 pm
My code block didn’t come through…another try:
4:24 pm
We tried phpthumb and a lot other scripts like this, but all of them are to slow for high traffic. We must use external links like scr=”http://domain.com/images/image.jpg….” to store the images on a separated server.
Does anyone know a script that runs realy realy fast? We recently bougt a very simple script that uses database chaching and store de images on de DB. This is the fastest script that we found, but we want more speed. Any suggestions?
4:33 pm
@Josh: are you using character entities for the brackets when you paste the code?
@Jacobo: have you tried the latest version of the script, plus the htaccess rules? Depending on your CMS, you should also be able to apply additional caching rules.
2:41 pm
Sorry. Should it read…see below:
Unclear about how this parameter works
q: quality (default is 75 and max is 100)
Do I simply write: &q=100 for the max quality? So my string would look like this:
<img src="http://localhost.local/imageresize/scripts/timthumb.php?src=images/9780811864305_norm.jpg&h=&w=100&zc=0&q=100" alt="" />Thanks,
Josh
3:38 pm
@josh: yep, that’s right.
4:32 pm
and to follow up on the zoom parameter:
how does this work?
Unclear about how this parameter works
zc: zoom crop (0 or 1)
Thanks for the info.
Josh
10:46 pm
I believe the parameters just distinguish if the script crops from the top-left vs. crops from the middle and zooms outward.
4:41 pm
This script don’t work with an external image like:
Is there a way to make this work?
We need to run this in a separated server.
Regards,
3:03 pm
Hello, I am using your timthumb script and for some reason the images do not show in firefox, however they show in IE just fine. On other servers I have tested on they images display fine in firefox but on this other server I am using it does not display the images in Firefox but rather just shows the text of the ALT attribute. Then when i go directly to the image address (url://timthumb?src=image) it shows the image as the URL? i dont understand, any ideas?
4:22 pm
@Jacobo: The script is deliberately not supposed to allow accessing remote images to prevent bandwidth theft.
@casey: that’s strange, I haven’t heard of that. Feel free to email me a link.
4:53 pm
@Darren #1 : Yes the script was built to do that for bandwidth restrictions, however I have reprogrammed my timthumb.php to allow remote access as we are allowed to from the company where we will be grabbing the images from…
@Darren #2 : I think I know what the issue is I’m getting a PHPINFO report right now on it on that server, but I think it might be because the GD library is not installed on php. Anyways I’m not sure yet and I sent you the URLs by email if you want to check it out.
-Casey
5:00 pm
@ Darren : I was wrong, GD is enabled on both servers. I’m lost on this one.
8:04 pm
I encountered the same problem right after firefox updated to 2.0.0.12.
9:30 am
The image is not showing on?? I dunno why!!
My hosting has support on GD, PHP5
And im done changing the permission(777) on some of the required folders.
Still the image is not showing.. =(
Darren can u help me out man? I can give u access on my site if it is required
Heres my site: http://wptest.david-cook.info/
11:05 am
@thewebguy: I have found using absolute urls to be a problem and I have resorted to relative url’s. Maybe this is not ideal for you? But give it a try.
2:43 pm
@thewebguy:
in regards to timthumb.php — Ooops, I cannot find you the page you are looking for. Error 404
3:48 am
Hello.
Darren, I have the same problem as Jacobo, used two hosting for dividing the width of banda and my web traffic. In one case, the images stored there and in another files blog. Is not there a way to adapt the code and to be able to put the url of the other hosting a TimThumb? I think there must be some way and that we could help.
Thank you for everything.
5:45 am
Hello,
I have just one problem with this script. Before installing this script I was using the absolute path to the image for the custom field (http://mysite/wp-content...).
I don’t want to modify all the custom fields. What do I have to modify to make this script work?
5:40 pm
Thankss….
10:41 am
Can I change some code if i want to use external picture?
And How can I change it?
Thanks
2:22 am
Your code has a bug
If the header ( $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ] ) isn’t set by the server and you have error reporting set to on, the script screws the JPEG http header and the image doesn’t render.
Need to put:
$gmdate_mod = gmdate( ‘D, d M Y H:i:s’, filemtime( $cache_file ) );
Before
if( isset( $_SERVER[ "HTTP_IF_MODIFIED_SINCE" ] ) ) {
6:17 am
@Aree
I actually had this same issue and fixed it myself.
Although on a couple different servers I tested it did work
And then on some others it didn’t.
7:55 pm
Hi,
Great script! I’ve had no problems using the script to create my thumbnails but to take my design forward I want to have the thumbnails it creates watermarked. What code will let me do this and where do I insert it because everything I try breaks the code or just shows me the cached image this script already generates. If it helps all my images are jpg.
Thanks
1:24 pm
What would be cool is if you could call up a file image resizes selection tool similar to the one on WordPress Theme Headers.
3:47 pm
Я вам очень благодарен, мне понравилоÑÑŒ.
5:30 am
I didnt get TimThumb to work with GIF images. Don’t know why, tried a lot of adjusting but didn’t work out.
I’ve found SmartImage Reiszer (also PHP) which works just as easy as TimThumb, but only this one supports GIF images.
http://shiftingpixel.com/2008/03/03/smart-image-resizer/
If anyone knows how to get TimThumb to work with GIF images, please post it. I’ll read it and switch back to TimThumb.
4:15 pm
Bas, try changing line 170 from
imagegif( $image_resized, $cache_file_name);
to
imagegif( $image_resized, $cache_file_name, ceil( $quality / 10 ));
4:18 am
how can i adjust the output file size? i need the file size to be in the minimum.
11:09 pm
Is there a way to make the script or GDLib have less of a color shift from the original to the processed version? Compare…
Original:
http://www.darrenhoyt.com/timthumb/images/sample.jpg
Processed – Same size, High Quality
http://www.darrenhoyt.com/timthumb//scripts/timthumb.php?src=/timthumb/images/sample.jpg&h=300&w=400&q=100&zc=1
Thanks – great script.
11:20 pm
I think you’re seeing a difference in compression, not color. The compression is set by default to 75%, but you can change it – see line #13 at the top of timthumb.php.
11:44 pm
Thx for the reply Darren, however I did specify q=100 in my link,
9:27 am
Hey I have an error on both local and on my php5 webserver.
Warning: Cannot modify header information – headers already sent by (output started at /home/beextraordinary.nl/www/test/scripts/timthumb.php:2) in /home/beextraordinary.nl/www/test/scripts/timthumb.php on line 279
Also the picture is shown in bineare code not very usefull. I juse the following URL http://www.beextraordinary.nl/test/scripts/timthumb.php?src=http://www.beextraordinary.nl/test/images/test.jpg&w=150&h=200
Anyone any idea’s?
6:00 am
Круто, ÑпаÑибо! ;)
1:03 pm
Hey Darren,
First off, thanks a lot for this script, it looks amazing. However, I’m having a problem with it. Every image I send it, it says ‘file not found’. I made sure the cache folder was 0777 and checked that the image was accessible.
http://sheaallen.com/wp-content/themes/arthemia/scripts/timthumb.php?src=http://sheaallen.com/files/2008/08/143014w_sm.gif&w=300&h=275&zc=1&q=100
Am I doing something wrong? I appreciate your help, thanks so much again.
-Shea
6:10 am
Thanks a ton Darren!!! GD library was screwing me down. But you helped me fix that out and use timthumb.php Thanks a lot once again.
7:48 am
Is there any way to use mod_rewrite with timthumb to rewrite more friendly URLs? e.g. http://domain.com/scripts/timthumb/animage.jpg?
3:31 pm
unfortunately the timthump.php script doesn’t work anymore, after an update to wp 2.6.1. Does anybody have an idea why?
regards, Andy
6:52 pm
This looks like a great plugin and an alternative to phpthumb. However, some things are missing.. It seems it doesn’t enlarge images over the original size. I could be wrong though, but I can’t seem to get images to go over 150 pixels – which is the original dimensions (length & width).
8:26 pm
I came across this in use on the Arthemia theme, am going to implement it in a couple of my sites that have been causing me painful updates as they required stuffing around with custom fields for every article.
Awesome work!
12:55 pm
I was testing in Safari 3.1.2 and noticed that the thumbs were not generating. Instead the alt tag was printed with the “?” icon. When I refreshed, the images appeared. I clear the cache, link back to the page using timthumb and the same broken image occurs. I refresh, and there the images are again. Strange. It works in IE and FF.
A note: I am using the orderedlist version of jQuery FancyZoom, but I don’t think that is causing the issue, since it will zoom from the thumb with the same broken image.
Weird huh?
Rich
3:50 pm
Hmm, just tested in Safari 3 and can’t duplicate the error. Are you definitely using the most recent version? I’m not sure it’s related to the script, but could be wrong.
8:32 pm
This is used in the mimbo pro theme I use (im sure your familiar with it ;D), and I just added it to the blog that i use your Agregado theme in. Works like a charm on the latest post area! Thanks :)
12:18 am
@lori: very cool!
11:34 am
Hi there. I installed wordpress 2.6.1 and then installed the Arthemia theme.
Problem is that when I forget to post an image at the end of my post, it shows a blank thumbnail in the random posts. Also I can only get the thumbnails to work if I add a custom thumbnail after every post. This is quite time consuming.
To top it off I had to select the option that the theme uses first image, so it grabs thumbnails off the first image in the post. But in the features section it also displays a blank thumbnail unless I add the custom part in.
I am getting frustrated as I have sat hours working to add thumbnails to posts.
Also the blank thumbnails point to: Invalid src mime type:
4:58 pm
@Sarah: none of that is a symptom of the thumb script, though, which works as it should on themes like Mimbo Pro. If you’re having problems with how the script is implemented, I’d suggest contacting the theme author.
4:08 am
I’m having problems with the script when I generate images with just the width specified, e.g:
It was working fine for me, i.e. setting the width to 140px and making the height of the thumbnail proportional to the original image.
Now, that’s stopped working though, and it is giving all of these images a fixed height of 100px.
Any thoughts?
3:54 pm
I can’t get it to work, I’m going crazy, i have configured the .htaccess and followed everything I’ve read, here’s my html:
It is actually creating the images and saving them in the cache folder, but all I see is the alt text shown. And when I just put the image src in the address bar I get the following error:
The image “http://localhost/scripts/timthumb.php?src=/imagenes/interganga.png&w=120&zc=0&q=100†cannot be displayed, because it contains errors.
3:56 pm
HTML:
\
2:14 am
the image created in cache folder but did not shown up in the browsers :-ss
10:28 am
Hi Darren,
Firstly congratulations on a great script – I have just replaced the post-thumb wordpress plugin with it.
One small problem I have is that the alt title is shown instead of an image when there is a video or flash embedded in the post.
I just wondered if there is anyway I could amend the code to stop this happening please?
The alternative would be for me to prepend a thumbnail on such posts or remove the allt.
Many thanks and best regards,
Michael
4:10 pm
Hi Darren,
I have figured out what is happening – sorry I’m not a Php expert::-)
I am calling your file from a wordpress template, most of my posts have images but some older ones don’t and they are calling just src=”&w=140&h=120&zc=0″ and getting your “no image specified” error.
Is there any easy way in your code that I could redirect such errors to a default image please?
Many thanks again,
Michael
7:28 am
I was having a problem with the timthumb code failing W3C validation.
The fix is simple though:
replace the ‘&’ in the invocation of timthumb with &
i.e. instead of:
use:
<img src=”/scripts/timthumb.php?src=/images/whatever.jpg&h=150&w=150&zc=1″ alt=”" />
et voila… your code will now pass W3C validation… well, at least where it uses timthumb it will!
Thanks for the script Darren
7:35 am
darn… it processed the code in my comment:
It should say:
use:
and your code will validate
1:11 pm
Is there anyway to get the script to return a proportionately sized image?
i.e. if I specify just the width, have it automatically calculate the thumbnail height in proportion to the original image.
If I try just setting one dimension parameter, i.e. w=140, it fixes the other dimension at 100px.
Thanks,
Roger
11:31 am
@roger
I was able to get that to work by using 100% for the other measurement. It appears to do what I want, but the code is no longer xHtml clean :(
image.jpg&w=450&h="100%"&zc=0Maybe Ben has a fix?
12:54 am
I think I have it…
<img src="/scripts/timthumb.php?src=/&w='465'&h='0'&zc=0" alt="" />Seems to validate and still return the proper proportionate opposite dimension for the image. Let me know how it works.
11:18 pm
Nice, I may want to use this some day. :)
1:33 pm
This works great – but can it enlarge images bigger than the source? This is a needed addition for myself and was wondering if there is support for it?
10:36 pm
@Danny: unfortunately, no script can enlarge an image and preserve the quality. In general, images should not be stretched.
4:30 am
Hello Darren,
I use this script on a CMS system to dynamically resize images to fit a particular width. In regards to the timthumb – what I meant was, if I had a source image, is it not possible to dynamically enlarge it based upon the parameters I set? I do recall having this ability with phpthumb, though I could be wrong in that regard. I acknowledge that preservation of quality would be impossible – but just enlarging the image – period would suffice.
Appreciate your insight on this mate!
11:30 am
You can try it, but again, it will likely distort the quality.
7:56 am
awesome script. thanks thanks.
i’ve now used this on my website and will add thanks to yourself if that’s ok.
1:35 am
Iv integrated it into my IPB forum whereby when a user uploads an avatar it uses your script to auto resize, and also, it auto resizes the images posted in RSS feeds which means when my auto blog updates it keeps the template in check :D
Cheers!
10:52 am
Where should the .htaccess file go? Should a new .htaccess file be created in a certain directory with the suggested rules? Which directory?
Thanks
9:42 pm
@Josh: you can copy the new rules into the htaccess file in your root directory.
10:37 am
Darren,
You sure you wanted to release this for free? This little neat script allows me to do all resizing on the fly..saving me time to bother with big scripts loaded with many files and settings
I will try to integrate it with my WP and see what can I do with it.. thanks Darren
1:41 pm
Hi, How can I rename all the resized images sames as the orginal file but put th at the front of the file or anything. Keep it in the folder for forever.
example:
Orginal name: my_image_78.jpg
resized image: thmy_image_78.jpg
or put anything at the front of the orginal image in order to identify.
Thanks a lot…
3:23 pm
Fantastic script! Is there any way to get it to work with remote images?
Example:
I would absolutely love something like that…
9:32 am
HI darren, first, really thank for your great PHP timthumb script and I wanna ask, is there possible to use this timthumb plugin and that image not uploaded on or using wordpress Image uploader ? I have plan upload on another image hosting. so this I really need your help for this solution or maybe changed PHP script. thanks before for your help.
regards
valant
1:12 pm
Hi guys – timthumb seems to be behaving a bit erratically for me when integrated with Expression Engine. Take a look at this link. You’ll notice a small bar right at the top of the entry – if you view its source, it renders this code:
http://nationalcapacd.org/inc/timthumb/timthumb.php?src=http://nationalcapacd.org/images/uploads/press/BernadetteCapitol.jpg&w=250&h=250&zc=1
The url after the question mark is the correct path to the image, and yet it does not show up on the site. What gives? Thanks for the help.
5:32 pm
I love that script!
2:08 am
Cool Script. Has anyone tried to use it with as3? Are there any complications?
8:03 pm
Tried several times and its not happening.
Im also using PHP code
Any assistance would be appreciated
4:48 am
Great work Darren! specially the automatic aspect ratio adjustment when we only provide one parameter
6:29 am
When I try the script out it just gives me a blank page. I’ve tried this as a stand alone script and within a Premium WordPress theme.
I’ve turned off mod_security in apache in case that was stopping it working.
But I can’t for the life of me figure out what’s going on.
7:55 am
Thank you for this great plugin.
I want to ask If I can crop zoom from the top of the image? Lets say I have a 200wx1000h image and I want to generate a 200×200 thumb but cropped from the top?
thanks…
5:47 am
Great script! Thank you so much!!!!
I run a WordPress blog, now I wonder how to use this script to get the first images of post and resize it automatically?
5:56 am
@Pal: I wrote a post on how to do just what you need: http://21thoughts.com/2008/10/21/wordpress-post-excerpt-with-automatic-thumbnail-image-without-custom-fields/
Unfortunately, the code sample at the end is a little mangled, so drop me an email if you need the correct version.
Cheers,
Roger
4:37 pm
HI darren, first, really thank for your great PHP timthumb script and I wanna ask, is there possible to use this timthumb plugin and that image not uploaded on or using wordpress Image uploader ? I have plan upload on another image hosting. so this I really need your help for this solution or maybe changed PHP script. thanks before for your help.
regards
valant
12:11 am
Hi,
I love the script. I’m using it on my site (http://mytenderloins.com/), and it works great except for on one picture (the largest) in Safari/Firefox. It shows up smaller than it should be. I used the same code for it as the others (except for the h & w), but can’t get it to work.
Is this a bug? Or how do I fix this? I’ve tried enlarging the h & w in the code, but it still won’t work.
Thanks,
Denton
12:32 pm
Hi,
I’ve installed your script but the images don’t show up.
When I try to access to the image it gave me an Error 500.
I tested this script in local with Mamp and it worked fine but online I get this error.
So I put my website offline for a while, waiting for a solution, if any.
The server host Php 5 and GD Library is active.
The folder with timthumb.php is chmod 777, but there is not a folder called cache…
Can you understand the reason for this strange behaviour?
Regards, René