I got a little assignment to write a function that takes a byte
array (byte []) as one of its parameters . This array actually
contains a gif image . Then the requirement is to convert it into jpg
or png as requested by the user and return another byte array that
contains the result .