Skip to content
forked from aaam/hpi2png

convert hpi ( hemera photo image (tm) ) files into png under any operation systems

License

Notifications You must be signed in to change notification settings

GiantRavens/hpi2png

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hpi2png - hpi to png image converter utility

Forked from Alexander A. Mandl

About

hpi is an obscure image format created for the use of Hemera's image library browser. Its basically a compressed JPG image with an PNG image mask. You know, what today we just use a PNG image for.

So this tool written by Alexander A. Mandl combs through the compressed image binary, pulls out the image and the mask and makes a PNG out of it so you can get some use out of that ginormous box of CD's you paid top dollar for back in the day.

Requirements

For it to work you'll need Perl, CPAN, and the Image::Magick Perl files all working together.

which perl
CPAN # If you haven't fired up Perl yet - this will update CPAN
upgrade # from within CPAN if so inclined
wget https://www.imagemagick.org/download/ImageMagick.tar.gz
tar xvxf ./ImageMagick.tar.gz
cd ImageMagick-7.0.7-8/
./configure -with-perl
sudo make install
perl -MImage::Magick -le 'print Image::Magick->QuantumDepth' # smoketest

If that works - you're ready to rock.

Using hpi2png

The syntax for 'one file at a time' is:

hpi2png <inputfile.hpi> <outputfile.png>

And here's a handy one-liner to convert all HPI files in the current folder:

for filename in * ; do <path/to/your>/hpi2png.pl $filename $filename.png; done

About

convert hpi ( hemera photo image (tm) ) files into png under any operation systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 52.1%
  • Puppet 28.8%
  • Shell 19.1%