Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Reframe

Tests Python OpenCV

Changes any supported image's aspect ratio by resizing the original image to create a blured background.

Instalation

$ pip install -r requirements.txt

Arguments

usage: reframe [-h] [-i INPUT] [-o OUTPUT] [-a ASPECT] [--save] [--show]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        input image
  -o OUTPUT, --output OUTPUT
                        output image destination. [Defaults to "current\dir\output.png"]
  -a ASPECT, --aspect ASPECT
                        desired aspect ration.
                        [Defaults to 1]
                        [Formats d, d.d, d/d, d:d]
                        [Exemples 1, 1.5, 16/9, 16:9]
  --save                Save output file.
  --show                Show output file.

Usage

$ python -m reframe -i path/to/image.png --save --show -a 16:9

Results

$ python -m reframe -i tests/test.png -o demo.png --aspect 2 --save

demo image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages