🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.graphics.pixutils
Article #710

jpegtorle: JPEG => Utah Raster Toolkit RLE /bin/sh script

#710
From: Rich Thomson
Date: Sun, 03 Nov 1991 01:58
69 lines
2436 bytes
Here is a script for converting in the other direction.

						-- Rich
  ``Read my MIPS -- no new VAXes!!'' -- George Bush after sniffing freon
	    Disclaimer: I speak for myself, except as noted.
UUCP: ...!uunet!dsd.es.com!rthomson			Rich Thomson
Internet: rthomson@dsd.es.com	IRC: _Rich_		PEXt Programmer


#!/bin/sh
#
# jpegtorle [-o outfile] [infile]
#
# JPEG to RLE conversion script
#
# Rich Thomson
# November 2nd, 1991
#
#	   Copyright 1991 by Evans & Sutherland Computer Corporation,
#			      Salt Lake City, Utah
#
#			      All Rights Reserved
#
#     Permission to use, copy, modify, and distribute this software and its
#	documentation for any purpose and without fee is hereby granted,
#     provided that the above copyright notice appear in all copies and that
#	both that copyright notice and this permission notice appear in
#   supporting documentation, and that the names of Evans & Sutherland not be
#       used in advertising or publicity pertaining to distribution of the
#	      software without specific, written prior permission.
#
#   EVANS & SUTHERLAND  DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
#     INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
#     EVENT SHALL EVANS & SUTHERLAND BE LIABLE FOR ANY SPECIAL, INDIRECT OR
#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
#     DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
#	TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
#			 PERFORMANCE OF THIS SOFTWARE.
#
usage()
{
    echo "jpegtorle [-o outfile] [infile]"
    exit 1
}

convert()
{
    djpeg $file | ppmtorle -o $ofile
}

ofile="-"

if [ $# -gt 3 ]; then
    usage
fi

if [ "X$1" = "X-o" ]; then
    shift
    ofile=$1
    shift
fi

if [ $# -gt 1 ]; then
    usage
fi

file=$1

convert
Technical Details
Message-ID: <1991Nov3.015828.28523@dsd.es.com>
Path: arc1-ca.pugleaf.net!wupost!cs.utexas.edu!uunet!orca!mesa.dsd.es.com!rthomson

Show Full Headers
Complete Article Headers
Newsgroups: alt.graphics.pixutils,uu.cs.general,alt.sources
Path: arc1-ca.pugleaf.net!wupost!cs.utexas.edu!uunet!orca!mesa.dsd.es.com!rthomson
From: rthomson@mesa.dsd.es.com (Rich Thomson)
Subject: jpegtorle: JPEG => Utah Raster Toolkit RLE /bin/sh script
Message-ID: <1991Nov3.015828.28523@dsd.es.com>
Originator: rthomson@mesa
Sender: usenet@dsd.es.com
Nntp-Posting-Host: 130.187.85.21
Reply-To: rthomson@mesa.dsd.es.com (Rich Thomson)
Organization: Design Systems Division, Evans & Sutherland, SLC, UT
Date: Sun, 3 Nov 91 01:58:28 GMT