Wrappper for https://bigjpg.com/
Project description
Instalation
Pypi
pip install bigjpg
GitHub
pip install git+https://github.com/1Marcuth/py.bigjpg.git
Simple use example
from bigjpg import Bigjpg, Styles, Noises, EnlargeValues
bigjpg = Bigjpg("YOUR API TOKEN HERE")
image_info = bigjpg.enlarge(
style = Styles.Art, # Type of image
noise = Noises._None, # Noise level to be removed
enlarge_value = EnlargeValues._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.1.0.tar.gz
(2.8 kB
view details)
File details
Details for the file bigjpg-1.1.0.tar.gz
.
File metadata
- Download URL: bigjpg-1.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9eb21780ac73aff49c577b644ae8ceb2570ede66aba3ded39532f2cb7765ae8 |
|
MD5 | d7f6d89f82d4a4e5e3408c5d8e3cf3c8 |
|
BLAKE2b-256 | b604f6c2db6a6b6a75891e271577c2ae1eb80df8d46f2acc07f379cfd2df9afb |