代码拉取完成,页面将自动刷新
👷 Build images with images.
Tiler is a tool to create an image using all kinds of other smaller images (tiles). It is different from other mosaic tools since it can adapt to tiles with multiple shapes and sizes (i.e. not limited to squares).
An image can be built out of circles, lines, waves, cross stitches, legos, minecraft blocks, paper clips, letters, ... The possibilities are endless!
git clone https://github.com/nuno-faria/tiler.git
;pip install -r requirements.txt
python tiler.py path/to/image path/to/tiles_folder/
.All configurations can be changed in the conf.py
file.
gen_tiles.py
DEPTH
- number of divisions in each color channel (ex: DEPTH = 4 -> 4 * 4 * 4 = 64 colors);ROTATIONS
- list of rotations, in degrees, to apply over the original image (ex: [0, 90]).tiler.py
COLOR_DEPTH
- number of divisions in each color channel (ex: COLOR_DEPTH = 4 -> 4 * 4 * 4 = 64 colors);RESIZING_SCALES
- scale to apply to each tile (ex: [1, 0.75, 0.5, 0.25]);PIXEL_SHIFT
- number of pixels shifted to create each box (ex: (5,5)); if None, shift will be the same as the tile dimension);
OVERLAP_TILES
- if tiles can overlap;RENDER
- render image as its being built;POOL_SIZE
- multiprocessing pool size;IMAGE_TO_TILE
- image to tile (ignored if passed as the 1st arg);TILES_FOLDER
- folder with tiles (ignored if passed as the 2nd arg);OUT
- result image filename.Original cake image by pongsakornred from FLATICON.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。