About Me
I'm Jeff Fal, and I'm an information architect and front-end developer working in Denver. I have been working on the Web since 1998 and am interested in learning at least a little about most Web technologies. I'm most experienced with HTML, CSS, JavaScript, and Flex. Soft Werewolf is my place to play.Tags
BaseJS browsers css Design Development dungeons and dragons exit signs firefox Google Buzz Google Docs Google Wave html html5 icons ie ie6 ie8 ie9 images Information Architecture ipad iPhone javascript jeff fal jQuery micrrosoft mouse events myths new version progress bars psychology Shop Shark Software Development timthumb tools touch events typography underware usability user experience visual tricks web applications wired Wireframes wordpressCategories
- Design (5)
- Development (11)
- General (7)
- Information Architecture (4)
- Projects (10)
- Mapper (1)
- Poser (1)
- Quotas (1)
- Shop Shark (6)
- Splitter (1)
- Soft Werewolf (1)
Archives
-
RSS Links
More on server-side image resizing
This is a follow-up about my modest plugin to use Timthumb to grab dynamically resized images for WordPress.
When we last checked in, my plugin called “ImgSize” was triggered whenever a thumbnail image was requested, and it provided a Timthumb-resized version. Shortly after this, I added the functionality to the plugin to do the same thing for any image that showed up in a post as well. Almost immediately, Google Analytics registered a large drop in traffic to my blog. Google Image Search was no longer indexing my images because their urls were now all to *.php files. I removed the new feature, and the traffic gradually came back.
I returned to the plugin and fixed the indexing problem by adding an .htaccess file to the plugin folder. This file turns on some URL-rewriting, which allows us to place the PHP script call behind an image-like url. Now instead of having an image tag asking for a source like this –
– The tag can request this much friendlier URL –
– And the lovely .htaccess file changes it into the correct request.
I’ve been running this modification on my site for a few weeks and can report no effect on my web traffic or search engine ranking. If you want to try it for yourself, here’s the source: ImgSize