Home » Archimedes archive » Acorn User » AU 1998-03 B.adf » StarInfo » Tanner/!Png2Spr/!Help

Tanner/!Png2Spr/!Help

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1998-03 B.adf » StarInfo
Filename: Tanner/!Png2Spr/!Help
Read OK:
File size: 1272 bytes
Load address: 0000
Exec address: 0000
File contents
!PNG2SPR
========

(c) T. R. Tanner
6 The Mallards, Hemel Hempstead, Herts HP3 9DP

email ttehtann@argonet.co.uk


This program allows conversion of graphics in the new "PNG" format to Acorn
sprite files, and vice versa. Note that due to the Acorn sprite formats, the
program converts 16 bit RGB colours to 8 bit RGB colours. Also, transparency is
an on / off mask.

The PNG web pages (specifications & example files) are to be found at
http://www.cdrom.com/pub/png/

To convert a PNG file (type B60), double click the file, or drop the file onto
the program icon on the icon bar. To save the file when converted, click the
menu button over the displayed picture, and drag the sprite to where you want
to save it, or type in a path name and click OK.

To convert a sprite to a PNG file, drop the sprite onto the iconbar icon.
Currently there are no conversion options, apart from the "Use Gamma" item on
the iconbar menu - if this is ticked, the file is given a gamma correction of
1 / 1.8 (the inverse of my guess at the gamma value for my monitor!).

Icon Bar Menu:

Info		Standard useless program info

