static File cropToLeftScreenInPlace(File imageFile, int width default screenWidth()) { if (!isFile(imageFile)) null; loading "Crop image file" { BufferedImage img = loadImage2(imageFile); img = clipBufferedImage(img, 0, 0, width, img.getHeight()); File atticFile = appendToBaseFileName(imageFile, ".uncropped"); renameFileVerbose(imageFile, atticFile); saveImageVerbose(imageFile, img); print("Image cropped to " + width + " pixels"); ret destFile; } }