-
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
19 changed files
with
148 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ main ] | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'python' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Learn more about CodeQL language support at https://git.io/codeql-language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
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,23 @@ | ||
name: Publish Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*.*" | ||
|
||
jobs: | ||
main: | ||
name: Publish Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Publish Release | ||
uses: Leomotors/auto-publish-release@main | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE_TITLE: "Golden Frame {VERSION}" | ||
VERSION_MUST_INCREASE: true | ||
TAG: ${{ github.ref }} |
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,7 @@ | ||
# Changelog | ||
|
||
All notables change for Cocoa Discord Utils will be noted here | ||
|
||
## [1.0.50] - 2022-06-11 | ||
|
||
- Initial Release on Main PyPi after many attempts |
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,3 +1 @@ | ||
include assets/* | ||
include src/* | ||
include src/golden_frame/* | ||
include golden_frame/assets/* |
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,36 +1,48 @@ | ||
# Golden Frame | ||
|
||
กรอบทอง Generator | ||
[![](https://img.shields.io/pypi/v/golden-frame)](https://pypi.org/project/golden-frame) | ||
[![](https://img.shields.io/pypi/dm/golden-frame)](https://pypi.org/project/golden-frame) | ||
|
||
_work in progress, making a Python Package is so complex just like npm_ | ||
"กรอบทอง Generator" | ||
|
||
## Example | ||
|
||
<img src="assets/golden_frame.png" width=200 /> **+** | ||
<img src="example/zhongxina_before.jpg" width = 200 /> **=** | ||
<img src="example/zhongxina_after.png" width=200 /> | ||
<img src="https://github.com/Leomotors/golden-frame/raw/main/golden_frame/assets/golden_frame.png" width=200 /> **+** | ||
<img src="https://github.com/Leomotors/golden-frame/raw/main/example/zhongxina_before.jpg" width = 200 /> **=** | ||
<img src="https://github.com/Leomotors/golden-frame/raw/main/example/zhongxina_after.png" width=200 /> | ||
|
||
PS. The original picture of golden frame is K-Pop Star (Search: กรอบทอง ทรงพระเจริญ in Google, there are many variant) | ||
|
||
### Command for Above Example | ||
|
||
```bash | ||
src/cli.py build golden_frame.png example/zhongxina_before.jpg --output=example/zhongxina_after.png | ||
golden-frame build golden_frame.png example/zhongxina_before.jpg --output=example/zhongxina_after.png | ||
``` | ||
|
||
### Other commands | ||
|
||
Use `golden-frame --help` | ||
|
||
## Adding Images | ||
|
||
Currently, to add images, add them directly in assets folder. | ||
|
||
You can get its location with this command | ||
|
||
```python | ||
import pkg_resources | ||
pkg_resources.resource_filename("golden_frame", "assets") | ||
``` | ||
|
||
Note that this is temporary can be overwrite when installing new version. | ||
|
||
file_name.json Schema | ||
|
||
```json | ||
{ | ||
"name": "Golden Frame ทพจร", | ||
"pos": "40,40,205,278" | ||
"pos": "122,122,620,844" | ||
} | ||
``` | ||
|
||
pos => x1,y1,x2,y2 ; Position to put pictures on, you can get these info using Paint | ||
|
||
## TODO | ||
|
||
- Upload to PyPi (This is so mucking hard, muck Python) |
Binary file not shown.
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 @@ | ||
from golden_frame.lib import * |
2 changes: 1 addition & 1 deletion
2
assets/golden_frame.json → golden_frame/assets/golden_frame.json
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,4 +1,4 @@ | ||
{ | ||
"name": "Golden Frame ทพจร", | ||
"pos": "40,40,206,280" | ||
"pos": "122,122,620,844" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
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
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
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
Empty file.