conversion of Hex image to JPEG

sorry, but i never use python before so bit confuse :frowning:
see the attachment .. am i doing it right?