NFT collection generator. Generates layered images

Overview

NFT collection generator

Generates layered images, whole collections. Provides additional functionality.

Repository includes three scripts

Installation

pip install -r requirements.txt

generate.py

Generates layered images.

Set environment variables in .env file

/ URL_TO_IMAGE=change_me_later COLLECTION_SIZE=10 # metadata files have field "name": # like CryptoPunk #10 NAME=NAME PATH_TO_JSON=./layers.json PATH_TO_LAYERS=./layers PATH_TO_IMAGES=./images PATH_TO_METADATA=./metadata">
# metadata files have field "image 
      
       /
       
      
URL_TO_IMAGE=change_me_later
COLLECTION_SIZE=10
# metadata files have field "name": 
      
        #
       
         like CryptoPunk #10
       
      
NAME=NAME
PATH_TO_JSON=./layers.json
PATH_TO_LAYERS=./layers
PATH_TO_IMAGES=./images
PATH_TO_METADATA=./metadata

layers.json

{
    "first-layer": [
        {
            "name": "name",
            "fileName": "filename.png",
            "weight": 100
		}
    ]
}

Main JSON objects like first-layer should equal folders inside ./layers and objects names will equal attributes names in metadata files.

Note: sum of wheights inside one main object should equal 100

Run

python generate.py

resize.py

This script scales your images. Marketplace doesn't display small images like 12 pixels images correctly.

Set environment variables in .env file

PATH_TO_IMAGES=./images
# path for resized images
PATH_TO_RESIZED_IMAGES=./images-resized
# new sizes
OUTPUT_IMAGE_SIZE_X=576
OUTPUT_IMAGE_SIZE_Y=576

###Run

python resize.py

change_url.py

This script change image field in metadata files.

Set environment variables in .env file

URL_TO_IMAGE=change_me_later
NEW_URL_TO_IMAGE=ipfshash
PATH_TO_METADATA=./metadata

Run

python change_url.py

License

Usage is provided under the MIT License. See LICENSE for the full details.

Owner
Gleb Gonchar
Young Backend Developer
Gleb Gonchar
Collection of SVG diagrams about how UTF-8 works

Diagrams Repository of diagrams made for articles on my blog. All diagrams are created using diagrams.net. UTF-8 Licenses Copyright 2022 Seth Michael

Seth Michael Larson 24 Aug 13, 2022
EmbedToolV2 - 2.0 Version of DraKenCodeZ/ImageEmbedTool

EmbedToolV2 - 2.0 Version of DraKenCodeZ/ImageEmbedTool

DraKenCodeZ 1 Dec 07, 2021
Convert bitmap images to seeds for Tiny-83 NFT project.

What is this? This tool allows you to convert any 14p high and 22p wide Bitmap (.bmp) to the seed needed for the Tiny-83 NFT project. Project Twitter:

shib_maximalist 1 Oct 31, 2021
Python implementation of image filters (such as brightness, contrast, saturation, etc.)

PyPhotoshop Python implementation of image filters Use Python to adjust brightness and contrast, add blur, and detect edges! Follow along tutorial: ht

Kylie 87 Dec 15, 2022
Program to export all new icons from the latest Fortnite patch

Assets Exporter This program allows you to generate all new icons of a patch in png! Requierements Python =3.8 (installed on your computer) If you wa

ᴅᴊʟᴏʀ3xᴢᴏ 6 Jun 24, 2022
Python library for ascii graphics

Python library for ascii graphics

Anton 6 Oct 20, 2021
Small wrapper around 3dmol.js and html2canvas for creating self-contained HTML files that display a 3D molecular representation.

Description Small wrapper around 3dmol.js and html2canvas for creating self-contained HTML files that display a 3D molecular representation. Double cl

David Meijer 1 Dec 02, 2021
A Blender add-on to create interesting meshes using symmetry

Procedural Symmetries This Blender add-on automates the process of iteratively applying a set of reflection planes to a base mesh. The result will con

1 Dec 29, 2021
Program designed to mass edit and watermark all photos in a directory

Photographer-All-In-One This is a program designed for photographers to mass edit or watermark photos (.jpg || .png) You can run this program from any

Brad Martin 2 Nov 23, 2021
Python Script to generate posters out of the images in directory.

Poster-Maker Python Script to generate posters out of the images in directory. This version is very basic ligthweight code to combine organize images

1 Feb 02, 2022
Tool that takes your photo and generates a pixelated color by number photo.

Color by number Tool that takes your photo and generates a pixelated color by number photo. Requirements You need to have python installed on your com

1 Dec 18, 2021
Image manipulation package used for EpicBot.

Image manipulation package used for EpicBot.

Nirlep_5252_ 7 May 26, 2022
Napari 3D Ortho Viewer - an ortho viewer for napari for 3D images

napari-3d-ortho-viewer Napari 3D Ortho Viewer - an ortho viewer for napari for 3D images This napari plugin was generated with Cookiecutter using @nap

niklas netter 5 Nov 28, 2022
GPU-accelerated image processing using cupy and CUDA

napari-cupy-image-processing GPU-accelerated image processing using cupy and CUDA This napari plugin was generated with Cookiecutter using with @napar

Robert Haase 16 Oct 26, 2022
Multi-view 3D reconstruction using neural rendering. Unofficial implementation of UNISURF, VolSDF, NeuS and more.

Multi-view 3D reconstruction using neural rendering. Unofficial implementation of UNISURF, VolSDF, NeuS and more.

Jianfei Guo 683 Jan 04, 2023
Black-white image converter - Black-white photo colorization

Black-white image converter - Black-white photo colorization

1 Jan 02, 2022
Image histogram remapping

Hmap An image histogram remapping script written in Python 2.7 by Anthony Kesich and Ross Goodwin. Changes source image so that source image's histogr

Ross Goodwin 199 Nov 19, 2022
Fast batch image resizer and rotator for JPEG and PNG images.

imgp is a command line image resizer and rotator for JPEG and PNG images.

Terminator X 921 Dec 25, 2022
Digital image process Basic algorithm

These are some basic algorithms that I have implemented by my hands in the process of learning digital image processing, such as mean and median filtering, sharpening algorithms, interpolation scalin

JingYu 2 Nov 03, 2022