Try else a non perl solution. Look into
column 29 from
merlyn.
He describes how you can do a image resize.
I couldn't install the right modules. But I compiled the pmb tools in my schell and accessed them with perl.
There's no need to try to do everything with perl :) ...
--
My opinions may have changed,
but not the fact that I am right