I was chatting in e-mail this weekend about various issues around formatting images for the web, and that got me thinking about having an automated photo-posting location (ie, a method for posting images I e-mail to a script). I broke the problem down into two steps:
- Make a template site and see what sort of actions will need to be done on the images/text in order to get it up.
- Write the scripts.
I managed to get the first part done tonight. The biggest pain in the ass was vertically centering the image in the div, because fricken-fracken CSS doesn't have any way of handling that. I had to intall two MovableType modules and write a Perl script to calculate how far to offset the image from the top, and I don't even want to think about how idiotic some of the problems I ran into were.
On the other hand, I've worked out the kinks in the process, and have figured out how to do it all consistently, so now all I have to do is automate the process. Half the battle is over.
Oh, yeah, and that site's still very delicate, especially the comments area, so be gentle.