in reply to pure perl gif => jpg

Not that I know of... perhaps you could look up the specs on the two file formats and write one up. graphic file formats should help a bit.

Any reason why it has to be pure Perl? There are some nice graphics modules available.