Categories
Photography Weblogging

Faux photoblog

Recovered from the Wayback Machine.

Six Apart has announced the preliminary release of TypePad, a hosted solution for those people partial to Movable Type. Prices look pretty decent, low enough to be competitive, but not so low that there’s thousands of weblogs on one server.

Among the features is HTML-free templating, moblogging, automated FOAF generation from the blogroll (hmmm – don’t agree with this one), as well as the ability to show what you’re reading and listening to. The best decision Six Apart made with TypePad was pointing the weblogger’s domain names at their weblogs. Depending on the web server used, this is a very doable thing, and I think other hosted solutions are going to have to look at this as an option.

One of the functionalities that TypePad has that Movable Type doesn’t is a ‘photoblog’, photography weblogging setup. I imagine this will interest quite a few folks who already have their own hosted MT sites. I liked the look and feel of many of the photoblogs I looked at, such as Joi Ito’s San Francisco photos, so I set out to re-create the look in a Movable Type weblog called MT Faux PhotoBlog. Once I figured out the templates, it was quite easy to create the album, and I may do this for other photo albums.

How does it work? The solution requires that the server have ImageMagick, and the ImageMagick Perl wrapper installed. Otherwise you’ll need to create your thumbnails yourself.

Categories are created for each photo, sans the photo extension. For instance, a photo such as tunnel.jpg would have a category called ‘tunnel’. When the photo is uploaded, it’s uploaded as a separate entry, and a thumbnail is created. When I create the thumbnails, I don’t constrain the image proportions, so that I can create square thumbnails. In the Faux PhotoBlog, I’m using thumbnails of 120 x 120px sizes.

To get the front page, I replaced the traditional MT entry listing with the following:

<div id=”content” style=”align: center”>
<div class=”blog” >

<MTEntries lastn=”20″>
<a href=”<$MTEntryPermalink$>”><img src=”<$MTBlogURL$>photos/<$MTEntryCategory$>-thumb.jpg” alt=”<$MTEntryTitle$>” class=”mainpage” /></a>
</MTEntries>

</div>
</div>

What this template code does is create the URL for the image by concatenating the category name, with the blog URL and photo thumbnail filename extension (jpg). Instead of category, you could also use entry title, but then this forces it into a title that might not be descriptive. Instead, I used entry title for the ALT tag for the image, and reserve category for the filename.

To force the images to line up and wrap without using an HTML table I created an img CSS class to use with the images that sets the image to inline display:

img.mainpage {
display: inline;
margin: 5px 5px 5px 5px }

I also gave the images 5px of space around them on each side. All the images are given a border, in this case a solid grey one.

(If your browser doesn’t support display:inline, you can also surround each photo with a SPAN tag, as this forces the image inline. However, if you do this, make sure your outer DIV block doesn’t have left padding or margin, or you’ll get uneven wrapping.)

This takes care of the main page. For each individual page, to get the lined up thumbnails, I used the following:

<div class=”side”>
<MTEntries lastn=”20″>
<a href=”<$MTEntryPermalink$>”><img src=”<$MTBlogURL$>photos/<$MTEntryCategory$>-thumb.jpg” alt=”<$MTEntryTitle$>” width=”50″ style=”margin-bottom: 10px” /></a><br />
</MTEntries>
</div>

I’m using the browser resize capability – resizing the thumbnails from 120 down to 50. However, that’s something you can change. It just seems to match the PhotoBlog look. Additionally, in this setup, I only list the most recent 20 photos, but you can change this, on the front page and in the sidebars.

That’s it. Then, to add a new photo, just upload a new photo, make sure you create and upload a square thumbnail the same name as your original photo with a ‘-thumb’ appended, and name the category for the photo the same name as the image file:

photo: tunnel.jpg
thumbnail: tunnel-thumb.jpg
category: tunnel

You’ll need to rebuild all entries each time you add a new photo, otherwise it won’t show in the sidebar. Chances are, you’ll want to consider keeping your photo albums smaller, less than 100 photos.

TypePad’s photo album feature probably has a lot more features, but for those of us on MT, at least we can capture the look.

(Access the individual and main index templates, and stylesheet. )

update 

Well, I left parts out, didn’t I? When you upload a photo, have MT create a new entry and use the embedded photo option. If you have the software installed, also have it create the thumbnail for you at the same time – making sure not to constrain the proportion, and make the thumbnail square.

In the entry, delete everything but the URL for the photo, converting it into an img instead of a hypertext link if you used a thumbnail when creating the entry.

Alternatively you can just create a fresh entry, and add the image yourself – but you’ll then have to provide a thumbnail. If you do, remember to name the thumbnail imagename-thumb. Don’t try and constrain the photo itself as a thumbnail using width and height in the img tag, unless the photo is square to begin with – browsers don’t do a great job of converting a big rectangular photo into an itty bitty square thumbnail.

To make the photos display properly, you’ll also want to change the chronological order to forward chronology, not the typical reverse chronological order of most weblogs.

Thanks to Al for correction to my earlier statement: MT will create thumbnails if you have either ImageMagick or NetPBM installed. Ask your ISP if you’re not sure.

And if you have problems, holler.

Categories
Photography

Welcome sign

stayout.jpg

Categories
Photography

Al-l-l-most

leafdrop1.jpg

Categories
Photography

Pics and bother

Unfortunately, it wasn’t until I used my TiBook – with its much better resolution – that I was able to see that my print scanner has a defect, and is leaving a streak. In addition, more dust and speckles on the photos scanned then showed on my Dell laptop. Bother.

