Subject:
|
Re: Thumbnail menu CGI script
|
Newsgroups:
|
lugnet.off-topic.geek
|
Date:
|
Fri, 19 Jan 2001 16:39:36 GMT
|
Viewed:
|
231 times
|
| |
| |
Another way to get the information is to go to ${folder}/thumb
where ${folder} is the path to the actual images.
In that folder is the actual thumbnail files and a file called
.sizecache. .sizecache contains one line for each thumbnail
in the format:
${realfilename} ${thumbfilename} ${width} ${height}
So it might be easier to just grab ${folder}/thumb/.sizecache
and parse that.
An example is this:
http://www.brickshelf.com/gallery/Ben/Test/thumb/
.sizecache:
1train19.jpg 1train19.jpg_thumb.jpg 128 96
block_control_sheme.gif block_control_sheme.gif_thumb.jpg 124 128
bs_loewe.jpg bs_loewe.jpg_thumb.jpg 128 128
bwm_promotional_stone.jpg bwm_promotional_stone.jpg_thumb.jpg 128 36
muelheim_leute.jpg muelheim_leute.jpg_thumb.jpg 128 78
KL
In lugnet.off-topic.geek, Kevin Loch writes:
> I still have no idea what he is trying to do. When you
> access a brickshelf folder it gives you an html page that contains
> links to all of the thumbnail images. You just have to extract them
> from the html. That would be trivial because the thumbnail images
> are linked one per line and the format of those lines is always the same.
> You even get the width and height of the thumbnail.
>
> What more do you need?
>
> KL
>
> In lugnet.off-topic.geek, Dan Boger writes:
> > On Fri, Jan 19, 2001 at 04:37:48AM +0000, Bram Lambrecht wrote:
> > > In lugnet.off-topic.geek, I wrote:
> > > > Hmm, seems like it wouldn't be too hard to make a script that lists of all the
> > > > images in a Brickshelf folder if that script was running on the Brickshelf
> > > > server...
> > >
> > > If you don't have time to / don't want to do this, Kevin, no big deal. I'll
> > > just host the images myself.
> >
> > writing a brickshelf specific script should be really easy, if you want it
> > to generate a listing of a folder - however, I'd ask kevin for permission
> > before launching such a script - it's considered impolite to run such
> > scripts without asking first...
> >
> > :)
|
|
Message has 1 Reply:
Message is in Reply To:
| | Re: Thumbnail menu CGI script
|
| I still have no idea what he is trying to do. When you access a brickshelf folder it gives you an html page that contains links to all of the thumbnail images. You just have to extract them from the html. That would be trivial because the thumbnail (...) (24 years ago, 19-Jan-01, to lugnet.off-topic.geek)
|
11 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|