It makes no sense at all. Both types of files are already compressed. Amazingly, GIF is compressed using the same very LZW algorithm:
http://en.wikipedia.org/wiki/GIF[
^].
JPEG uses
lossy compression algorithm, with loss of quality (which depends on parameters), so its compression factors are higher. Therefore, LZH compression will barely compress it. Please see:
http://en.wikipedia.org/wiki/JPEG[
^].
—SA