Some tools created and used by myself
- Install dependent
pip install pillow numpy scikit-learn
- Run the program
python ColorExtract.py image.jpg
- Result will save as image_colorCode.jpg
- In Anaconda
conda create -n myenv python=3.8
conda activate myenv
- Install dependent
conda install -c conda-forge opencv numpy scikit-learn pillow
- Run the program
python FilmColorPalette.py <file_path> <num_colors>
- Result will save as <film_name>_colorBar.jpg
- Fill your Imgur API client_id and client_secret in code below.
client_id = 'Your Client ID'
client_secret = 'Your Client Secret'
- Rename your Markdown file to new_markdown_file.md
- Install imgurpython
pip install imgurpython
- Run the program
python ConvertMarkdownImageLinks2imgur.py
Due to the speed limit of Imgur, only 50 uploads per IP per hour. You need to change your IP when you see the warning message.
Combine all 8 seperated NASA Blue Marble Images(21600 x 21600, due to the resaulation limit of image file) into one(86400 x 43200).
Example image: https://visibleearth.nasa.gov/images/73884/november-blue-marble-next-generation-w-topography-and-bathymetry
- Download all 8 part images(A1, A2, B1, B2, C1, C2, D1, D2) in one folder.
- Download NASABlueMarbleImageProcess.py into the same folder.
- Install dependent
conda install -c conda-forge opencv numpy
- Run the program
python NASABlueMarbleImageProcess.py [any 1 of the 8 image file names]
Attention: It would take up to 20GB of RAM of your computer, make sure you have enough free RAM.