They are completely different.
Imagination is a mental capacity and a human ability, similar to creativity.
Imagery is a stylistic feature of literature, involving similes and metaphors. For example, if the emotion of fear is depicted as a black cloud in a poem, this is a form of imagery.