#!/sbin/sh # #/web_disc/ccp14/cron_scripts/sysinfo/wap2.script # http://srscss3.dl.ac.uk/status/status.asp # ImageMagick display and animate # command line: combine, convert, identify, import, mogrify and montag # # djpeg - part of JPEG Library software #sv1 317% djpeg -h #usage: djpeg [switches] [inputfile] #Switches (names may be abbreviated): # -colors N Reduce image to no more than N colors # -fast Fast, low-quality processing # -grayscale Force grayscale output # -scale M/N Scale output image by fraction M/N, eg, 1/8 # -bmp Select BMP output format (Windows style) # -gif Select GIF output format # -os2 Select BMP output format (OS/2 style) # -pnm Select PBMPLUS (PPM/PGM) output format (default) # -targa Select Targa output format #Switches for advanced users: # -dct int Use integer DCT method (default) # -dct fast Use fast integer DCT (less accurate) # -dct float Use floating-point DCT method # -dither fs Use F-S dithering (default) # -dither none Don't use dithering in quantization # -dither ordered Use ordered dither (medium speed, quality) # -map FILE Map to colors used in named image file # -nosmooth Don't use high-quality upsampling # -onepass Use 1-pass quantization (fast, low quality) # -maxmemory N Maximum memory to use (in kbytes) # -outfile name Specify name for output file # -verbose or -debug Emit debug output # #convert -help #Version: @(#)ImageMagick 5.1.1 00/02/01 Q:8 cristy@mystic.es.dupont.com #Copyright: Copyright (C) 2000 ImageMagick Studio #Usage: convert [options ...] file [ files... ] output_file # #Here is a list of image formats recognized by ImageMagick. Mode 'rw+' #means ImageMagick can read, write, and save more than one image of a #sequence to the same blob or file. # # Format Mode Description #------------------------------------------------------------------------- # 8BIM* rw- Photoshop resource format # AVS* rw+ AVS X image # BMP* rw+ Microsoft Windows bitmap image # BMP24* rw+ Microsoft Windows 24-bit bitmap image # CMYK* rw- Raw cyan, magenta, yellow, and black bytes # DCM* r-- Digital Imaging and Communications in Medicine image # DCX* rw+ ZSoft IBM PC multi-page Paintbrush # DIB* rw+ Microsoft Windows bitmap image # EPDF* rw- Encapsulated Portable Document Format # EPI* r-- Adobe Encapsulated PostScript Interchange format # EPS* rw- Adobe Encapsulated PostScript # EPS2* rw- Adobe Level II Encapsulated PostScript # EPSF* rw- Adobe Encapsulated PostScript # EPSI* rw- Adobe Encapsulated PostScript Interchange format # EPT* rw- Adobe Encapsulated PostScript with TIFF preview # FAX* rw+ Group 3 FAX # FITS* rw- Flexible Image Transport System # G3* r-- Group 3 FAX # GIF* rw+ CompuServe graphics interchange format # GIF87* rw- CompuServe graphics interchange format (version 87a) # GRADATION* r-- Gradual passing from one shade to another # GRANITE* rw- Granite texture # GRAY* rw+ Raw gray bytes # H* rw- Internal format # HISTOGRAM* rw- Histogram of the image # HTM* -w- Hypertext Markup Language and a client-side image map # HTML* -w- Hypertext Markup Language and a client-side image map # ICB* rw+ Truevision Targa image # ICC* rw- ICC Color Profile # ICO* r-- Microsoft icon # IMPLICIT* --- Internal format # IPTC* rw- IPTC Newsphoto # LABEL* r-- Text image format # LOGO* rw- ImageMagick Logo # MAP* rw- Colormap intensities and indices # MATTE* rw+ Matte format # MIFF* rw+ Magick image format # MONO* rw- Bi-level bitmap in least-significant-byte first order # MTV* rw+ MTV Raytracing image format # NETSCAPE* rw- Netscape 216 color cube # NULL* r-- NULL image # P7* rw+ Xv thumbnail format # PBM* rw+ Portable bitmap format (black and white) # PCD* rw- Photo CD # PCDS* rw- Photo CD # PCL* rw- Page Control Language # PCT* -w- Apple Macintosh QuickDraw/PICT # PCX* rw- ZSoft IBM PC Paintbrush # PDF* rw+ Portable Document Format # PIC* rw- Apple Macintosh QuickDraw/PICT # PGM* rw+ Portable graymap format (gray scale) # PICT* rw- Apple Macintosh QuickDraw/PICT # PICT24* rw- 24-bit Apple Macintosh QuickDraw/PICT # PIX* r-- Alias/Wavefront RLE image format # PLASMA* r-- Plasma fractal image # PM* rw- X Windows system pixmap (color) # PNM* rw+ Portable anymap # PPM* rw+ Portable pixmap format (color) # PREVIEW* -w- Show a preview an image enhancement, effect, or f/x # PS* rw+ Adobe PostScript # PS2* -w+ Adobe Level II PostScript # PS3* -w+ Adobe Level III PostScript # PSD* rw- Adobe Photoshop bitmap # PWP* r-- Seattle Film Works # RAS* rw+ SUN Rasterfile # RGB* rw+ Raw red, green, and blue bytes # RGBA* rw+ Raw red, green, blue, and matte bytes # RLA* r-- Alias/Wavefront image # RLE* r-- Utah Run length encoded image # SCT* r-- Scitex HandShake # SFW* r-- Seattle Film Works # SGI* rw+ Irix RGB image # SHTML* -w- Hypertext Markup Language and a client-side image map # STEGANO* r-- Steganographic image # SUN* rw+ SUN Rasterfile # TEXT* rw+ Raw text # TGA* rw+ Truevision Targa image # TILE* r-- Tile image with a texture # TIM* r-- PSX TIM # TXT* rw+ Raw text # UIL* rw- X-Motif UIL table # UYVY* rw- 16bit/pixel interleaved YUV # VDA* rw+ Truevision Targa image # VICAR* rw- VICAR rasterfile format # VID* rw+ Visual Image Directory # VIFF* rw+ Khoros Visualization image # VST* rw+ Truevision Targa image # WBMP* rw- Wireless Bitmap (level 0) image # X* rw- X Image # XBM* rw- X Windows system bitmap (black and white) # XC* r-- Constant image of X server color # XPM* rw- X Windows system pixmap (color) # XV* rw+ Khoros Visualization image # XWD* rw- X Windows system window dump (color) # YUV* rw- CCIR 601 4:1:1 # # #sabwbmp #Usage: # sabwbmp [Options] input_file output_file # Options: # -d Outputs info about BMP and WBMP files # -r Filter out red. # -g Filter out green. # -b Filter out blue. # -t # # between 0-100: if colour is RGB then # if R+G+B greater than # percent then pixel # is set to white. /sbin/killall -9 snarf3 wait cd /web_disc/ccp14/cron_scripts/sysinfo rm -f /web_disc/ccp14/cron_scripts/sysinfo/status.jpg wait /usr/local/bin/snarf3 -q -n http://accelerator.dl.ac.uk/srsinfo/status.jpg wait #Run djpeg (part of the JPG library) and rescale to 88 pixels on the X-axis and convert to a 2 colour BMP file. /usr/local/bin/djpeg -scale 88/640 -bmp -colors 2 -grayscale /web_disc/ccp14/cron_scripts/sysinfo/status.jpg > /web_disc/ccp14/cron_scripts/sysinfo/status2.bmp wait /usr/local/bin/sabwbmp -b -t 20 /web_disc/ccp14/cron_scripts/sysinfo/status2.bmp /web_disc/ccp14/cron_scripts/sysinfo/status.wbmp wait cat /web_disc/ccp14/cron_scripts/sysinfo/wap2_head.txt > wap2_index.wml wait cat /web_disc/ccp14/cron_scripts/sysinfo/info2.txt >> wap2_index.wml wait cat /web_disc/ccp14/cron_scripts/sysinfo/wap2_tail.txt >> wap2_index.wml wait cp /web_disc/ccp14/cron_scripts/sysinfo/wap2_index.wml /web_disc/ccp14/web_area/ wap2/index.wml wait cp /web_disc/ccp14/cron_scripts/sysinfo/status.wbmp /web_disc/ccp14/web_area/wap 2/