in reply to Detect boundaries within .png's - and cropping

If all else fails, you can use Imager, and the ->getwidth, ->getheight and ->getpixel methods to read the image pixel by pixel to find the leftmost non-alpha pixel and the rightmost non-alpha pixel (and top/bottom), and then use ->crop to crop the image.