a tidbit

HPI Image Format

How to get at those .hpi files you have sitting around, but can't use because you no longer run Windows.

Seems that the best way to create a proprietary image format is to add a 32-byte header to a standard JPEG, or at least it is if you work at Hermera. Whatever, anyway, the unix tail command can be used to read everything but the first 32 bytes of the image into another file, like so:
$ tail -c +33 IMAGE.HPI > image.jpg
It is left as an exercise to the reader to 1) create a script that liberates a whole cd-rom full of these things and 2) to understand that such a task may be illegal in the US.

By Psydeshow on September 4, 2002 at 1:00pm

jump to top