Single Task	When ticked. the program does not release control to the wimp.
		It therefore converts faster (but you can't do anything else!).
		Off by default.

Use Scale	When ticked, the program uses the "pHYS" chunk in the file (if
		supplied) to scale the picture. NOTE: The size is not
		guaranteed - I will supply some method of configuring real
		pixel sizes in a later version. On by default.

Use Gamma	When ticked, the program uses the "gAMA" chunk in the file (if
		supplied) to apply gamma correction. On by default.

Viewer Mode	When ticked, supresses queries about unsaved files on closing /
		quitting

Transparency	When clicked, brings up a screen allowing you to select
		transparency options, as follows:
		Ignore		Ignore transparency / alpha channels (all pixels
				considered opaque).
		Create mask	Create a mask (pixels whose opacity is less
				than the slider value are considered
				transparent).
		Use Background
		in bKGD chunk	If bKGD chunk supplied, use it. Otherwise
				use the colour selected by the button.
		Use specified
		colour		Always use the colour selected by the button.

Save Options	Save the above state of ticks above for the next time you run
		the program.

Quit		No prizes for guessing the effect of this one!

The program supports the Acorn desktop save and help protocols.

Known Bugs:
-----------
	Masks are not converted from 8bpp sprite files to PNG files (mainly
	because I'd probably have to produce a truecolour image)
	sBIT is not dealt with, so converting a 32k sprite to a PNG and back to
	a sprite results in a 16M colour sprite.

Future Enhancements:
--------------------
1	Allow specification of compression & interlacing when converting
	sprite files.
2	Tidy up interface (again)
3	Convert Acorn masks on 8bpp sprites
4	Lots of others which are in the source code...

Tedious legal message
=====================

   This application is freeware. It can be distributed freely as long as only
reasonable charges are made for media and distribution. I retain copyright on
all program code and documentation contained in this distribution.

   This software is supplied �as�is�: I make no warranty, expressed or
implied, of the merchantability of this software or its �tness for any
particular purpose. In no circumstances shall I be liable for any damage,
loss of pro�ts, or any indirect or consequential loss arising out of the use
of this software or inability to use this software, even if I have been
advised of the possibility of such loss.

   In other words, if your computer crashes, blows up, you lose all your work
etc. all because of !Png2Spr, don�t blame me.

Acknowledgments
---------------

Thanks are due to:

Greg Roelofs, for being helpful

Nick Smith, ANT Ltd, for sending me the official PNG sprites and pointing out
that I can't spell my own name.

Nick Roberts ("tigger@argonet.co.uk") for using the program and making some
suggestions to improve it.

Stewart Brodie for doing much the same

The producers of the Zlib & PNG support libraries

Copyrights
==========

The PNG support library (libpng) is copyright as follows:
   Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
   Copyright (c) 1996, 1997 Andreas Dilger
   Guy Eric Schalnat, Group 42, Inc.
   Contributing Authors:
      John Bowler
      Sam Bushell
      Kevin Bracey
      Andreas Dilger
      Magnus Holmgren
      Dave Martindale
      Greg Roelofs
      Guy Eric Schalnat
      Paul Schmidt
      Tom Tanner
      Tim Wegner

The inflate / deflate support library (zlib) is copyright as follows:
   Copyright (c) 1995-1996 Jean-loup Gailly and Mark Adler
00000000  21 50 4e 47 32 53 50 52  0a 3d 3d 3d 3d 3d 3d 3d  |!PNG2SPR.=======|
00000010  3d 0a 0a 28 63 29 20 54  2e 20 52 2e 20 54 61 6e  |=..(c) T. R. Tan|
00000020  6e 65 72 0a 36 20 54 68  65 20 4d 61 6c 6c 61 72  |ner.6 The Mallar|
00000030  64 73 2c 20 48 65 6d 65  6c 20 48 65 6d 70 73 74  |ds, Hemel Hempst|
00000040  65 61 64 2c 20 48 65 72  74 73 20 48 50 33 20 39  |ead, Herts HP3 9|
00000050  44 50 0a 0a 65 6d 61 69  6c 20 74 74 65 68 74 61  |DP..email ttehta|
00000060  6e 6e 40 61 72 67 6f 6e  65 74 2e 63 6f 2e 75 6b  |nn@argonet.co.uk|
00000070  0a 0a 0a 54 68 69 73 20  70 72 6f 67 72 61 6d 20  |...This program |
00000080  61 6c 6c 6f 77 73 20 63  6f 6e 76 65 72 73 69 6f  |allows conversio|
00000090  6e 20 6f 66 20 67 72 61  70 68 69 63 73 20 69 6e  |n of graphics in|
000000a0  20 74 68 65 20 6e 65 77  20 22 50 4e 47 22 20 66  | the new "PNG" f|
000000b0  6f 72 6d 61 74 20 74 6f  20 41 63 6f 72 6e 0a 73  |ormat to Acorn.s|
000000c0  70 72 69 74 65 20 66 69  6c 65 73 2c 20 61 6e 64  |prite files, and|
000000d0  20 76 69 63 65 20 76 65  72 73 61 2e 20 4e 6f 74  | vice versa. Not|
000000e0  65 20 74 68 61 74 20 64  75 65 20 74 6f 20 74 68  |e that due to th|
000000f0  65 20 41 63 6f 72 6e 20  73 70 72 69 74 65 20 66  |e Acorn sprite f|
00000100  6f 72 6d 61 74 73 2c 20  74 68 65 0a 70 72 6f 67  |ormats, the.prog|
00000110  72 61 6d 20 63 6f 6e 76  65 72 74 73 20 31 36 20  |ram converts 16 |
00000120  62 69 74 20 52 47 42 20  63 6f 6c 6f 75 72 73 20  |bit RGB colours |
00000130  74 6f 20 38 20 62 69 74  20 52 47 42 20 63 6f 6c  |to 8 bit RGB col|
00000140  6f 75 72 73 2e 20 41 6c  73 6f 2c 20 74 72 61 6e  |ours. Also, tran|
00000150  73 70 61 72 65 6e 63 79  20 69 73 0a 61 6e 20 6f  |sparency is.an o|
00000160  6e 20 2f 20 6f 66 66 20  6d 61 73 6b 2e 0a 0a 54  |n / off mask...T|
00000170  68 65 20 50 4e 47 20 77  65 62 20 70 61 67 65 73  |he PNG web pages|
00000180  20 28 73 70 65 63 69 66  69 63 61 74 69 6f 6e 73  | (specifications|
00000190  20 26 20 65 78 61 6d 70  6c 65 20 66 69 6c 65 73  | & example files|
000001a0  29 20 61 72 65 20 74 6f  20 62 65 20 66 6f 75 6e  |) are to be foun|
000001b0  64 20 61 74 0a 68 74 74  70 3a 2f 2f 77 77 77 2e  |d at.http://www.|
000001c0  63 64 72 6f 6d 2e 63 6f  6d 2f 70 75 62 2f 70 6e  |cdrom.com/pub/pn|
000001d0  67 2f 0a 0a 54 6f 20 63  6f 6e 76 65 72 74 20 61  |g/..To convert a|
000001e0  20 50 4e 47 20 66 69 6c  65 20 28 74 79 70 65 20  | PNG file (type |
000001f0  42 36 30 29 2c 20 64 6f  75 62 6c 65 20 63 6c 69  |B60), double cli|
00000200  63 6b 20 74 68 65 20 66  69 6c 65 2c 20 6f 72 20  |ck the file, or |
00000210  64 72 6f 70 20 74 68 65  20 66 69 6c 65 20 6f 6e  |drop the file on|
00000220  74 6f 0a 74 68 65 20 70  72 6f 67 72 61 6d 20 69  |to.the program i|
00000230  63 6f 6e 20 6f 6e 20 74  68 65 20 69 63 6f 6e 20  |con on the icon |
00000240  62 61 72 2e 20 54 6f 20  73 61 76 65 20 74 68 65  |bar. To save the|
00000250  20 66 69 6c 65 20 77 68  65 6e 20 63 6f 6e 76 65  | file when conve|
00000260  72 74 65 64 2c 20 63 6c  69 63 6b 20 74 68 65 0a  |rted, click the.|
00000270  6d 65 6e 75 20 62 75 74  74 6f 6e 20 6f 76 65 72  |menu button over|
00000280  20 74 68 65 20 64 69 73  70 6c 61 79 65 64 20 70  | the displayed p|
00000290  69 63 74 75 72 65 2c 20  61 6e 64 20 64 72 61 67  |icture, and drag|
000002a0  20 74 68 65 20 73 70 72  69 74 65 20 74 6f 20 77  | the sprite to w|
000002b0  68 65 72 65 20 79 6f 75  20 77 61 6e 74 0a 74 6f  |here you want.to|
000002c0  20 73 61 76 65 20 69 74  2c 20 6f 72 20 74 79 70  | save it, or typ|
000002d0  65 20 69 6e 20 61 20 70  61 74 68 20 6e 61 6d 65  |e in a path name|
000002e0  20 61 6e 64 20 63 6c 69  63 6b 20 4f 4b 2e 0a 0a  | and click OK...|
000002f0  54 6f 20 63 6f 6e 76 65  72 74 20 61 20 73 70 72  |To convert a spr|
00000300  69 74 65 20 74 6f 20 61  20 50 4e 47 20 66 69 6c  |ite to a PNG fil|
00000310  65 2c 20 64 72 6f 70 20  74 68 65 20 73 70 72 69  |e, drop the spri|
00000320  74 65 20 6f 6e 74 6f 20  74 68 65 20 69 63 6f 6e  |te onto the icon|
00000330  62 61 72 20 69 63 6f 6e  2e 0a 43 75 72 72 65 6e  |bar icon..Curren|
00000340  74 6c 79 20 74 68 65 72  65 20 61 72 65 20 6e 6f  |tly there are no|
00000350  20 63 6f 6e 76 65 72 73  69 6f 6e 20 6f 70 74 69  | conversion opti|
00000360  6f 6e 73 2c 20 61 70 61  72 74 20 66 72 6f 6d 20  |ons, apart from |
00000370  74 68 65 20 22 55 73 65  20 47 61 6d 6d 61 22 20  |the "Use Gamma" |
00000380  69 74 65 6d 20 6f 6e 0a  74 68 65 20 69 63 6f 6e  |item on.the icon|
00000390  62 61 72 20 6d 65 6e 75  20 2d 20 69 66 20 74 68  |bar menu - if th|
000003a0  69 73 20 69 73 20 74 69  63 6b 65 64 2c 20 74 68  |is is ticked, th|
000003b0  65 20 66 69 6c 65 20 69  73 20 67 69 76 65 6e 20  |e file is given |
000003c0  61 20 67 61 6d 6d 61 20  63 6f 72 72 65 63 74 69  |a gamma correcti|
000003d0  6f 6e 20 6f 66 0a 31 20  2f 20 31 2e 38 20 28 74  |on of.1 / 1.8 (t|
000003e0  68 65 20 69 6e 76 65 72  73 65 20 6f 66 20 6d 79  |he inverse of my|
000003f0  20 67 75 65 73 73 20 61  74 20 74 68 65 20 67 61  | guess at the ga|
00000400  6d 6d 61 20 76 61 6c 75  65 20 66 6f 72 20 6d 79  |mma value for my|
00000410  20 6d 6f 6e 69 74 6f 72  21 29 2e 0a 0a 49 63 6f  | monitor!)...Ico|
00000420  6e 20 42 61 72 20 4d 65  6e 75 3a 0a 0a 49 6e 66  |n Bar Menu:..Inf|
00000430  6f 09 09 53 74 61 6e 64  61 72 64 20 75 73 65 6c  |o..Standard usel|
00000440  65 73 73 20 70 72 6f 67  72 61 6d 20 69 6e 66 6f  |ess program info|
00000450  0a 0a 53 69 6e 67 6c 65  20 54 61 73 6b 09 57 68  |..Single Task.Wh|
00000460  65 6e 20 74 69 63 6b 65  64 2e 20 74 68 65 20 70  |en ticked. the p|
00000470  72 6f 67 72 61 6d 20 64  6f 65 73 20 6e 6f 74 20  |rogram does not |
00000480  72 65 6c 65 61 73 65 20  63 6f 6e 74 72 6f 6c 20  |release control |
00000490  74 6f 20 74 68 65 20 77  69 6d 70 2e 0a 09 09 49  |to the wimp....I|
000004a0  74 20 74 68 65 72 65 66  6f 72 65 20 63 6f 6e 76  |t therefore conv|
000004b0  65 72 74 73 20 66 61 73  74 65 72 20 28 62 75 74  |erts faster (but|
000004c0  20 79 6f 75 20 63 61 6e  27 74 20 64 6f 20 61 6e  | you can't do an|
000004d0  79 74 68 69 6e 67 20 65  6c 73 65 21 29 2e 0a 09  |ything else!)...|
000004e0  09 4f 66 66 20 62 79 20  64 65 66 61 75 6c 74 2e  |.Off by default.|
000004f0  0a 0a 55 73 65 20 53 63  61 6c 65 09 57 68 65 6e  |..Use Scale.When|
00000500  20 74 69 63 6b 65 64 2c  20 74 68 65 20 70 72 6f  | ticked, the pro|
00000510  67 72 61 6d 20 75 73 65  73 20 74 68 65 20 22 70  |gram uses the "p|
00000520  48 59 53 22 20 63 68 75  6e 6b 20 69 6e 20 74 68  |HYS" chunk in th|
00000530  65 20 66 69 6c 65 20 28  69 66 0a 09 09 73 75 70  |e file (if...sup|
00000540  70 6c 69 65 64 29 20 74  6f 20 73 63 61 6c 65 20  |plied) to scale |
00000550  74 68 65 20 70 69 63 74  75 72 65 2e 20 4e 4f 54  |the picture. NOT|
00000560  45 3a 20 54 68 65 20 73  69 7a 65 20 69 73 20 6e  |E: The size is n|
00000570  6f 74 0a 09 09 67 75 61  72 61 6e 74 65 65 64 20  |ot...guaranteed |
00000580  2d 20 49 20 77 69 6c 6c  20 73 75 70 70 6c 79 20  |- I will supply |
00000590  73 6f 6d 65 20 6d 65 74  68 6f 64 20 6f 66 20 63  |some method of c|
000005a0  6f 6e 66 69 67 75 72 69  6e 67 20 72 65 61 6c 0a  |onfiguring real.|
000005b0  09 09 70 69 78 65 6c 20  73 69 7a 65 73 20 69 6e  |..pixel sizes in|
000005c0  20 61 20 6c 61 74 65 72  20 76 65 72 73 69 6f 6e  | a later version|
000005d0  2e 20 4f 6e 20 62 79 20  64 65 66 61 75 6c 74 2e  |. On by default.|
000005e0  0a 0a 55 73 65 20 47 61  6d 6d 61 09 57 68 65 6e  |..Use Gamma.When|
000005f0  20 74 69 63 6b 65 64 2c  20 74 68 65 20 70 72 6f  | ticked, the pro|
00000600  67 72 61 6d 20 75 73 65  73 20 74 68 65 20 22 67  |gram uses the "g|
00000610  41 4d 41 22 20 63 68 75  6e 6b 20 69 6e 20 74 68  |AMA" chunk in th|
00000620  65 20 66 69 6c 65 20 28  69 66 0a 09 09 73 75 70  |e file (if...sup|
00000630  70 6c 69 65 64 29 20 74  6f 20 61 70 70 6c 79 20  |plied) to apply |
00000640  67 61 6d 6d 61 20 63 6f  72 72 65 63 74 69 6f 6e  |gamma correction|
00000650  2e 20 4f 6e 20 62 79 20  64 65 66 61 75 6c 74 2e  |. On by default.|
00000660  0a 0a 56 69 65 77 65 72  20 4d 6f 64 65 09 57 68  |..Viewer Mode.Wh|
00000670  65 6e 20 74 69 63 6b 65  64 2c 20 73 75 70 72 65  |en ticked, supre|
00000680  73 73 65 73 20 71 75 65  72 69 65 73 20 61 62 6f  |sses queries abo|
00000690  75 74 20 75 6e 73 61 76  65 64 20 66 69 6c 65 73  |ut unsaved files|
000006a0  20 6f 6e 20 63 6c 6f 73  69 6e 67 20 2f 0a 09 09  | on closing /...|
000006b0  71 75 69 74 74 69 6e 67  0a 0a 54 72 61 6e 73 70  |quitting..Transp|
000006c0  61 72 65 6e 63 79 09 57  68 65 6e 20 63 6c 69 63  |arency.When clic|
000006d0  6b 65 64 2c 20 62 72 69  6e 67 73 20 75 70 20 61  |ked, brings up a|
000006e0  20 73 63 72 65 65 6e 20  61 6c 6c 6f 77 69 6e 67  | screen allowing|
000006f0  20 79 6f 75 20 74 6f 20  73 65 6c 65 63 74 0a 09  | you to select..|
00000700  09 74 72 61 6e 73 70 61  72 65 6e 63 79 20 6f 70  |.transparency op|
00000710  74 69 6f 6e 73 2c 20 61  73 20 66 6f 6c 6c 6f 77  |tions, as follow|
00000720  73 3a 0a 09 09 49 67 6e  6f 72 65 09 09 49 67 6e  |s:...Ignore..Ign|
00000730  6f 72 65 20 74 72 61 6e  73 70 61 72 65 6e 63 79  |ore transparency|
00000740  20 2f 20 61 6c 70 68 61  20 63 68 61 6e 6e 65 6c  | / alpha channel|
00000750  73 20 28 61 6c 6c 20 70  69 78 65 6c 73 0a 09 09  |s (all pixels...|
00000760  09 09 63 6f 6e 73 69 64  65 72 65 64 20 6f 70 61  |..considered opa|
00000770  71 75 65 29 2e 0a 09 09  43 72 65 61 74 65 20 6d  |que)....Create m|
00000780  61 73 6b 09 43 72 65 61  74 65 20 61 20 6d 61 73  |ask.Create a mas|
00000790  6b 20 28 70 69 78 65 6c  73 20 77 68 6f 73 65 20  |k (pixels whose |
000007a0  6f 70 61 63 69 74 79 20  69 73 20 6c 65 73 73 0a  |opacity is less.|
000007b0  09 09 09 09 74 68 61 6e  20 74 68 65 20 73 6c 69  |....than the sli|
000007c0  64 65 72 20 76 61 6c 75  65 20 61 72 65 20 63 6f  |der value are co|
000007d0  6e 73 69 64 65 72 65 64  0a 09 09 09 09 74 72 61  |nsidered.....tra|
000007e0  6e 73 70 61 72 65 6e 74  29 2e 0a 09 09 55 73 65  |nsparent)....Use|
000007f0  20 42 61 63 6b 67 72 6f  75 6e 64 0a 09 09 69 6e  | Background...in|
00000800  20 62 4b 47 44 20 63 68  75 6e 6b 09 49 66 20 62  | bKGD chunk.If b|
00000810  4b 47 44 20 63 68 75 6e  6b 20 73 75 70 70 6c 69  |KGD chunk suppli|
00000820  65 64 2c 20 75 73 65 20  69 74 2e 20 4f 74 68 65  |ed, use it. Othe|
00000830  72 77 69 73 65 0a 09 09  09 09 75 73 65 20 74 68  |rwise.....use th|
00000840  65 20 63 6f 6c 6f 75 72  20 73 65 6c 65 63 74 65  |e colour selecte|
00000850  64 20 62 79 20 74 68 65  20 62 75 74 74 6f 6e 2e  |d by the button.|
00000860  0a 09 09 55 73 65 20 73  70 65 63 69 66 69 65 64  |...Use specified|
00000870  0a 09 09 63 6f 6c 6f 75  72 09 09 41 6c 77 61 79  |...colour..Alway|
00000880  73 20 75 73 65 20 74 68  65 20 63 6f 6c 6f 75 72  |s use the colour|
00000890  20 73 65 6c 65 63 74 65  64 20 62 79 20 74 68 65  | selected by the|
000008a0  20 62 75 74 74 6f 6e 2e  0a 0a 53 61 76 65 20 4f  | button...Save O|
000008b0  70 74 69 6f 6e 73 09 53  61 76 65 20 74 68 65 20  |ptions.Save the |
000008c0  61 62 6f 76 65 20 73 74  61 74 65 20 6f 66 20 74  |above state of t|
000008d0  69 63 6b 73 20 61 62 6f  76 65 20 66 6f 72 20 74  |icks above for t|
000008e0  68 65 20 6e 65 78 74 20  74 69 6d 65 20 79 6f 75  |he next time you|
000008f0  20 72 75 6e 0a 09 09 74  68 65 20 70 72 6f 67 72  | run...the progr|
00000900  61 6d 2e 0a 0a 51 75 69  74 09 09 4e 6f 20 70 72  |am...Quit..No pr|
00000910  69 7a 65 73 20 66 6f 72  20 67 75 65 73 73 69 6e  |izes for guessin|
00000920  67 20 74 68 65 20 65 66  66 65 63 74 20 6f 66 20  |g the effect of |
00000930  74 68 69 73 20 6f 6e 65  21 0a 0a 54 68 65 20 70  |this one!..The p|
00000940  72 6f 67 72 61 6d 20 73  75 70 70 6f 72 74 73 20  |rogram supports |
00000950  74 68 65 20 41 63 6f 72  6e 20 64 65 73 6b 74 6f  |the Acorn deskto|
00000960  70 20 73 61 76 65 20 61  6e 64 20 68 65 6c 70 20  |p save and help |
00000970  70 72 6f 74 6f 63 6f 6c  73 2e 0a 0a 4b 6e 6f 77  |protocols...Know|
00000980  6e 20 42 75 67 73 3a 0a  2d 2d 2d 2d 2d 2d 2d 2d  |n Bugs:.--------|
00000990  2d 2d 2d 0a 09 4d 61 73  6b 73 20 61 72 65 20 6e  |---..Masks are n|
000009a0  6f 74 20 63 6f 6e 76 65  72 74 65 64 20 66 72 6f  |ot converted fro|
000009b0  6d 20 38 62 70 70 20 73  70 72 69 74 65 20 66 69  |m 8bpp sprite fi|
000009c0  6c 65 73 20 74 6f 20 50  4e 47 20 66 69 6c 65 73  |les to PNG files|
000009d0  20 28 6d 61 69 6e 6c 79  0a 09 62 65 63 61 75 73  | (mainly..becaus|
000009e0  65 20 49 27 64 20 70 72  6f 62 61 62 6c 79 20 68  |e I'd probably h|
000009f0  61 76 65 20 74 6f 20 70  72 6f 64 75 63 65 20 61  |ave to produce a|
00000a00  20 74 72 75 65 63 6f 6c  6f 75 72 20 69 6d 61 67  | truecolour imag|
00000a10  65 29 0a 09 73 42 49 54  20 69 73 20 6e 6f 74 20  |e)..sBIT is not |
00000a20  64 65 61 6c 74 20 77 69  74 68 2c 20 73 6f 20 63  |dealt with, so c|
00000a30  6f 6e 76 65 72 74 69 6e  67 20 61 20 33 32 6b 20  |onverting a 32k |
00000a40  73 70 72 69 74 65 20 74  6f 20 61 20 50 4e 47 20  |sprite to a PNG |
00000a50  61 6e 64 20 62 61 63 6b  20 74 6f 0a 09 61 20 73  |and back to..a s|
00000a60  70 72 69 74 65 20 72 65  73 75 6c 74 73 20 69 6e  |prite results in|
00000a70  20 61 20 31 36 4d 20 63  6f 6c 6f 75 72 20 73 70  | a 16M colour sp|
00000a80  72 69 74 65 2e 0a 0a 46  75 74 75 72 65 20 45 6e  |rite...Future En|
00000a90  68 61 6e 63 65 6d 65 6e  74 73 3a 0a 2d 2d 2d 2d  |hancements:.----|
00000aa0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000ab0  0a 31 09 41 6c 6c 6f 77  20 73 70 65 63 69 66 69  |.1.Allow specifi|
00000ac0  63 61 74 69 6f 6e 20 6f  66 20 63 6f 6d 70 72 65  |cation of compre|
00000ad0  73 73 69 6f 6e 20 26 20  69 6e 74 65 72 6c 61 63  |ssion & interlac|
00000ae0  69 6e 67 20 77 68 65 6e  20 63 6f 6e 76 65 72 74  |ing when convert|
00000af0  69 6e 67 0a 09 73 70 72  69 74 65 20 66 69 6c 65  |ing..sprite file|
00000b00  73 2e 0a 32 09 54 69 64  79 20 75 70 20 69 6e 74  |s..2.Tidy up int|
00000b10  65 72 66 61 63 65 20 28  61 67 61 69 6e 29 0a 33  |erface (again).3|
00000b20  09 43 6f 6e 76 65 72 74  20 41 63 6f 72 6e 20 6d  |.Convert Acorn m|
00000b30  61 73 6b 73 20 6f 6e 20  38 62 70 70 20 73 70 72  |asks on 8bpp spr|
00000b40  69 74 65 73 0a 34 09 4c  6f 74 73 20 6f 66 20 6f  |ites.4.Lots of o|
00000b50  74 68 65 72 73 20 77 68  69 63 68 20 61 72 65 20  |thers which are |
00000b60  69 6e 20 74 68 65 20 73  6f 75 72 63 65 20 63 6f  |in the source co|
00000b70  64 65 2e 2e 2e 0a 0a 54  65 64 69 6f 75 73 20 6c  |de.....Tedious l|
00000b80  65 67 61 6c 20 6d 65 73  73 61 67 65 0a 3d 3d 3d  |egal message.===|
00000b90  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000ba0  3d 3d 0a 0a 20 20 20 54  68 69 73 20 61 70 70 6c  |==..   This appl|
00000bb0  69 63 61 74 69 6f 6e 20  69 73 20 66 72 65 65 77  |ication is freew|
00000bc0  61 72 65 2e 20 49 74 20  63 61 6e 20 62 65 20 64  |are. It can be d|
00000bd0  69 73 74 72 69 62 75 74  65 64 20 66 72 65 65 6c  |istributed freel|
00000be0  79 20 61 73 20 6c 6f 6e  67 20 61 73 20 6f 6e 6c  |y as long as onl|
00000bf0  79 0a 72 65 61 73 6f 6e  61 62 6c 65 20 63 68 61  |y.reasonable cha|
00000c00  72 67 65 73 20 61 72 65  20 6d 61 64 65 20 66 6f  |rges are made fo|
00000c10  72 20 6d 65 64 69 61 20  61 6e 64 20 64 69 73 74  |r media and dist|
00000c20  72 69 62 75 74 69 6f 6e  2e 20 49 20 72 65 74 61  |ribution. I reta|
00000c30  69 6e 20 63 6f 70 79 72  69 67 68 74 20 6f 6e 0a  |in copyright on.|
00000c40  61 6c 6c 20 70 72 6f 67  72 61 6d 20 63 6f 64 65  |all program code|
00000c50  20 61 6e 64 20 64 6f 63  75 6d 65 6e 74 61 74 69  | and documentati|
00000c60  6f 6e 20 63 6f 6e 74 61  69 6e 65 64 20 69 6e 20  |on contained in |
00000c70  74 68 69 73 20 64 69 73  74 72 69 62 75 74 69 6f  |this distributio|
00000c80  6e 2e 0a 0a 20 20 20 54  68 69 73 20 73 6f 66 74  |n...   This soft|
00000c90  77 61 72 65 20 69 73 20  73 75 70 70 6c 69 65 64  |ware is supplied|
00000ca0  20 94 61 73 a0 69 73 95  3a 20 49 20 6d 61 6b 65  | .as.is.: I make|
00000cb0  20 6e 6f 20 77 61 72 72  61 6e 74 79 2c 20 65 78  | no warranty, ex|
00000cc0  70 72 65 73 73 65 64 20  6f 72 0a 69 6d 70 6c 69  |pressed or.impli|
00000cd0  65 64 2c 20 6f 66 20 74  68 65 20 6d 65 72 63 68  |ed, of the merch|
00000ce0  61 6e 74 61 62 69 6c 69  74 79 20 6f 66 20 74 68  |antability of th|
00000cf0  69 73 20 73 6f 66 74 77  61 72 65 20 6f 72 20 69  |is software or i|
00000d00  74 73 20 9e 74 6e 65 73  73 20 66 6f 72 20 61 6e  |ts .tness for an|
00000d10  79 0a 70 61 72 74 69 63  75 6c 61 72 20 70 75 72  |y.particular pur|
00000d20  70 6f 73 65 2e 20 49 6e  20 6e 6f 20 63 69 72 63  |pose. In no circ|
00000d30  75 6d 73 74 61 6e 63 65  73 20 73 68 61 6c 6c 20  |umstances shall |
00000d40  49 20 62 65 20 6c 69 61  62 6c 65 20 66 6f 72 20  |I be liable for |
00000d50  61 6e 79 20 64 61 6d 61  67 65 2c 0a 6c 6f 73 73  |any damage,.loss|
00000d60  20 6f 66 20 70 72 6f 9e  74 73 2c 20 6f 72 20 61  | of pro.ts, or a|
00000d70  6e 79 20 69 6e 64 69 72  65 63 74 20 6f 72 20 63  |ny indirect or c|
00000d80  6f 6e 73 65 71 75 65 6e  74 69 61 6c 20 6c 6f 73  |onsequential los|
00000d90  73 20 61 72 69 73 69 6e  67 20 6f 75 74 20 6f 66  |s arising out of|
00000da0  20 74 68 65 20 75 73 65  0a 6f 66 20 74 68 69 73  | the use.of this|
00000db0  20 73 6f 66 74 77 61 72  65 20 6f 72 20 69 6e 61  | software or ina|
00000dc0  62 69 6c 69 74 79 20 74  6f 20 75 73 65 20 74 68  |bility to use th|
00000dd0  69 73 20 73 6f 66 74 77  61 72 65 2c 20 65 76 65  |is software, eve|
00000de0  6e 20 69 66 20 49 20 68  61 76 65 20 62 65 65 6e  |n if I have been|
00000df0  0a 61 64 76 69 73 65 64  20 6f 66 20 74 68 65 20  |.advised of the |
00000e00  70 6f 73 73 69 62 69 6c  69 74 79 20 6f 66 20 73  |possibility of s|
00000e10  75 63 68 20 6c 6f 73 73  2e 0a 0a 20 20 20 49 6e  |uch loss...   In|
00000e20  20 6f 74 68 65 72 20 77  6f 72 64 73 2c 20 69 66  | other words, if|
00000e30  20 79 6f 75 72 20 63 6f  6d 70 75 74 65 72 20 63  | your computer c|
00000e40  72 61 73 68 65 73 2c 20  62 6c 6f 77 73 20 75 70  |rashes, blows up|
00000e50  2c 20 79 6f 75 20 6c 6f  73 65 20 61 6c 6c 20 79  |, you lose all y|
00000e60  6f 75 72 20 77 6f 72 6b  0a 65 74 63 2e 20 61 6c  |our work.etc. al|
00000e70  6c 20 62 65 63 61 75 73  65 20 6f 66 20 21 50 6e  |l because of !Pn|
00000e80  67 32 53 70 72 2c 20 64  6f 6e 91 74 20 62 6c 61  |g2Spr, don.t bla|
00000e90  6d 65 20 6d 65 2e 0a 0a  41 63 6b 6e 6f 77 6c 65  |me me...Acknowle|
00000ea0  64 67 6d 65 6e 74 73 0a  2d 2d 2d 2d 2d 2d 2d 2d  |dgments.--------|
00000eb0  2d 2d 2d 2d 2d 2d 2d 0a  0a 54 68 61 6e 6b 73 20  |-------..Thanks |
00000ec0  61 72 65 20 64 75 65 20  74 6f 3a 0a 0a 47 72 65  |are due to:..Gre|
00000ed0  67 20 52 6f 65 6c 6f 66  73 2c 20 66 6f 72 20 62  |g Roelofs, for b|
00000ee0  65 69 6e 67 20 68 65 6c  70 66 75 6c 0a 0a 4e 69  |eing helpful..Ni|
00000ef0  63 6b 20 53 6d 69 74 68  2c 20 41 4e 54 20 4c 74  |ck Smith, ANT Lt|
00000f00  64 2c 20 66 6f 72 20 73  65 6e 64 69 6e 67 20 6d  |d, for sending m|
00000f10  65 20 74 68 65 20 6f 66  66 69 63 69 61 6c 20 50  |e the official P|
00000f20  4e 47 20 73 70 72 69 74  65 73 20 61 6e 64 20 70  |NG sprites and p|
00000f30  6f 69 6e 74 69 6e 67 20  6f 75 74 0a 74 68 61 74  |ointing out.that|
00000f40  20 49 20 63 61 6e 27 74  20 73 70 65 6c 6c 20 6d  | I can't spell m|
00000f50  79 20 6f 77 6e 20 6e 61  6d 65 2e 0a 0a 4e 69 63  |y own name...Nic|
00000f60  6b 20 52 6f 62 65 72 74  73 20 28 22 74 69 67 67  |k Roberts ("tigg|
00000f70  65 72 40 61 72 67 6f 6e  65 74 2e 63 6f 2e 75 6b  |er@argonet.co.uk|
00000f80  22 29 20 66 6f 72 20 75  73 69 6e 67 20 74 68 65  |") for using the|
00000f90  20 70 72 6f 67 72 61 6d  20 61 6e 64 20 6d 61 6b  | program and mak|
00000fa0  69 6e 67 20 73 6f 6d 65  0a 73 75 67 67 65 73 74  |ing some.suggest|
00000fb0  69 6f 6e 73 20 74 6f 20  69 6d 70 72 6f 76 65 20  |ions to improve |
00000fc0  69 74 2e 0a 0a 53 74 65  77 61 72 74 20 42 72 6f  |it...Stewart Bro|
00000fd0  64 69 65 20 66 6f 72 20  64 6f 69 6e 67 20 6d 75  |die for doing mu|
00000fe0  63 68 20 74 68 65 20 73  61 6d 65 0a 0a 54 68 65  |ch the same..The|
00000ff0  20 70 72 6f 64 75 63 65  72 73 20 6f 66 20 74 68  | producers of th|
00001000  65 20 5a 6c 69 62 20 26  20 50 4e 47 20 73 75 70  |e Zlib & PNG sup|
00001010  70 6f 72 74 20 6c 69 62  72 61 72 69 65 73 0a 0a  |port libraries..|
00001020  43 6f 70 79 72 69 67 68  74 73 0a 3d 3d 3d 3d 3d  |Copyrights.=====|
00001030  3d 3d 3d 3d 3d 0a 0a 54  68 65 20 50 4e 47 20 73  |=====..The PNG s|
00001040  75 70 70 6f 72 74 20 6c  69 62 72 61 72 79 20 28  |upport library (|
00001050  6c 69 62 70 6e 67 29 20  69 73 20 63 6f 70 79 72  |libpng) is copyr|
00001060  69 67 68 74 20 61 73 20  66 6f 6c 6c 6f 77 73 3a  |ight as follows:|
00001070  0a 20 20 20 43 6f 70 79  72 69 67 68 74 20 28 63  |.   Copyright (c|
00001080  29 20 31 39 39 35 2c 20  31 39 39 36 20 47 75 79  |) 1995, 1996 Guy|
00001090  20 45 72 69 63 20 53 63  68 61 6c 6e 61 74 2c 20  | Eric Schalnat, |
000010a0  47 72 6f 75 70 20 34 32  2c 20 49 6e 63 2e 0a 20  |Group 42, Inc.. |
000010b0  20 20 43 6f 70 79 72 69  67 68 74 20 28 63 29 20  |  Copyright (c) |
000010c0  31 39 39 36 2c 20 31 39  39 37 20 41 6e 64 72 65  |1996, 1997 Andre|
000010d0  61 73 20 44 69 6c 67 65  72 0a 20 20 20 47 75 79  |as Dilger.   Guy|
000010e0  20 45 72 69 63 20 53 63  68 61 6c 6e 61 74 2c 20  | Eric Schalnat, |
000010f0  47 72 6f 75 70 20 34 32  2c 20 49 6e 63 2e 0a 20  |Group 42, Inc.. |
00001100  20 20 43 6f 6e 74 72 69  62 75 74 69 6e 67 20 41  |  Contributing A|
00001110  75 74 68 6f 72 73 3a 0a  20 20 20 20 20 20 4a 6f  |uthors:.      Jo|
00001120  68 6e 20 42 6f 77 6c 65  72 0a 20 20 20 20 20 20  |hn Bowler.      |
00001130  53 61 6d 20 42 75 73 68  65 6c 6c 0a 20 20 20 20  |Sam Bushell.    |
00001140  20 20 4b 65 76 69 6e 20  42 72 61 63 65 79 0a 20  |  Kevin Bracey. |
00001150  20 20 20 20 20 41 6e 64  72 65 61 73 20 44 69 6c  |     Andreas Dil|
00001160  67 65 72 0a 20 20 20 20  20 20 4d 61 67 6e 75 73  |ger.      Magnus|
00001170  20 48 6f 6c 6d 67 72 65  6e 0a 20 20 20 20 20 20  | Holmgren.      |
00001180  44 61 76 65 20 4d 61 72  74 69 6e 64 61 6c 65 0a  |Dave Martindale.|
00001190  20 20 20 20 20 20 47 72  65 67 20 52 6f 65 6c 6f  |      Greg Roelo|
000011a0  66 73 0a 20 20 20 20 20  20 47 75 79 20 45 72 69  |fs.      Guy Eri|
000011b0  63 20 53 63 68 61 6c 6e  61 74 0a 20 20 20 20 20  |c Schalnat.     |
000011c0  20 50 61 75 6c 20 53 63  68 6d 69 64 74 0a 20 20  | Paul Schmidt.  |
000011d0  20 20 20 20 54 6f 6d 20  54 61 6e 6e 65 72 0a 20  |    Tom Tanner. |
000011e0  20 20 20 20 20 54 69 6d  20 57 65 67 6e 65 72 0a  |     Tim Wegner.|
000011f0  0a 54 68 65 20 69 6e 66  6c 61 74 65 20 2f 20 64  |.The inflate / d|
00001200  65 66 6c 61 74 65 20 73  75 70 70 6f 72 74 20 6c  |eflate support l|
00001210  69 62 72 61 72 79 20 28  7a 6c 69 62 29 20 69 73  |ibrary (zlib) is|
00001220  20 63 6f 70 79 72 69 67  68 74 20 61 73 20 66 6f  | copyright as fo|
00001230  6c 6c 6f 77 73 3a 0a 20  20 20 43 6f 70 79 72 69  |llows:.   Copyri|
00001240  67 68 74 20 28 63 29 20  31 39 39 35 2d 31 39 39  |ght (c) 1995-199|
00001250  36 20 4a 65 61 6e 2d 6c  6f 75 70 20 47 61 69 6c  |6 Jean-loup Gail|
00001260  6c 79 20 61 6e 64 20 4d  61 72 6b 20 41 64 6c 65  |ly and Mark Adle|
00001270  72 0a                                             |r.|
00001272