Skip to content
/ Fiot Public

A simple program that replaces the original pixels of a picture with other things

License

Notifications You must be signed in to change notification settings

KnothHe/Fiot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fiot

Fill image with other things

A simple program that replaces the original pixels of a picture with other things

Prerequisites

Dependencies

Python interpreter and package Pillow.

Install Pillow

pip install Pillow

Usage

python fiot.py -h
  • Fill image with text
python fiot.py fit -h

or

python fit.py -h
  • Fill image with image[s]
python fiot.py fii -h

or

python fii.py -h

Result

Test image source

  • Original image: original image

  • Image filled with text (50x50): textify image

  • Image filled with itself (20x20): image filled with itself

  • Image filled with other image (10x10): image filled with other image

  • Image filled with images include itself (10x10): image filled with images include itself

Note

Because I want to use CJK text, I have set a font that supports CJK text Under the font directory.

You could specify the font to use, if the default font is not displayed

TODO

  • image on image (fii) command line parser
  • combine two programs, though it is very ugly now
  • add set background color argument
  • add whether loop text argument
  • specify whether use text in loop when text color and background color are the same

License

Though it is so tiny and may not good, it still has a licence.

The project is released under the MIT License.

Off topic

I don't know much about Python, so the code may not be very good.

At the same time, I am not sure whether the use of Noto font is infringing. If so, please let me know and I will delete it.

About

A simple program that replaces the original pixels of a picture with other things

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages