Topaz Gigapixel AI automation tool
Project description
Gigapixel
Topaz Gigapixel AI automation tool
Requirements • Installation • Usage • Contributing • License
Requirements
Topaz Gigapixel AI v6 of 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.0.tar.gz
(9.1 kB
view details)
Built Distribution
File details
Details for the file gigapixel-1.3.0.tar.gz
.
File metadata
- Download URL: gigapixel-1.3.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bf61e1857281db228633b8cc07565607930a5e280a4faa1a785ca7ad590f9f7 |
|
MD5 | 826d71a6a791ab316a1a902ce305df71 |
|
BLAKE2b-256 | 42a62caebb02bf2e20a17211694b1da24a36cd6d2b3373f94e8866e2303a82e1 |
File details
Details for the file gigapixel-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: gigapixel-1.3.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2628742f5ca6b91c8a7a53c131b878ebcda6c8cb859853fee6192311e8ca7282 |
|
MD5 | 82a90a2048670e9b52364f59d814f77b |
|
BLAKE2b-256 | 71e21643cb49a5d88165a69046c8c196403812b117c27afaf3a54e52f10586e9 |