static int img_minOfWidthAndHeight(BufferedImage image) { ret image == null ? 0 : min(image.getWidth(), image.getHeight()); }