Okay, I put off changing the /album/ file structure for the moment. I need to think more about this. But the new editing has been partially activated. Clicking on the picture id link from any of the image pages (or clicking on an image thumbnail from a thumbnail view image page) now takes you to the new /editpic/ page. This shows the picture along with meta information about the picture. And if the picture is yours it allows you to make some changes (edit name and size) as well as deleting. This script will also allow you to add or edit how the picture appears in different albums, but that is not yet working.
Deleting from this new new /editpic/ script will solve the problem Tom ran into yesterday.
Jim, I cut and pasted the tag for this pic from /treehouse:
When I tried to post it using the number (the old way), it pulled up one of your pics:
And when I pasted the verbal description into a tag after /library/image/12/ I get this:
Please let me know what I'm doing wrong (assuming it's me).
getpic will always work for old images (uploaded under the old system) but does not work for new images. Probably that wasn't the best way to do it, but I didn't really see this problem coming.
When you pasted in the verbal description the system returned the right tag, except it used a lower case 'k' in the filename, when the file actually starts with an upper case 'K'. I have no idea how this could have happened, but I'm looking into it.
Okay, I'm an idiot. I can easily fix it so that getpic works for all pictures. I thought that would break things, but I was wrong.
And Tom, when said you "pasted the verbal description" I thought you meant you posted <[kerry's hair]> - but maybe that's not what you meant. What do you mean by "after /library/image/12/"?
I took a tag I'd just created
< img src="http://www.digitalmediatree.com/library/image/12/bush_walking.JPG" >
And substituted "kerry_s_hair.GIF" for "bush_walking.JPG"
Was the problem that it's case-sensitive and I didn't use a capital K?
Yeah, unix filesystems are case sensitive. Sorry for the convoluted answer, I didn't understand.
getpic now works for all images, old and new. It will continue to work, but we should consider it deprecated. The correct format for posting an image is either <[xxxx]> where xxxx is the picture id number or coding the complete image tag yourself, like:
<img src="/library/image/n/example.jpg">
where n is your user id number and example.jpg is the name of the file.
You can also, probably, get an image to post with:
<[description here]>
where 'description here' is the exact text description you gave the file when uploading. The problem here is that I don't enforce uniqueness for the description, so if there are two or more files with the exact same description you may not get the behavior you want. Still, if you know your description is unique, this way will work as well.
I just noticed that at the moment the image albums are intermingled with other albums and even other users' albums. Here's an example: My Album 13 - Artwork 77 -96 has yours, Dave's and Alex's pics in it, as well as pics from my other albums.
Whoops. That just happened this morning as I was getting getpic to work again.
Fixed now, as far as I can tell. I'd really appreciate you taking a look around though.
And my apologies, as usual, for experimenting on the site in real time. It's for everyone's benefit, but it probably doesn't always seem like that....
No, these are great changes. Being able to save with the same file extension, tweak image sizes, etc... I'll definitely keep poking around as I try out the new features.
|
Deleting from this new new /editpic/ script will solve the problem Tom ran into yesterday.
- jim 3-05-2004 7:49 pm
Jim, I cut and pasted the tag for this pic from /treehouse:
When I tried to post it using the number (the old way), it pulled up one of your pics:
And when I pasted the verbal description into a tag after /library/image/12/ I get this:
Please let me know what I'm doing wrong (assuming it's me).
- tom moody 3-05-2004 9:52 pm [add a comment]
getpic will always work for old images (uploaded under the old system) but does not work for new images. Probably that wasn't the best way to do it, but I didn't really see this problem coming.
When you pasted in the verbal description the system returned the right tag, except it used a lower case 'k' in the filename, when the file actually starts with an upper case 'K'. I have no idea how this could have happened, but I'm looking into it.
- jim 3-05-2004 10:10 pm [add a comment]
Okay, I'm an idiot. I can easily fix it so that getpic works for all pictures. I thought that would break things, but I was wrong.
And Tom, when said you "pasted the verbal description" I thought you meant you posted <[kerry's hair]> - but maybe that's not what you meant. What do you mean by "after /library/image/12/"?
- jim 3-05-2004 10:43 pm [add a comment]
I took a tag I'd just created
< img src="http://www.digitalmediatree.com/library/image/12/bush_walking.JPG" >
And substituted "kerry_s_hair.GIF" for "bush_walking.JPG"
Was the problem that it's case-sensitive and I didn't use a capital K?
- tom moody 3-05-2004 10:51 pm [add a comment]
Yeah, unix filesystems are case sensitive. Sorry for the convoluted answer, I didn't understand.
- jim 3-05-2004 10:57 pm [add a comment]
getpic now works for all images, old and new. It will continue to work, but we should consider it deprecated. The correct format for posting an image is either <[xxxx]> where xxxx is the picture id number or coding the complete image tag yourself, like:
<img src="/library/image/n/example.jpg">
where n is your user id number and example.jpg is the name of the file.
You can also, probably, get an image to post with:
<[description here]>
where 'description here' is the exact text description you gave the file when uploading. The problem here is that I don't enforce uniqueness for the description, so if there are two or more files with the exact same description you may not get the behavior you want. Still, if you know your description is unique, this way will work as well.
- jim 3-06-2004 7:15 pm [add a comment]
I just noticed that at the moment the image albums are intermingled with other albums and even other users' albums. Here's an example: My Album 13 - Artwork 77 -96 has yours, Dave's and Alex's pics in it, as well as pics from my other albums.
- tom moody 3-06-2004 7:45 pm [add a comment]
Whoops. That just happened this morning as I was getting getpic to work again.
Fixed now, as far as I can tell. I'd really appreciate you taking a look around though.
And my apologies, as usual, for experimenting on the site in real time. It's for everyone's benefit, but it probably doesn't always seem like that....
- jim 3-06-2004 8:09 pm [add a comment]
No, these are great changes. Being able to save with the same file extension, tweak image sizes, etc... I'll definitely keep poking around as I try out the new features.
- tom moody 3-06-2004 8:42 pm [add a comment]