Best Linux software to make Gifs with?

Is there one piece or is it more a case of using a video editor ( like kdevenlive ) and splicing stuff then converting to gif ? If so whats the best mp4 / jpeg sequence to gif converter.