Wednesday, January 26, 2005
I've had a request that I'm asking for input on:

Over on the right I have my "Picture of the Week".

I prefer to have it simply be a link to my picture gallery. But someone asked if it could be a link to the larger version of the picture.

Which would folks prefer?


Comments:
I think it should either link to a larger version of the same picture, or at least the folder where that picture is located in the gallery. You have a link to your picture gallery on the left if I want to go there. Thanks for considering my input. Tracy
 
I agree with Tracy. I love your pictures, but it is just too hard to find the one you want to see bigger. Also, If you put the date on the folders it would be nice.
 
I would like it to be an actual thumbnail, so that it doesn't take 3 seconds to load on a high-speed connection.

I agree that it should link to the picture itself (probably within the lucida context) - but that is harder, so I will forgive you if you don't do it.

Regarding Christi's request about the date, that can be had in the EXIF data (but Brian has to turn it on).
--
Caleb
 
Caleb: actually, linking to the picture in Lucida is easier than having it be a thumbnail. I'd have to select the picture, then manually resize it, and then save the thumbnail somewhere. I know Lucida makes thumbnails but trying to find the specific picture is a bit of a needle and haystack situation...

I know, I know, on your website you have a script that runs that throws up thumbs. But I want to pick and choose the POTW. Unless you've got an idea how to do it my way... :)
 
Okay, somewhere you script "knows" where that picture is. You just have to adjust your link such that it refers to that same location.

Or, you could cut off the image to just go to the folder that contains the image as someone suggested above.

example:
Todays pic is:
http://bamoon.com/pictures/Portland.cityscapes/No.70.Sellwood.jpg

you could parse out the parts you need
1. dump "http://bamoon.com/pictures/" off the front (I assume all the pics have the same relatvie path)
2. extract the important parts
a. $album=Portland.cityscapes
b. $image=No.70.Sellwood.jpg
3. Put it all together in a link
to image: href=\"http://bamoon.com/pics/view.php?image=%2F" . $album . "%2F" . $image .\"
to folder: href=\"http://bamoon.com/pics/index.php?view=browse&gallery=%2F" . $album . \"

Would need some bug checking and obviousely you would need to whip up some code to pars out the parts you don't need but theres my vision.
k
 
Right right, then you could even get a little more clever and to pull it from the lucida cache use this code (found in the lucida source):

// thumb for thumb, other things for other things ;)
$size = "thumb"
// calculate the hash
$hash = dechex(crc32($path.filemtime($path).filesize($path)));
// determine the actual filename
$filename = $settings["cachedir"]."/$size{$hash}.jpg";

$settings["cachedir"] is a lucida setting, it should be replaced with the cache-dir (a relative path).

--
Caleb
 
prolly want some logic to make sure the cached thumb exists and if not, generate it (this can also be found in the lucida source (in the image class))

Of course, you could skip that bit and just make sure you run the cache building tool in lucida before you use a pic.

--
Caleb
 
Thanks to Ken and Caleb for the advice on scripting my POTW! Now I have no excuses :( I hate when that happens...

I didn't think this would work but I turned on EXIF data in Lucida. However, my camera is old and doesn't produce EXIF data. Also, I think that what Christi was looking for was dates on the *folders*, not the pictures. I could be wrong, though, mainly because I don't know what that would do. I could rename the folders to include dates but that might break other links in my blog.
 
Post a Comment

<< Home