But enough with my photos, which have been off lately. I’d rather point you to some other photos – lovely photos. First, Eye Contact by Farrago Flying Penguin. Lynette has a wonderous way with the camera. In addition, the site I mentioned in my little stroll last week – the one with the pretty flower picture – copied one of my photos. Not sure if I’m credited for the photo or not, because the writing is all in Japanese. However, I did find the source of the flower photo. When I saw all the other incredible photos from the same photographer, I felt like shutting down my camera for good.

Two lovely sites of photos.

Speaking of lovely, Jeneane’s redesigned her weblog. I _like_ Jeneane – much better.

In addition, going about tonight catching up, romance is in the air, and it’s all between married folks, including 30 years of marriage, and another hubbie saying the right thing at the right time. I guess AKMA getting a wifely glare from Margaret can also be called romance – if she didn’t care about him, she wouldn’t mind if he ended up in gaol for wearing subversive clothing.

Perhaps I’ll keep my camera – at least it keeps me company.

Categories
Photography Weblogging

Photos and Weblogging tools

I spent the weekend organizing my photo collection I picked up in San Francisco my last trip – reviewing, grouping into categories and then putting the slides/prints/negatives into their special sleeves in photo notebooks. My goal is to digitalize all of the photos in order to preserve them because most modern film types can start to deteriorate over time, especially the negatives. Plus, I want to start building up a digital library – just for fun.

Unfortunately, I have two scanners that I can’t use at the moment: the Polaroid because it stopped working – never again will I buy a Polaroid – and the Nikon, because I don’t have a SCSI device for my laptop that will work with the scanner. However, I was able to scan some prints using my Office Jet, and most of these turned out quite well. For instance the following photo is one I took in the dead of night during one of the worst wind storms in Seattle. All power was off in the city, and I opened the exposure for a considerable length of time, culminating with a flash on some of the trees around our house (the ones still standing, that is). The effect was interesting.

stormynight1.jpg

The odd yellow color in the sky is due to a color shift in the film from the over long exposure. I could compensate for the color, but that’s the best thing about the photo. Sometimes, the best results are based on errors, mistakes, and the unexpected. That’s when you keep your mouth shut and take credit for being innovative, rather than being honest and saying, “Well, there wasn’t any TV, and no power for the computer, so I thought I would screw around with some night photography.”

As for the slides, I have an attachment for my Nikon digital camera that allows me to take photos of slides. However, it lacks the quality of a regular scanner, and adds an odd ‘echo’ quality to the photo, is the only way I can think of it. For most of the shots, this didn’t work. However, for some of my slides, the effect actually added to the shot.

For instance, take a look at the following photo of two crows in a dead tree, taken at Canon Beach, Oregon.

nevermore.jpg

I love the photo – surreal and even a little sinister. Shades of Edgar Allan Poe:

But the raven, sitting lonely on that placid bust, spoke only
That one word, as if his soul in that one word he did outpour.
Nothing further then he uttered; not a feather then he fluttered;
Till I scarcely more than muttered, “Other friends have flown before;
On the morrow he will leave me, as my hopes have flown before.”
Then the bird said, “Nevermore.”

From “The Raven”, Edgar Allan Poe

In fact, my site design for the forpoets.org weblogs is inspired by this photo and the other seaside photos I digitalized using the camera attachment. See? The best laid plans are based on mistakes.

Once I get the Wayward Webloggers feedback on the design, and then port it to all the weblogging tools I’m using, then we’ll be ready to rock and roll.

Speaking of forpoets.org and tools, I also spent a considerable amount of time this weekend tweaking weblogging tools. In fact, tweaking, tweaking, and tweaking. And tweaking, tweaking, and more tweaking. Geez, I can’t tell you how tired I am of tweaking at this point in time!

The WordPress and PMachine weblogs installed with no problems. In fact, pMachine installs more easily than Movable Type in my opinion. However, that was the last easy install. We’re into murky waters from this point on.

I tried Nucleus, but it doesn’t work with MySQL 4.x. I also tried PostNuke, and you can see the installation at Weblogging for Poets. Haven’t a clue how to work it and no matter how I tweaked it, I still can’t figure out exactly what it is. I tried a couple of other weblogging tools, none of which had enough to even comment on.

I also installed, removed, and re-installed Blosxom. Since I want support for comments, I’m using the new beta 2.x release of the product, which supports a plugin concept – writeback is a plugin – and all I can say is: tweak, tweak, tweak. This isn’t a weblogging tool to use ‘right out of the box’. There is no box. I’m about ready to throw in the hat, and go begging at Larry’s door for help at this point.

You can see the current state of the installation at RDF for Poets, and no, it’s not working. I’m still trying to figure out how to incorporate writebacks, which are both comments and trackbacks. The documentation can be read using Perldoc on the source, but there’s still a lot of fragments that have to come together – most of them by guesswork. However, I shall persevere. And beg for help.

I thought about using pyBlosxom for the weblogging subsection, but I’m getting tired of the tweaks. So no go with pyBloxsom, and this also includes foregoing the Zope weblogging tools, though I know I’ll disappoint Rev Matt with this one. No, we’ve reached our tweak quota for the week. Seriously.

I’ll most likely either use Movable Type, or a second installation of pMachine for the remainder of the forpoets.org site. Besides – time to get this show on the road. I want to actually do some writing.