public function writeCrop($path, $contents) {
        try {
            $this->getCropsDisk()->write($path, $contents);
        } catch(FileExistsException $e) {
            throw new Exception("Croppa: Crop already exists at $path. You probably
                have a misconfiguration. Make sure that the URL to your crop can be
                transformed by the `path` config to your `crop_dir`.");
        }

    }
public function writeCrop($path, $contents) {
        try {
            $this->getCropsDisk()->write($path, $contents);
        } catch(FileExistsException $e) {
            throw new Exception("Croppa: Crop already exists at $path. You probably
                have a misconfiguration. Make sure that the URL to your crop can be
                transformed by the `path` config to your `crop_dir`.");
        }

    }
public function writeCrop ( $ path , $ contents ) { try { $ this -> getCropsDisk ( ) -> write ( $ path , $ contents ) ; } catch ( FileExistsException $ e ) { throw new Exception ( "Croppa: Crop already exists at $path. You probably
                have a misconfiguration. Make sure that the URL to your crop can be
                transformed by the `path` config to your `crop_dir`." ) ; } }
Write the cropped image contents to disk

@param string $path Where to save the crop
@param string $contents The image data
@throws Exception
@return void
Write the cropped image contents to disk