Edit graphic files (gif) as rgb 0:255 matrices?

In which package to edit graphic files (gif) as rgb 0:255 matrices?