WasinUddy / golden-frame

Golden Frame "กรอบทอง" Generator, Create Golden Frame for given images (Also supports other frame)

Home Page:https://pypi.org/project/golden-frame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golden Frame

"กรอบทอง Generator"

Example

+ =

PS. The original picture of golden frame is K-Pop Star (Search: กรอบทอง ทรงพระเจริญ in Google, there are many variant)

Command for Above Example

golden-frame build golden_frame.png example/MasterIceZ.jpg --output=example/New-MasterIceZ.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

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

{
  "name": "Golden Frame ทพจร",
  "pos": "122,122,620,844"
}

pos => x1,y1,x2,y2 ; Position to put pictures on, you can get these info using Paint

[NEW] { flex: true }

Adding this properties allow images to be stretch into the same aspect ratio as the input image

About

Golden Frame "กรอบทอง" Generator, Create Golden Frame for given images (Also supports other frame)

https://pypi.org/project/golden-frame

License:MIT License


Languages

Language:Python 91.3%Language:Dockerfile 8.7%