How to Run the Examples

Software Requirements

Please make sure you meet the following requirements before downloading and running the examples.

  1. Python 3.5 or higher.
  2. PyPi - Python Package Manager.

Download from GitHub

All examples of Aspose.Imaging for Python via .NET are hosted on GitHub.

  • Extract the contents of ZIP file to any folder on your computer. All the examples are located in the Examples folder.
  • Examples/data folder contains input files which Python examples used. It is mandatory that you download the data folder along with the examples project.
  • Run python RunExamples.py file, all the examples are called from here.
  • Specify group of examples or test file filter you want to run or call needed example manually writing code for it.

Please feel free to reach out using our Forums if you have any issues setting up or running the examples.

The command line arguments

Using the following arguments you can manage the process of examples running. python RunExamples.py [--argument value] [--argument value] ... Arguments:

Argument Value
--src-dir <path to the root example dir>
Default: ./src
--data-dir <path to the root data dir>
Default: ./data
--output-dir <path to the output dir>
Default: ./output
--license <path to a license file>
Default: No license
--save-output (true/false)
Default: false
--groups groups-flag
Can contains the following bit masks or combination
1 - Test drawing and formatting images
2 - Test modifying and converting images
4 - Test of memory strategies"
8 - Test additional Aspose.Imaging features
16 - Test file formats
Default: All
--file-filter regex
Default: All files
–help No need value

Contribute

If you like to add or improve an example, we encourage you to contribute to the project. All examples and showcase projects in this repository are open source and can be freely used in your own applications.

To contribute, you can fork the repository, edit the source code and create a pull request. We will review the changes and include it in the repository if found helpful.