in reply to Are there ways to resize pic without using CPAN modules

If the module Image::Magick is available you have that option, see this page for details. If the module is not available and the program is you can fall back to backtick processing
  `convert $img_filename -resize ${tn_size}x$tn_size $tn_filename`

Be Appropriate && Follow Your Curiosity