pyins package

Submodules

pyins.pyins module

pyins.pyins.land_split(pic_name, color='b')[source]

Split one landscape pic into two continuous portrait pics.

Parameters:
  • pic_name (str) – Name of the pic file, e.g. “pic_1.jpg”
  • color (str) – Color used to fill the empty sidebars. [‘b’, ‘w’], ‘b’-black, ‘w’-white
Returns:

Return type:

None. Processed pics will be saved into ‘output’ folder.

Examples

>>> from pyins import pyins
>>> pyins.land_split('pic_1.jpg', color='b')
pyins.pyins.split_black_all()[source]

Do land_split to all the pics in current folder and fill with black.

Parameters:None
Returns:
Return type:None. Processed pics will be saved into ‘output’ folder.

Examples

>>> from pyins import pyins
>>> pyins.split_black_all()
pyins.pyins.split_white_all()[source]

Do land_split to all the pics in current folder and fill with white.

Parameters:None
Returns:
Return type:None. Processed pics will be saved into ‘output’ folder.

Examples

>>> from pyins import pyins
>>> pyins.split_white_all()

Module contents