Skip to main content

Topaz Gigapixel AI automation tool

Project description


Gigapixel
Gigapixel

Topaz Gigapixel AI automation tool

PyPI Python 3 Tests

RequirementsInstallationUsageContributingLicense

Requirements

Topaz Gigapixel AI v6.1.0 or newer required

Installation

Install the current version with PyPI

pip install -U gigapixel

Usage

  1. Create Gigapixel instance
  2. 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

Project details


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.4.2.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

gigapixel-1.4.2-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file gigapixel-1.4.2.tar.gz.

File metadata

  • Download URL: gigapixel-1.4.2.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for gigapixel-1.4.2.tar.gz
Algorithm Hash digest
SHA256 00ddd4959ac5517b173d96ba7d12db8d99743ad1ea83007ac1991f857f3e57df
MD5 1bbfad5e99251411cf580f555c3e5483
BLAKE2b-256 8c535bb4c00d324c3e08b4ee4670884cd39c9000a7f1215c41448b170dcf3217

See more details on using hashes here.

File details

Details for the file gigapixel-1.4.2-py3-none-any.whl.

File metadata

  • Download URL: gigapixel-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for gigapixel-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f984a0a086a7e785a280044a74863653e5615ac5a6efc0f99b8270b399b2bd
MD5 4ed4667c2700283e38a3745bb33ca201
BLAKE2b-256 0bce536079c2c6fd27b0514b4ddb8263115c90d6df77c4c3525f405ff0fd2bda

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page