I've never used either
GD::Graph::bars or
Image::Resize. But I doubt that even those who have, and could in principle give you good advice, will be able to help you, if you don't show the code you've tried.
"I'm using both Module A and Module B" is not enough info, I guess.