Archive for the ‘TimThumb’ Category
TimThumb is a free image cropping and resizing script, design with simplicity and ease of use in mind. You can read more about TimThumb.
TimThumb 2.0
Ok - so - TimThumb. I am sure many people have seen this already but some code exploits were recently discovered in TimThumb. Now that everything is under control once more I thought I would explain what happened and what is going to happen in the future.
The exploit that was found was a bug with the external image resize functionality and the fact it could be used to download and execute files. There was code in place that restricted ...
TimThumb Quality Settings
Recently I have had a couple of emails about changing the amount of compression on TimThumb cropped images. The change itself is really easy, however I thought I would write it up as a reference for those who aren't aware of it's existence.
To change the level of compression all you have to do is edit the 'q' (which stands for quality) parameter in the query string.
If you don't set the value then ...
Simple WordPress Post Thumbnails with Regular Expressions
These days everyone with a blog understands the importance of thumbnail images. Three years ago it was common place to have exclusively text, but now a nice image is a requirement. As such the process of implementing the image needs to be made easier.
With my WordPress themes, Elemental in particular, I have simplified things as much as possible. You can set your own thumbnail using the WordPress featured image functionality, or you can use custom fields (which is generally ...
TimThumb Proportional Scaling
Moving the crop position used to be the most requested TimThumb feature - but then I added it, and so something else had to step up and replace it.
The next most requested feature is proportional image scaling. To be honest, this feature request had me confused for a while, I just couldn't understand what people were asking for. TimThumb already had the ability to scale images proportionally, simply by supplying a single size parameter. However what, it turns out, ...
How to Contribute to TimThumb
The Google Code blog has recently announced a new method for modifying code committed to the site. They have created an online code editor that can be used by anyone.
This is fantastic for people who want to contribute to any of the hundreds of open source projects that are online. What this means is that people who have commit privileges can edit and update code online. People who don't ...
TimThumb: Improved Speed and Other Changes
Recently, when I haven't been working on WPAdvent, I have been tweaking and improving TimThumb. In fact there's been a couple of cool new features added that make it a much more useful peice of kit.
The big changes boil down to speed, simplicity, and Youtube!
SpeedI've always been very conscious of the speed of TimThumb. I know that resizing images is slow and uses a lot of memory, so caching has been in there from the start. However I ...
The best way to use TimThumb with a CDN (and why Amazon S3 is not so good)
Speeding up a websites loading time is so good for so many reasons, so it's understandable that people want to use a CDN (Content Delivery Network) to serve their images, however in the case of TimThumb there's a right way and a wrong way. Below I am going to explain how I use a CDN to speed up TimThumb on Binary Moon.
Content Delivery Network?A CDN or Content Delivery Network, is a method ...
TimThumb Troubleshooting Secrets
I often get asked questions about TimThumb and why it doesn't work in certain situations. I can generally tell what is wrong with the script within about 60 seconds of being sent a demo url. Below are my top tips for debugging TimThumb issues.
Keep TimThumb up to DateThis is super important. TimThumb should always be kept up to date. I regularly publish bug fixes and improvements and often the problems ...