hanzhi713 / image-collage-maker

A photo mosaic (pixel collage) maker. Use all your friends' profile pictures to approximate your profile picture! 如何用 Python 制作一个炫酷的微信好友图
MIT License
156 stars 14 forks source link

--resize_opt center not work #11

Closed Cha0sX closed 2 years ago

Cha0sX commented 2 years ago

here is the command. python3 make_img.py --path ~/Documents/photo/resize --dest_img ~/Documents/photo/20190607_131053.jpg --size 200 --dup 4 --unfair --freq_mul 100.0 --blending alpha --blending_level 0.1 --resize_opt center --out ~/Documents/photo/result_unfair-dup-4-freq-100-alpha-0_1_cen_200.png the result is each tile does not crop the center, but stretch to fit the square

hanzhi713 commented 2 years ago

Should be fixed by de080df. Thanks for pointing it out. Let me know if it works.

hanzhi713 commented 2 years ago

By the way, --dup option only works with the fair tile usage mode (i.e. without the --unfair flag). If you want it to work with the --unfair flag, let me know so I can add this to my code.

Cha0sX commented 2 years ago

It works perfectly! And I though the --dup option is means how many times can a tile be used at most, no matter about fair/unfair, but this feature depends on your implementation. Maybe not a good idea :)