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
A sketch like(?) effect for images

lineArt A sketch like(?) effect for images How to run main.py [filename] [option {1,2}] option 1 retains colour option 2 gives gray image #results ori

1 Oct 28, 2021
🎶😤 Generate an image indicating what you are listening to 😳

I'm Listening to This (song that I've sent you an image about detailing its metadata in a nifty way) Few lines describing your project. 📝 Table of Co

Connor B - Viibrant 4 Nov 03, 2021
Transfers a image file(.png) to an Excel file(.xlsx)

Transfers a image file(.png) to an Excel file(.xlsx)

Junu Kwon 7 Feb 11, 2022
Maze generator with most popular shapes - hexagon, triangle, square

Maze-Generator Maze generator with most popular shapes - hexagon, triangle, square (sqaure not implemented yet): Theory: Planar Graph https://en.wikip

Kacper Plesiak 2 Dec 28, 2021
A proof-of-concept implementation of a parallel-decodable PNG format

mtpng A parallelized PNG encoder in Rust by Brion Vibber [email protected] Backgrou

Brion Vibber 193 Dec 16, 2022
Simple Python image processing & automatization project for a simple web based game

What is this? Simple Python image processing & automatization project for a simple web based game Made using only Github Copilot (except the color and

SGeri 2 Aug 15, 2022
An API that renders HTML/CSS content to PNG using Chromium

html_png An API that renders HTML/CSS content to PNG using Chromium Disclaimer I am not responsible if you happen to make your own instance of this AP

10 Aug 08, 2022
The ctypes-based simple ImageMagick binding for Python

Wand Wand is a ctypes-based simple ImageMagick binding for Python, supporting 2.7, 3.3+, and PyPy. All functionalities of MagickWand API are implement

Eric McConville 1.2k Dec 30, 2022
Simple utility to tinker with OPlus images

OPlus image utilities Prerequisites Linux running kernel 5.4 or up (check with uname -r) Image rebuilding Used to rebuild read-only erofs images into

Wiley Lau 15 Dec 28, 2022
LSB Image Steganography Using Python

Steganography is the science that involves communicating secret data in an appropriate multimedia carrier, e.g., image, audio, and video files

Mahmut Can Gönül 2 Nov 04, 2021
Simple to use image handler for python sqlite3.

SQLite Image Handler Simple to use image handler for python sqlite3. Functions Function Name Parameters Returns init databasePath : str tableName : st

Mustafa Ozan Çetin 7 Sep 16, 2022
Pyconvert is a python script that you can use to convert image files to another image format! (eg. PNG to ICO)

Pyconvert is a python script that you can use to convert image files to another image format! (eg. PNG to ICO)

1 Jan 16, 2022
Kainat 13 Mar 07, 2022
Xmas-Tree-GIF-Tool - Convert any given animated gif file into an animation in GIFT CSV format

This repo is made to participate in Matt Parker's XmasTree 2021 event. Convert a

Aven Zitzelberger 2 Dec 30, 2021
A scalable implementation of WobblyStitcher for 3D microscopy images

WobblyStitcher Introduction A scalable implementation of WobblyStitcher Dependencies $ python -m pip install numpy scikit-image Visualization ImageJ

CSE Lab, ETH Zurich 7 Jul 25, 2022
Fast Image Retrieval (FIRe) is an open source image retrieval project

Fast Image Retrieval (FIRe) is an open source image retrieval project release by Center of Image and Signal Processing Lab (CISiP Lab), Universiti Malaya. This project implements most of the major bi

CISiP Lab 39 Nov 25, 2022
This repository will help you get label for images in Stanford Cars Dataset.

STANFORD CARS DATASET stanford-cars "The Cars dataset contains 16,185 images of 196 classes of cars. The data is split into 8,144 training images and

Nguyễn Trường Lâu 3 Sep 20, 2022
Create a QR-code Generator app using only Python.

QR-code_Generator Create a QR-code Generator app using only Python. This apps generated a QR code for a single link. Libraryes used in this app -- py

Soham P Phasalkar 1 Oct 17, 2021
Bringing vtk.js into Dash and Python

Dash VTK Dash VTK lets you integrate the vtk.js visualization pipeline directly into your Dash app. It is powered by react-vtk-js. Docs Demo Explorer

Plotly 88 Nov 29, 2022
Computational Xmas Tree lights!

Computational Xmas Tree This repo contains the code for the computational illumination of a Christmas Tree! It is based on the work by Matt Parker fro

GSD6338 146 Dec 23, 2022