Topaz Gigapixel AI automation tool
Project description
Gigapixel
Topaz Gigapixel AI automation tool
Requirements • Installation • Usage • Contributing • License
Requirements
Topaz Gigapixel AI v6.3.3 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, scale=Scale.X2, mode=Mode.STANDARD, delete_from_history=True, output_format=OutputFormat.PNG)
# Print output path.
print(output_path)
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gigapixel-1.3.1.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for gigapixel-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05e8b69ece78d0b23520defbda7fc7ef1ea32c9ee92847cba4fca2ea0d501924 |
|
MD5 | 8389cd70698f3b97f8cbb33bb74ec713 |
|
BLAKE2b-256 | a5fb8920720202839265ddd9f50dc89732fe511d03db2cae82f0337fddc6a9d2 |