Topaz Gigapixel AI automation tool
Project description
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, useapp.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
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
Built Distribution
File details
Details for the file gigapixel-1.4.0.tar.gz
.
File metadata
- Download URL: gigapixel-1.4.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98684cf271e4ef7ba77c0c499e8f34ba7b1b8b1769cd2ae03c83043286072e04 |
|
MD5 | 5854ec3c6d0eeb8a2c1c86c64a3e5778 |
|
BLAKE2b-256 | 576ffb39119817d86d08ca7ebf1977efbbbf4e044cd8a8bdaecbcf8e85666409 |
File details
Details for the file gigapixel-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: gigapixel-1.4.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acfe13e7f7b5089e8007062539b7c49b7268b001667faad95b50e844099ca96f |
|
MD5 | c5e6c6f78cb9257257a95377da039e77 |
|
BLAKE2b-256 | 8cdd4a48211f59de463e225ecad1405bfd7d11d9331499a1c5972a90dd5cc93c |