public void resizeAll()
	{
		File[] files = new File(inputDirectory).listFiles();

		for (int i = 0; i < files.length; i++)
		{
			try
			{
				if (files[i].getName().endsWith(".jpg"))
				{
					resize(files[i]);
				}
			}
			catch (Exception e)
			{
				e.printStackTrace();
			}
		}
	}