Convert Project Data to JPEG
Aspose.Tasks for Java API lets you save project data to JPEG file format. You can also export the project data to JPEG with specified image quality.
1Project project = new Project(dataDir + "Homemoveplan.mpp");
2
3// in order to manipulate JPEG quality one can use ImageSaveOptions.JpegQuality property.
4// The allowed value range is 0..100.
5ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.JPEG);
6options.setJpegQuality(50);
7
8project.save(dataDir + "image_out.jpeg", options);