Simple fix - you are asking it to save the gif **as a protobuf**,
which means it'll include a few extra things (like a dummy field and a
length prefix). Simply replace the line (incorrect):


with (correct):

    File.WriteAllBytes(targetImage, img2.ImageJPGData);

Job done.

Let me know if you get any other problems,

Marc Gravell

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to