Skip to main content

Wrappper for https://bigjpg.com/

Project description

Instalation

Pypi

pip install bigjpg

GitHub

pip install git+https://github.com/1Marcuth/bigjpg-py.git

Simple use example

from bigjpg import Bigjpg, styles, noices, enlarge_values

enlarger = Bigjpg("YOUR API TOKEN HERE")

image_info = enlarger.enlarge(
    style=styles.Art, # Type of image
    noise=noices._None, # Noise level to be removed
    enlarge_value=enlarge_values._4x, # Enlargement value
    image_url="https://avatars.githubusercontent.com/u/91915075?v=4" # Url of image to be enlarged
)

image_url = image_info.get_url() # Enlarged image url
image_info.download("enlarged_image.png") # Method to download enlarged image

print(image_url)

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

bigjpg-1.0.4.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file bigjpg-1.0.4.tar.gz.

File metadata

  • Download URL: bigjpg-1.0.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for bigjpg-1.0.4.tar.gz
Algorithm Hash digest
SHA256 e58ffa666c879abc9e2a272bc66b0eaf3883c5106fa6703e2e1b27dcf301eb56
MD5 e86c56a8fdc9d6e92ba788b1280fdc66
BLAKE2b-256 6a7ad14fac5f2ef8511706268e6c3fc14de36541bb2a41b1774a7c2c2f894c44

See more details on using hashes here.

Provenance

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