EzTerry's Ramblings

Content for /dev/null

RecipeWare Chef

Sun, 2004 Mar 28, 21:57:
RecipeWare_Chef's Thumbnail
Full Size
This is a small sketch of a chef. I made it for a RecipeWare web app that we are making in my Software engineering class. I think the drawing came out quite well. That and I think the web app will be crap.. even if we make the thing the best it can be. (Just an opinion though)

gallerythumbs - v0.01

Sun, 2004 Mar 28, 00:35:

First release of gallerythumbs. I think it works decently well. (makes posting entries based on an image very easy) Now my next step is to install it on this blog, as well as my photo blog. (however to do this I have re arrange my art section)


gallerythumbs :: Blosxom plugin

Sat, 2004 Mar 27, 23:56:

This blosxom plugin is designed to add a thumbnail of an image related to a story to the beginning of an entry.

An Example

How to use the plugin

To use this plugin you just need an image in the same directory, with the same file name (sans the extension) as the story entry. The plugin will create a thumbnail, and display it prior to the story.

This means if you want to write an entry on foo.jpg, all you do is put it in your blog, and add a corresponding foo.txt with the title and any description you want to give the image.


To install the plugin, put it in the plugin directory, edit the maximum size (of the thumbnail) and file type variable at the top of the file. The file type is the type of file the thumbnails should be assuming your content is photos jpeg is probably the best file type. This value is also used as the Content type argument ie. image/<filetype>.

For every flavor that you want the thumbnail visible you need to have a thumbnail.flavor with information about how to display the thumbnail. An example flavor (and actually what I use on my photo gallery) is in the codes documentation, as well as in the link below.

This plugin requires the Image::Magick perl module (know as perlmagick)

Other Features

While this plugin generates the thumbnails on demand it saves them in the state directory for future viewers. The thumbnail is generated when someone loads a page with the attached story. Anytime after it it generated a request for storyname.tmb will return the image.

To make sure we don't have thumbnails to images that don't exist. When we need to generate a new thumbnail, we check that the original file for all existing thumbnails exists, if not we delete that file.

The code is designed so that when you change the settings, ether the thumbnail size, or filetype. it knows to invalidate (ie. delete) existing thumbnails, and regenerate them on demand.

If you change/edit and image in place on your blog, (ie. has the same file name) the thumbnail will not update.. my recommendation is to move the thumbnail and entry to filename+tmp, load it in your browser, then move it back.

This plugin will only work in dynamic generation, or hybrid mode. The blosxom code must be run to send back the thumbnail. However since this is done during the start function, sending the thumbnail should be relatively fast on even a large blog.

Current Code 
Version Blog
Sample Flavor

The sample flavor requires both the binary (or clone) and rellink plugins. The binary is used to send the original file with the Full size link. rellink allows the files to be locally defined (you can use blosxom variables to make the links work w/o rellink).

Also remember to name the flavor thumbnail.<flavor> (probably you will want to make two copies of this file, thumbnail.html and thumnail.rss, remember to make a copy for any comments/writeback flavor if needed.

The actual code will also need to be renamed from gallerythumbs-v*.**.code to just gallerythumbs.

If you have any problems please comment on this post.

rellink - v0.03

Sat, 2004 Mar 27, 21:04:

Fixed Support for multi-line tags (was not always matching)

If &'s are already escaped, with make sure its not re-escaped.

Gave a better URL for the google link example


Boy (2)

Thu, 2004 Mar 25, 23:33:
boy2's Thumbnail
Full Size
Another sketch on an index card, this time of a cute boy sitting.

Boy (1)

Thu, 2004 Mar 25, 23:29:
boy1's Thumbnail
Full Size
So I've decided to makes some simple sketches on index cards, perhaps use them for future drawings. And at least improve my drawing skills. Here is the first of these Index Card sketches.

Mac Sleazy

Sun, 2004 Mar 07, 00:13:
So the other day, I was show this interesting sight called Mac Sleazy: X-rated Mac Erotica.

Some of my favorite parts are the Sandwich page, and the Love story. Over all a very silly idea though.


Thu, 2004 Mar 04, 21:02:
Well now I have comments enabled on this blog!!!

I'm using the comments plugin. however to get it to do everything I wanted, including: not needing another flavor, ignoring html, and emailing me when someone posts a comment/trackback took a while, and plenty of modifications. I only hope the work was worth it.


Wed, 2004 Mar 03, 00:06:
Colored pencil on paper

Legith is an idea from a game I was planning out, despite the idea falling through here is the image of a character. He is a Thiix (an alien race of humanoids that are very elf like). I will hopefully eventually pick up the project again.

Desktop Sizes:
Unless otherwise noted, material on this sight is licensed under the Creative Commons Licence
Sun Mon Tue Wed Thu Fri Sat
Terrence Ezrol
Powered by Blosxom Valid HTML 4.01 Valid CSS!