Setting Image Quality of Project JPEG with Aspose.Tasks for Java 17.11

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Aspose.Tasks for JavaAspose.Tasks for Java 17.11 has been published. This release includes a new feature that allows users to set image quality while exporting project data to JPEG format. It also includes several other improvements as result of bug fixes that further enhances the API functionality. For a detailed note on what is new and fixed, please visit the release notes section in API documentation.

Setting Image Quality while Exporting Project Data to JPEG

This release of Aspose.Tasks for Java API includes a new feature that lets you set the image quality while exporting project data to JPEG. The setJPEGQuality method of ImageSaveOptions lets you achieve this by providing image quality at a scale from 0 to 100, as shown in following code sample.

Project project = new Project(dataDir + "Homemoveplan.mpp");

// in order to manipulate JPEG quality one can use ImageSaveOptions.JpegQuality property.
// The allowed value range is 0..100.
ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.JPEG);
options.setJpegQuality(50); + "image_out.jpeg", options);

Other Improvements

This version also includes other improvements in terms of bug fixes that add to the overall improvement of the API in terms of expected behaviour. These include:

  • Exceptions while loading certain MPP files
  • Errors while converting Project data to PDF
  • Calculation issues with Calendar times set to 24 hours
  • Task reading exceptions while loading MPP files
  • Wrong calculation of Finish date and Percent Complete in MPP files
  • Problem with setting working days
  • Missing time span with SplitParts collection
  • Improvements in manual calculation of tasks data

API Resources

  • Product Documentation – Provides complete information about system requirements, installation, Programmer’s Guide, Technical articles and API Changes
  • API Reference Guide – Provides information about the product namespaces, classes and methods
  • GitHub Examples – Ready to download and execute examples of the API
  • Forum Support – Post your queries/inquiries on Aspose.Tasks forum to get support from our technical support team.

To keep up with our news, you can follow us on Twitter or follow our Facebook page.

Leave a Reply