This question already has an answer here:

I am looking for a small application that allows to capture a screen section and directly render to a gif file.

Is there any application that does this?

I searched a lot, but I didn't find one compatible with Linux/Ubuntu...

marked as duplicate by fossfreedom Jan 31 '14 at 10:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.