private void convert() throws IOException{
		for(Image img:this.images){
			BufferedImage orig = ImageIO.read(new File(img.orig));
			int width=orig.getWidth();
			int height=orig.getHeight();
			int[] largeSize=getLargeSize(width,height);
			img4java.convert(img.orig, largeSize[0], largeSize[1], 0.9f, "jpg", img.large);
			img4java.convert(img.orig, 310, 310, 0.9f, "jpg", img.medium);
			img4java.convert(img.orig, 200, 200, 0.9f, "jpg", img.small);
			/*
			int[] smallSize=getSmallSize(orig.getWidth(),orig.getHeight());
			//System.out.println(Arrays.toString(smallSize));
			Thumbnails.of(orig).size(largeSize[0], largeSize[1]).outputQuality(1.0f).outputFormat("jpg").toFile(img.large);
			Thumbnails.of(orig).size(218, 520).outputQuality(1.0f).outputFormat("jpg").toFile(img.medium);
			Thumbnails.of(orig).size(smallSize[0], smallSize[1]).outputQuality(1.0f).outputFormat("jpg").toFile(img.small);*/
			orig.flush();
		}
	}