Skip to content

TimNekk/Gigapixel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2151c7a · Jul 31, 2022

History

20 Commits
Jul 22, 2022
Jul 31, 2022
Jul 22, 2022
Jul 22, 2022
Jul 22, 2022
Jul 22, 2022
Jul 22, 2022
Jul 22, 2022
Jul 22, 2022
Jul 22, 2022
Jul 22, 2022
Jul 22, 2022

Repository files navigation


Gigapixel
Gigapixel

Topaz Gigapixel AI automation tool

PyPI Python 3 Tests

RequirementsInstallationUsageContributingLicense

Requirements

Topaz Gigapixel AI v6 of 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
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)

# 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