[comp.sys.sgi] login icons: summary

Claude.P.Cantin@nrc.ca (10/11/90)

Last week I asked how login icons could be created.  I got a number of
answers.  What follows is ideas presented in the answers received.  All
those work and are very good.

Icons are EASY to make, especially using "snapshot", then ipaste to
display in to see how it looks...


1. gif images can be ftp'ed from the anonymous account at 128.194.27.6.
   On those files, use the "fromgif" utility, posted on the discussion
   list a few weeks ago.

2. /usr/people/4Dgifts/iristools/imgtools contains MANY image manipulation
   utilities.  Go in the directory and "make" all of them.  They are
   useful to resize images, saturate them with colours, etc...  I
   mostly used "izoom"...

3. Use "snapshot" to take a portion of an image and store it into another.
   It is an excellent utility that I used to create most of my icons.

4. Many resident images can be displayed on the screen.  Look at the
   NeWS demo directory (/usr/NeWS/demo) and type "imagedemo".  Or from
   the demochest.  Then use "snapshot" to capture part of an image, or
   the entire one. and put the reslu

5. To get the login icon, put the file (must be an icon at MOST 100 X 100
   pixels) in either /usr/local/lib/faces/logon, or in
   $HOME/.4sight/icons/login.icon

6. You could create your own image using quickpaint, then use "snapshot"...



A special thank to all who responded:

Peter Jaspers-Fayer (SOFPJF@VM.UoGuelph.CA)
Rober Briber (rbriber@poly1.nist.gov)
Eugene Gholz (eugholz@athena.mit.edu)
Brent L. bates (blbates@aero4.larc.nasa.gov)
Charles Foley (foley@iris03.niehs.nih.gov)
Loki Jorgenson (loki@physics.mcgill.ca)
Scott Drellshak (sfd@ocf.berkeley.edu)


       Claude Cantin (cantin@vm.nrc.ca, cantin@nrccsb3.di.nrc.ca, and more...)

gavin@krypton.asd.sgi.com (Gavin A. Bell) (10/12/90)

I got tired of trying to figure out what arguments to give to izoom to
get the images under 100 x 100 pixels, so I wrote this little shell
script which allows you to specify the size of the new image in
pixels.

--- Save the following stuff in a file called 'zoom',
--- then chmod +x zoom
#!/bin/sh

# Script to take an image and zoom it to a specific size
# Arguments:
#   zoom img newimg xsize ysize

if test $# -ne 4 ; then
	echo "Usage: " $0 " image new_image xsize ysize"
	exit 1
fi

img=$1
imgnew=$2
newx=$3
newy=$4

xsize=`istat $img | grep -v xsize | cut -c1-5`
ysize=`istat $img | grep -v xsize | cut -c7-12`

xscale=`bc -l << EOF
$newx/$xsize
EOF
`
yscale=`bc -l << EOF
$newy/$ysize
EOF
`

echo "Executing command:"
echo "\t" izoom $img $imgnew $xscale $yscale
izoom $img $imgnew $xscale $yscale
echo "Done."

------------END OF LINES TO BE SAVED
--
--gavin     (gavin@sgi.com,  (415)335-1024)

ciemo@bananapc.wpd.sgi.com (Dave Ciemiewicz) (10/12/90)

In article <1990Oct11.180838.24211@odin.corp.sgi.com>, gavin@krypton.asd.sgi.com (Gavin A. Bell) writes:
|> I got tired of trying to figure out what arguments to give to izoom to
|> get the images under 100 x 100 pixels, so I wrote this little shell
|> script which allows you to specify the size of the new image in
|> pixels.
|> 

Like Gavin, I've written one too.  A little simpler though and pushing
the brunt of the work on nawk.

|> --- Save the following stuff in a file called 'zoom',
|> --- then chmod +x zoom

#!/bin/sh
# Script to take an image and zoom it to a specific size
# Arguments:
#   zoom img newimg xsize ysize

if test $# -ne 4 ; then
    echo "Usage: " $0 " image new_image xsize ysize" 1>&2 # send usage to stderr
    exit 2
fi

img=$1
imgnew=$2
newx=$3
newy=$4

istat $img | nawk '
{
    if (NR == 2) {
        system("izoom '$img' '$imgnew' " 'newx' / $2 " " 'newy' / $2);
    }
}'
~