Convert MPP to TIFF in Python | Python MPP File to TIFF

Microsoft Project (MPP) files are commonly used to plan and organize projects, containing vital information regarding tasks, timelines, resources, and more. However, there might be situations where sharing or visualization of this data requires a different format altogether, such as TIFF. TIFF is a versatile image format that is widely supported across various platforms and applications, making it an ideal choice for annotations, charts, or any other visual representation derived from MPP files. In this article, we will learn how to convert MPP to TIFF in Python.

This article covers the following topics:

  1. Python Library to convert MPP to TIFF
  2. Convert MPP to TIFF
  3. Convert MPP to TIFF with compression
  4. Remove compression and convert MPP to TIFF
  5. Convert MPP to TIFF online
  6. Free learning resources

Python Library to Convert MPP to TIFF

We will use Aspose.Tasks for Python to convert MPP files into TIFF images. It is a powerful library for working with Microsoft Project in Python applications. It allows you to read, write, manipulate, and convert Microsoft Project files without requiring Microsoft Project to be installed.

Please download the package or install the API from PyPI using the following pip command in the console:

pip install aspose-tasks

Convert MPP to TIFF using Python

We can easily export the project data from the MPP file into a multipage TIFF image by following the steps given below:

  1. Load the MPP file using the Project class.
  2. Save as a TIFF using the save() method. It takes the output TIFF file path and the SaveFileFormat as arguments.

The following sample code shows how to convert MPP to TIFF in Python.

Convert MPP to TIFF using Python

Convert MPP to TIFF using Python.

Convert MPP to TIFF With Compression using Python

We can apply TIFF compression while converting MPP to TIFF by following the steps given below:

  1. Load the MPP file using the Project class.
  2. Create an instance of the ImageSaveOptions class.
  3. After that, specify the tiff_compression.
  4. Finally, call the save() method. It takes the output TIFF file path and the SaveOptions as arguments.

The following sample code shows how to convert MPP to TIFF with compression in Python.

Remove Compression and Convert MPP to TIFF using Python

Similarly, we can also remove the TIFF compression and then convert the MPP file into TIFF format by following the steps mentioned above. However, we just need to set the tiff_compression to TiffCompression.NONE in step #3.

The following sample code shows how to remove compression and convert MPP to TIFF in Python.

Get a Free License

You can get a free temporary license to try the library without evaluation limitations.

Convert MPP to TIFF Online Free

You may also convert MPP files into TIFF format online for free by using this MPP to TIFF converter web app. This web app was developed using the above API.

MPP to TIFF – Learning Resources

Besides converting MPP to TIFF, learn more about generating, converting, and manipulating MPP files without using Microsoft Project, and explore various other features of the library using the resources below:

Conclusion

In this article, we have learned how to convert MPP to TIFF programmatically in Python. We have also learned how to specify image saving options and set the TIFF compression. By leveraging the Aspose.Tasks for Python via .NET API, you can effortlessly export project data from MPP files into various other formats. In case of any ambiguity, please contact us on our free support forum.

See Also