Check if the resource is a gif file, by looking at the file_extension
true if the resource is an gif.
resource id.