gigapixel 1.4.2

Creator: bradpython12

Last updated:

Add to Cart

Description:

gigapixel 1.4.2

Gigapixel


Topaz Gigapixel AI automation tool






Requirements •
Installation •
Usage •
Contributing •
License

Requirements
Topaz Gigapixel AI v6.1.0 or newer required
Installation
Install the current version with PyPI
pip install -U gigapixel

Usage

Create Gigapixel instance
Use .process() method to enhance image

from gigapixel import Gigapixel, Scale, Mode, OutputFormat
from pathlib import Path

# Path to Gigapixel executable file.
exe_path = Path('C:\Program Files\Topaz Labs LLC\Topaz Gigapixel AI\Topaz Gigapixel AI.exe')

# Output file suffix. (e.g. pic.jpg -> pic-gigapixel.jpg)
# You should set same value inside Gigapixel (File -> Preferences -> Default filename suffix).
output_suffix = '-gigapixel'

# Create Gigapixel instance.
app = Gigapixel(exe_path, output_suffix)

# Process image.
image = Path('path/to/image.jpg')
output_path = app.process(image)

# Print output path.
print(output_path)

Additional parameters can be passed to process() method (Takes additional time):
from gigapixel import Scale, Mode, OutputFormat

output_path = app.process(image, scale=Scale.X2, mode=Mode.STANDARD, delete_from_history=True, output_format=OutputFormat.PNG)


Warning!
Using parameters (scale, mode, output_format, delete_from_history) will take additional time to process single image.
Consider using them only when needed.
To get the best performance, use app.process(image)

Contributing
Bug reports and/or pull requests are welcome
License
The module is available as open source under the terms of the Apache License, Version 2.0

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.