Golden Frame
"กรอบทอง Generator"
Examples
+
=
+
=
Command for Above Examples
golden-frame build golden_frame.png example/MasterIceZ.jpg --output=example/New-MasterIceZ.png
golden-frame build wessuwan.png example/honami-stella.jpg --output=example/honami-wessuwan.png
Other commands
Use golden-frame --help or golden-frame build help
Adding Images
Currently, to add images, add them directly in assets folder.
You can get its location with this command
import os
from pkg_resources import get_distribution
location = get_distribution("golden-frame").location
ASSET_PATH = os.path.join(location, "golden_frame/assets")
print(ASSET_PATH)
Note that this is temporary and can be overwrite when installing new version.
file_name.json Schema
{
"name": "Golden Frame ทพจร",
"pos": [
[122, 122],
[620, 122],
[620, 844],
[112, 844]
],
// Optional, for image scaling to ensure good quality
"defaultMultiplier": 2
}
Position is from Top-Left rotate clockwise.
Reminder that x goes from left to right and y from top to bottom
Live Demo
https://golden-frame.leomotors.me (Repo: https://github.com/leomotors/golden-frame-web)
Coming Soon { flex: true }
Adding this properties allow images to be stretch into the same aspect ratio as the input image
Metadata
Release files for golden-frame 2.1.74
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| golden_frame-2.1.74.tar.gz | 3.1 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| golden_frame-2.1.74-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 MB
Release files / golden_frame-2.1.74.tar.gz
| Download URL | golden_frame-2.1.74.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd03b912b9d56fb006da43ef8d114854732a23bb7dab5e666685865f7a51f2ca
|
|
BLAKE2b-256 checksum How to use checksums |
8ec61bc107f6158b9cbb9dfd2c507c6e2aa1c436b68962a7f289c829b5841fcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
|
Release files / golden_frame-2.1.74-py3-none-any.whl
| Download URL | golden_frame-2.1.74-py3-none-any.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8428c344d6656f56192d99c52b3aa15a427ec469747b5684b0deaadf1802184a
|
|
BLAKE2b-256 checksum How to use checksums |
637a1f63e3c359ba23de32b6b475643dc356bda6ee02380987a2b245af51ca51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
|
Security for golden-frame 2.1.74
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.