Friday, April 24, 2009

Resized Images

Over the last few days I've tinkered with a few things here on my lifestream page. The most significant was haxing in a dynamic image resizing system which creates thumbnails 400 pixels wide to be displayed nicely. Previously I was just uploading pre-thumbnailed images for inclusion in updates sucked in from spurl or elsewhere. This failed when I wanted to upload a higher resolution image on its own (like the pink storm trooper image).

So now I upload to photobucket at the original resolution of whatever the image is and my code downscales it while maintaining the correct aspect ratio.