Easy to process picturse


Keywords
pip, ezpp, resize, reformat, recolor, shadow, icon, logo, yaml, render, photoshop, ps
License
MIT
Install
pip install ezpp==0.3.1

Documentation

中文文档

1. Install

pip3 install ezpp

2. What ezpp can and how

2.1 Picture process

What Before After How to
Frosted A icon before frosted A icon after defult frosted 🔗How to Frosted
ReColor picture before recolor picture after recolor 🔗How to ReColor
ReSize A icon before recolor A icon after recolor 🔗How to ReSize
ReFormat lego_mc_l.jpg(203k) lego_mc_l.webp(109k) 🔗How to ReFormat
Text2Icon "EzPP" Simplest call of text2icon 🔗How to Text2Icon
Shadow A clean background icon Shadow added on clean background 🔗How to Shadow
Render ezpp_slogan.yaml slogan 🔗How to Render

2.2 ListFonts

Display preview for font selection。

ezpp listfonts -s
ezpp listfonts -u
ezpp listfonts -d ./fonts_dir

-s system fonts (/System/Library/fonts)

-u user fonts (~/Library/fonts)

-d fonts in input dir

You can use -c/--imgcat for iterm2.And show preview in iterm2 directly.

ezpp listfonts -s -c
ezpp listfonts -s --imgcat 

It support ubuntu now.

3. Common params

Input file

Use '-i' or '--infile' provide a input file.

Only text2icon sub command not support -i

Output file

Use '-o' or '--outfile' provide a output file.

If you provide a '-p' or '--preview' flag . Output file will be ignored.

Recursive for subcommands

Use -r to process your images recursively。

The support for recursive calls for each subcommand is as follows:

subcommand support recursive
frosted yes
recolor yes
refmt yes
resize -s yes
resize -a no
text2icon no
shadow yes
render no
listfonts no

Use --overwrite to override the original images

The following command walks through the docs for images and turns them into frosted effects, directly overwriting the original image

$ ezpp frosted -r --overwrite -i docs

Use --preview to show your results directly

The following command walks through the docs for images and turns them into frosted effects, directly overwriting the original image

$ ezpp text2icon -t "EzPP" -c "#93f" -b "#543" --preview

ROADMAP

  • 1. Ignore colors when recolor a pic.

Recolor with -i flag

  • [Done] 2. Recolor/Resize all picture under a floder

  • 3. Localization help and output

https://www.cnblogs.com/ldlchina/p/4708442.html

https://docs.python.org/3/library/gettext.html

GNU gettext utilities

关于操作系统中英文切换的.po和.mo介绍

  • [Done] 4. Control whether to show preview after tranform picture.

  • [Done] 5. Layout support postion.

  • 6. Layout support Row and Column flex mode.

  • 7. Gif Animation.