Skip to content

Take tow imagen and merge, taking first one like template or base, and the second one inset to center, with 80% inside the first

License

Notifications You must be signed in to change notification settings

jalmx/generate_infog_code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Generate infographic 🤖

Version License: MIT Twitter: xizuth

Tool cli for generate a merge of images, the first one is the base, the second one will be insert inside the first, adjust to 80% to space. You can specify a csv file with this information, see example.

Examples to use:

    generate_infog base_template.png code_file.py  
    generate_infog base_template.png imagen.png
    generate_infog base_template.png dir_with_files
    generate_infog list_to_create.csv
    
Example csv file:

    |path imagen base | path text file code or imagen|
    |-----------------|------------------------------|
    |base_sqrt.png    |package.json                  |
    |base_rect.png    |code.png                      |
    |base.png         |__main__.py                   |
    
More information:

    https://github.com/jalmx/generate_infog_code

By Xizuth 
2023

Run for code

python src/__main__.py base_image.png code.py

How to use

  • Step 1. Add absolute path from carbon-now-cli to file config_start.py, and other data
  • Step 2. Install all dependencies
generate_infog base_template.png code_file.py  
generate_infog base_template.png imagen.png
generate_infog base_template.png dir_with_files
generate_infog list_to_create.csv

Example for the format to csv file

path imagen base path text file code or imagen
base_sqrt.png package.json
base_rect.png main.js
base.png _main_.py
base.png image.png
base_sqrt.png image.jpeg
base2.png image.jpg

Note: Yet implementation the second param for image, just the code file 🤕

Install

npx playwright install # if fail, can try `npm install -g playwright`

npm i -g carbon-now-cli --force --ignore-scripts # adds this flags in case failed
python -m venv .venv
source bin/activate
pip install -r requirements.txt

recommendation, use nvm for manage dependencies from node

Dependencies

npm

carbon-now-cli

To install, if you in mac or linux, use sudo or if you use nvm is not necessary permission

npm install -g carbon-now-cli

Then, need to config

python

pillow

python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow

build release

Script bash pyinstaller

sudo chmod +x build.sh
./build.sh

Show you how to created release

auto-py-to-exe

auto-py-to-exe

install

# download bin

wget https://raw.githubusercontent.com/jalmx/generate_infog_code/master/release/generate_info_lasted -c -x -O  $HOME/.local/bin/generate_info

# Make executable
sudo chmod +x $HOME/.local/bin/generate_info

Author

👤 Xizuth

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

Take tow imagen and merge, taking first one like template or base, and the second one inset to center, with 80% inside the first

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published