Welcome, Guest. Please login or register.

Author Topic: HAM-like hack allows full-color GIFs  (Read 2298 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline FloidTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2003
  • Posts: 918
    • Show all replies
HAM-like hack allows full-color GIFs
« on: August 29, 2004, 04:08:05 PM »
Another Slashdot find.

Check out the demonstration image, courtesy of this guy...

...then learn   the secret behind it.
 

Offline FloidTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2003
  • Posts: 918
    • Show all replies
Re: HAM-like hack allows full-color GIFs
« Reply #1 on: August 29, 2004, 06:43:06 PM »
Quote

Ilwrath wrote:
Quote
It does seem like a second cousin to HAM. :)


It's just a multi-palletted image.  Probably closer to the DynamicHAM like that NewTek viewer used than a true HAM mode.
It's HAM-like in the sense that it's a neat hack. ;-)

Quote
I'm not really sure what mangling the GIF format to do this really accomplishes, though.  There's already a plethora of formats for high-color modes.  And, of course, the only programs that can use this format must support animated GIFs.  And, not much besides web browsers really do that, anymore.  (And since browsers also support JPEG, TIFF, PNG, etc...)

I'm just not seeing a purpose here, other than, perhaps to win a bet about how many colors can be displayed in a GIF...  ;-)
"Hack value," one assumes, though you know there's got to be that one legacy system out there... and plenty of MS-DOS viewers handled animated GIF before anyone'd even heard of JPEG.  Maybe it'd come in handy for some sort of suitably ridiculous democompo, and if not, it's a neat way to 'celebrate' the patents finally expiring.
 

Offline FloidTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2003
  • Posts: 918
    • Show all replies
Re: HAM-like hack allows full-color GIFs
« Reply #2 on: August 29, 2004, 11:07:20 PM »
Quote

minator wrote:
Quote
It's a hack in that it allows the file to represent an image with more than 256 colours, not display more than that many on an 8-bit display.

As such, it wouldn't work on a 256 colour screen.


No, thats the point, it does allow >256 colours even on a 256 colour screen.

The screen itself only displays 256 colours at a time but your brain will combine the frames so you will "see" a different image with more colours.
Whoever said it first got it right.  The GIF *format* is limited to 256 colors/image, but apparently allows these to be tagged (like Amiga 'pens,' among other Amigan things... at least, I think 'pen' is a safe word to use here) out of a truecolor space.  (Who knew, especially if you were raised on an IBMalike?)

Meanwhile, animated GIF was a simple hack to begin with -- basically a number of GIF images concatenated -- and combined with the format's transparency support, you can guess how it all comes together here.  No dithering, no tricks to display >256 colors on a low-color display, just an amusingly novel way to get beyond the "256 color" limitation in the specification itself... and a nice optimization puzzle, if you'd want to try to write a generic converter that obtains maximum compression.