Skip to content

Latest commit

 

History

History
executable file
·
64 lines (37 loc) · 831 Bytes

File metadata and controls

executable file
·
64 lines (37 loc) · 831 Bytes

TODO

Center

Center an image about a specific point adding space to the borders.

Basic Installation

Create a virtualenv:

virtualenv-3.7 cen-env
source cen-env/bin/activate

Running examples

Before running the examples:

Start mobaxterm
source cen-env/bin/activate
cd examples

Hello

Do the following:

python hello.py

A small window will pop up.

image_gif

Do the following:

python image_gif.py

A gif file will be displayed.

image_png

Do the following:

python image_png.py

A png file will be displayed.

Notes

Next is to add white space padding (already computed) to recenter the image.

google imagemagick add white space