public static void main(String []args) throws MagickException{
		long startTime=System.currentTimeMillis();   //获取开始时间
		System.out.println("开始裁切图片..");
		
		 File file = new File("d:\\pic\\testcut\\");
		 File[] files = file.listFiles();
		 for (int i = 0; i < files.length; i++) {
		   if(!files[i].isDirectory()){
		 //     System.out.println(  files[i].getName());
			   String fname=files[i].getName();
			   cutImg("d:\\pic\\testcut\\"+fname,"d:\\pic\\testcut\\receivercut\\"+fname,220, 48, 688, 315);
			   cutImg("d:\\pic\\testcut\\"+fname,"d:\\pic\\testcut\\sendercut\\"+fname,220,48,148,315);
			   
		   }
		 }

		//cutImg("E:\\before\\718358691392.jpg","e:\\after\\718358691392.jpg",200,60,670,300);
		System.out.println("裁剪done!");
		
		long endTime=System.currentTimeMillis(); //获取结束时间

		 System.out.println("程序运行时间： "+(endTime-startTime)+"ms");
		
		
	}