-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
104 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
include assets/* | ||
include src/* | ||
include src/golden_frame/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "Vladimir Putin does not #StandWithUkraine but I do", | ||
"pos": "172,456,369,803" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,8 @@ | |
name = golden_frame | ||
description = Golden Frame Generator, Create Golden Frame for given images, it also supports other frame. | ||
long_description = file: README.md | ||
version = 0.1.10 | ||
long_description_content_type = text/markdown | ||
version = 0.1.24 | ||
license = MIT | ||
author = Leomotors | ||
author_email = [email protected] | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import typer | ||
|
||
from lib import PosOptions, buildFromPreset, listFrames | ||
|
||
app = typer.Typer() | ||
|
||
|
||
@app.command() | ||
def build(frame_name: str, input: str, output="output.png", pos=PosOptions.CENTER): | ||
"""Build the Golden Frame | ||
Args: | ||
frame_name (str): Name of Template Frame | ||
input (str): Location of your Image | ||
output (str, optional): Output Location. Defaults to "output.png". | ||
pos (0 | 1 | 2, optional): Position Type CENTER = 0, START = 1, END = 2. Defaults to CENTER. | ||
""" | ||
buildFromPreset(frame_name, input, output, pos) | ||
|
||
|
||
@app.command() | ||
def list(): | ||
"""Print List of Available Frames | ||
""" | ||
print(listFrames()) | ||
|
||
|
||
def main(): | ||
app() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters