question: public static BufferedImage makeImageSquare ( BufferedImage image ) { int max = 0 ; max = CommonUtil . max ( image . getWidth ( ) , image . getHeight ( ) ) ; return cropImage ( image , max , max ) ; }
target:  Method to pad an image such that it becomes perfect square. The padding uses black color