To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publishOpen lugnet.publish in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / 587
586  |  588
Subject: 
Re: Server Stats
Newsgroups: 
lugnet.publish
Date: 
Sat, 17 Jul 1999 02:43:02 GMT
Viewed: 
1145 times
  
The complete script is about 150 lines of code, here's the basic
idea:


djpeg -pnm ${filename}.jpg > ${filename}.pnm
# (or if it's a gif use gif2pnm)
ppmscale -xysize 128 128 ${filename}.pnm > ${filename}_thumb.pnm
cjpeg ${filename}_thumb.pnm > ${filename}_thumb.jpg
rm -f ${filename}*.pnm

- djpeg and cjpeg are part of the jpeg package
- ppmscale is from the netpbm package (both are freeware that
compiles     on unix).
- pnm files are the "Portable Anymap" file format.
- "-xysize 128 128" automatically chooses the thumbnail size to
   fit within a 128 by 128 pixel box while keeping the original aspect
   ratio (cool!).

KL

John DiRienzo wrote:

  Hi Kevin,
   I think 24 is a good number of thumbs per page.  However, I think you
should have 4 columns by six rows, to avoid horizontal scrolling on small
screens.  Also, I wondered how you made these thumbs?

--
   Have fun!
   John
AUCTION Page (15 Sealed Space sets!)
http://members.ebay.com/aboutme/2-many-toys/
TRADE Page http://www114.pair.com/ig88/lego/index.htm
MOC,CA[cl,bf,cr,fm,bk+++ wp,dm,rk,df++ fk-]++++(6035)
SW,TR,old(456)+++ TO++ PI,SP+ DU-- #+++++
ig88888888@stlnet.com & IG88888888 on AOL
Kevin Loch wrote in message <378E276F.5C5C@NOSPMkl.net>...
Oops, I forgot to give the url for the server stats:

http://www.kl.net/scans/Stats

KL

Kevin Loch wrote:

Just for grins, I did a quick and dirty Server Statistics
page that updates every 5 minutes.  It only has statistics
for the current day, no cumulative of historical data yet.
Also, no FTP data yet.  I think the next interesting piece
of data to have would be GB/day.

Also:

I am playing around with splitting the indexes up into multiple
pages for the higher level indexes (not the sets).
How many thumbnails do think there should be per page?
Currently it is 24, or 4 rows of six.

KL



Message is in Reply To:
  Re: Server Stats
 
Hi Kevin, I think 24 is a good number of thumbs per page. However, I think you should have 4 columns by six rows, to avoid horizontal scrolling on small screens. Also, I wondered how you made these thumbs? -- Have fun! John AUCTION Page (15 Sealed (...) (25 years ago, 16-Jul-99, to lugnet.publish)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR