AminetAminet
Search:
84504 packages online
About
Recent
Browse
Search
Upload
Setup
Services

pix/illu/GIFHack.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:BREAK the 256-colour barrier in a GIF!
Author:Chris Covell (ccovell at direct.ca)
Uploader:Chris Covell
Type:pix/illu
Requires:IBrowse or Netscape (GFX card recommended)
Architecture:generic
Date:1998-03-07
Download:http://aminet.net/pix/illu/GIFHack.lha - View contents
Readme:http://aminet.net/pix/illu/GIFHack.readme
Downloads:305

I just came up with a clever way to show hundreds, or even thousands of
colours in a single GIF image!  It's little tricky, but it can be done!

Why would you want to do this in a GIF image when you already have JPEGs
to show 24-bit images?  Well, JPEGs are good, and they're small.  But
they're lossy, and you can't do transparency with them.  If JPEGs had an
alpha-channel for the Internet, then I'd be in love with them.  But they
don't.  So, I came up with this method whereby you can make a GIF animation
that has an individual palette for each frame.  Each frame is a separate
part of a complete picture.  When viewed in Netscape or IBrowse, the entire
image is shown and so you can have a GIF with thousands of colours if you
want, and A TRANSPARENT BACKGROUND!

To make it work, you first have to take your original image, and cut it up
into several different pieces as you like.  Then, load each piece into a
bitmap paint program, like DPaint or PPaint, etc.  Re-map the 24-bit pieces
one-by-one into 256 colours.  Place a piece in the position where it was
originally in the entire image, and make sure you have a background colour
for transparency.  But be sure to only have one piece on the screen at one
time.  Save the image for the very first frame (usually the top leftmost
one) AS LARGE AS THE ORIGINAL PICTURE WAS.  Make sure the blank portions
of the screen are the background (transparent) colour.  All subsequent
pieces of the image can be picked up as brushes from the top leftmost
corner of the image to the lower extremities of the piece that you've just
laid down.  But always make sure that the background is transparent!  After
picking up a brush, save it as a GIF (or convert it to a GIF later.  Make
sure that the colour that is transparent is the same colour across all
images. (I make it colour 0 just for simplicity's sake.)

Next, use WhirlGIF (available on AmiNet) to make the GIF animation.  You
need to specify the disposal method as "not" or "none"; the transparency,
as colour 0 (or whatever colour is transparent in your frames); and don't
make the GIF animation loop; it must stop at the last frame.  Here is an
example of the command line:

Whirlgif -v -o Ram:My.GIF -time 0 -disp not -trans 0 frame1.gif frame2.gif..

After it correctly makes the GIF, you should load it up only in IBrowse or
Netscape.  Browsers such as AWeb, Voyager, or Internet Explorer don't show
the images properly.  I also haven't found any image viewers which show
them properly either.  But my main purpose for these special GIFs is for
use on the Web, anyway.  It just goes to show how correctly IBrowse and
Netscape display pages on the WWW, eh?

Included in this archive are some example images for you to check out.
Load up the TryMe.HTML page into IBrowse or Netscape.  It will show you the
differences between a JPG, a 256-colour GIF, and my special hacked GIF of
the same image.  I've also included a hacked GIF of my logo, which shows
off the ability to have thousands of colours and a transparent background!

Other things of mine which you should check out are:

pix/anim/AmiBanner.lha     ;An animating GIF banner that supports Amiga.
pix/boot/Win95BURN.lha     ;My Windows'95 trasher.  Burn, baby burn!!!
pix/boot/Win95BURN.jpg     ;A JPEG version of that pic.
pix/boot/WinBURN24.lha     ;A 24-bit IFF version of that pic.
pix/wb/BeBoxWBs.lha        ;Some pics of my WB using the BeIcons.
pix/wb/JapanWB.lha         ;A Japanese Workbench. ;-)
pix/wb/HAMBrowse.lha       ;A Pic showing how to browse the WWW in HAM!
pix/icon/BeIcons_2.lha     ;A set of NewIcons in the BeOS style! (and more!)
gfx/aga/HUGEBench.lha      ;Some monitor settings for a HUGE Workbench!
misc/emu/Snd2Mid.lha       ;Converts iNES SNDs to MIDI.

And of course, my webpage at http://www.sfu.ca/~ccovell/
It has lots of stuff that you might enjoy exploring.

See ya!


Contents of pix/illu/GIFHack.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 3329    3329 100.0% -lh0- 7ee6 Jan 29  1998 GIFHack/Frames/Spec1.GIF
[generic]                 2771    2771 100.0% -lh0- 73a5 Jan 29  1998 GIFHack/Frames/Spec2.GIF
[generic]                 2713    2713 100.0% -lh0- 3d6a Jan 29  1998 GIFHack/Frames/Spec3.GIF
[generic]                 3040    3040 100.0% -lh0- 5d65 Jan 29  1998 GIFHack/Frames/Spec4.GIF
[generic]                 2908    2908 100.0% -lh0- f2f0 Jan 29  1998 GIFHack/Frames/Spec5.GIF
[generic]                 2973    2973 100.0% -lh0- 7b9e Jan 29  1998 GIFHack/Frames/Spec6.GIF
[generic]                 3058    3058 100.0% -lh0- 1ae9 Jan 29  1998 GIFHack/Frames/Spec7.GIF
[generic]                 2848    2848 100.0% -lh0- 0d62 Jan 29  1998 GIFHack/Frames/Spec8.GIF
[generic]                 3120    3120 100.0% -lh0- af51 Jan 29  1998 GIFHack/Frames/Spec10.GIF
[generic]                 2905    2905 100.0% -lh0- dae0 Jan 29  1998 GIFHack/Frames/Spec11.GIF
[generic]                 3183    3183 100.0% -lh0- bdb2 Jan 29  1998 GIFHack/Frames/Spec12.GIF
[generic]                 3133    3133 100.0% -lh0- 4590 Jan 29  1998 GIFHack/Frames/Spec13.GIF
[generic]                 2962    2962 100.0% -lh0- 4f48 Jan 29  1998 GIFHack/Frames/Spec14.GIF
[generic]                 3068    3068 100.0% -lh0- 08d7 Jan 29  1998 GIFHack/Frames/Spec15.GIF
[generic]                 3135    3135 100.0% -lh0- 0e2b Jan 29  1998 GIFHack/Frames/Spec16.GIF
[generic]                 2911    2911 100.0% -lh0- 1c55 Jan 29  1998 GIFHack/Frames/Spec9.GIF
[generic]                  784    1101  71.2% -lh5- 7061 Jan 30  1998 GIFHack/Frames.info
[generic]                 2903    2903 100.0% -lh0- 84ed Jan 29  1998 GIFHack/Frames/Spec17.GIF
[generic]                 3313    3313 100.0% -lh0- e858 Jan 29  1998 GIFHack/Frames/Spec18.GIF
[generic]                 3154    3154 100.0% -lh0- 3f40 Jan 29  1998 GIFHack/Frames/Spec19.GIF
[generic]                 3160    3160 100.0% -lh0- c4c4 Jan 29  1998 GIFHack/Frames/Spec20.GIF
[generic]                  646    1092  59.2% -lh5- a52f Jan 30  1998 GIFHack/GIFHack.readme.info
[generic]                  305     509  59.9% -lh5- e45b Jan 29  1998 GIFHack/TryMe.HTML
[generic]                  596    1357  43.9% -lh5- d9ee Jan 30  1998 GIFHack/TryMe.HTML.info
[generic]                  780    1101  70.8% -lh5- f42c Jan 30  1998 GIFHack.info
[generic]                30573   30573 100.0% -lh0- ac72 Jan 29  1998 GIFHack/CMCAnim.GIF
[generic]                 2006    4068  49.3% -lh5- cb7e Jan 30  1998 GIFHack/GIFHack.readme
[generic]                60385   60385 100.0% -lh0- 4e35 Jan 29  1998 GIFHack/SpecAnim.GIF
[generic]                 6225    6225 100.0% -lh0- cc0b Jan 29  1998 GIFHack/Spectrum.JPG
[generic]                12803   12803 100.0% -lh0- b052 Jan 29  1998 GIFHack/Spectrum256.GIF
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        30 files  175690  179801  97.7%            Mar  7  1998

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>