Generate_NFT : Create random mutations of a picture for NFT collections
What is it?
generate-nft is a Python package that creates multiple random mutations of a given picture without needing to feed separate layers of the image. Just provide one image and it can generate multiple variants of that image quickly.
Version = 0.0.4
Main Features
Here are just a few of the things that generate-nft does internally:
- Split the given image into mutliple color channels - RGB, RGBA etc..
- Mix and match these color channels randomly to create unique images
- Creates random background images to make it more unique
- enhance the color, contrast & brightness of the image randomly
- Define an experiment name - the output files will be stored with that name as prefix
Where to get it
The source code is currently hosted on GitHub at: https://github.com/Mcprasad/Generate_NFT
Binary installers for the latest released version are available at the Python Package Index (PyPI)
#PyPI
pip install generate-nft
To update the existing version of the package
#pypi
pip install -U generate-nft
Installation from sources
Follow the steps given below to install the package from the source
- Clone the github repo
https://github.com/Mcprasad/Generate_NFT.git
- Run setup.py
python3 setup.py sdist bdist_wheel
How to use
from Generate_NFT import generate_art
generate_art.generate("input_image_path","output_image_directory",number_of_mutations,output_width,output_height,experiment_name)
An example is shown below:
from Generate_NFT import generate_art
#Program will output with the given experiment name as the prefix
experiment_name = "mountains"
generate_art.generate("/documents/img.jpg","/documents/output/",50,1920,1920,experiment_name)
License
Future Ideas
- Ability to combine traits from multiple images
- Extract objects from an image and superimpose those
- Generate meta data for each image in ERC721 standard
- Ability to launch the collections into a preferred blockchain; create and register contract, link metamask wallet and IPFS
Metadata
Release files for generate-nft 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| generate_nft-0.0.4.tar.gz | 3.5 kB | Without provenance | Details for generate_nft-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| generate_nft-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for generate_nft-0.0.4-py3-none-any.whl |
Total release size: 8.1 kB
Release files / generate_nft-0.0.4.tar.gz
| Download URL | generate_nft-0.0.4.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
019c25fdaa283434ed9bde7f9e11c957c648a8a549a4ace40e8526be25164ce0
|
|
BLAKE2b-256 checksum How to use checksums |
af2415f2ab7315cfe3d8ce4acda8a2ebf779e597eeaf3a39b7b1861d520222f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Release files / generate_nft-0.0.4-py3-none-any.whl
| Download URL | generate_nft-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2cc7259c63b0c42af35a41b6f72d74ec800cc86e3873e296c876c01937cb53bd
|
|
BLAKE2b-256 checksum How to use checksums |
388567e5b22fbe3a9f56717d954e07388ea71ad175c926fc096ad0ddbb6f0bd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Security for generate-nft 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.