golden-frame


Namegolden-frame JSON
Version 2.1.74 PyPI version JSON
download
home_pagehttps://github.com/leomotors/golden-frame
SummaryGolden Frame "กรอบทอง" Generator, Create Golden Frame for given images (Also supports other frame, included with selected quality frames)
upload_time2024-03-20 16:49:16
maintainerNone
docs_urlNone
authorNutthapat Pongtanyavichai
requires_python<4.0,>=3.9
licenseMIT
keywords meme meme-generator
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Golden Frame

[![](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)

"กรอบทอง Generator"

## Examples

<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/MasterIceZ.jpg" width = 200 /> **=**
<img src="https://github.com/Leomotors/golden-frame/raw/main/example/New-MasterIceZ.png" width=200 />

<img src="https://github.com/Leomotors/golden-frame/raw/main/golden_frame/assets/wessuwan.png" width=200 /> **+**
<img src="https://github.com/Leomotors/golden-frame/raw/main/example/honami-stella.jpg" width = 200 /> **=**
<img src="https://github.com/Leomotors/golden-frame/raw/main/example/honami-wessuwan.png" width=200 />

### Command for Above Examples

```bash
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

```python
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

```jsonc
{
  "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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/leomotors/golden-frame",
    "name": "golden-frame",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "meme, meme-generator",
    "author": "Nutthapat Pongtanyavichai",
    "author_email": "59821765+Leomotors@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/8e/c6/1bc107f6158b9cbb9dfd2c507c6e2aa1c436b68962a7f289c829b5841fcd/golden_frame-2.1.74.tar.gz",
    "platform": null,
    "description": "# Golden Frame\n\n[![](https://img.shields.io/pypi/v/golden-frame)](https://pypi.org/project/golden-frame)\n[![](https://img.shields.io/pypi/dm/golden-frame)](https://pypi.org/project/golden-frame)\n\n\"\u0e01\u0e23\u0e2d\u0e1a\u0e17\u0e2d\u0e07 Generator\"\n\n## Examples\n\n<img src=\"https://github.com/Leomotors/golden-frame/raw/main/golden_frame/assets/golden_frame.png\" width=200 /> **+**\n<img src=\"https://github.com/Leomotors/golden-frame/raw/main/example/MasterIceZ.jpg\" width = 200 /> **=**\n<img src=\"https://github.com/Leomotors/golden-frame/raw/main/example/New-MasterIceZ.png\" width=200 />\n\n<img src=\"https://github.com/Leomotors/golden-frame/raw/main/golden_frame/assets/wessuwan.png\" width=200 /> **+**\n<img src=\"https://github.com/Leomotors/golden-frame/raw/main/example/honami-stella.jpg\" width = 200 /> **=**\n<img src=\"https://github.com/Leomotors/golden-frame/raw/main/example/honami-wessuwan.png\" width=200 />\n\n### Command for Above Examples\n\n```bash\ngolden-frame build golden_frame.png example/MasterIceZ.jpg --output=example/New-MasterIceZ.png\n\ngolden-frame build wessuwan.png example/honami-stella.jpg --output=example/honami-wessuwan.png\n```\n\n### Other commands\n\nUse `golden-frame --help` or `golden-frame build help`\n\n## Adding Images\n\nCurrently, to add images, add them directly in assets folder.\n\nYou can get its location with this command\n\n```python\nimport os\nfrom pkg_resources import get_distribution\nlocation = get_distribution(\"golden-frame\").location\nASSET_PATH = os.path.join(location, \"golden_frame/assets\")\nprint(ASSET_PATH)\n```\n\nNote that this is temporary and can be overwrite when installing new version.\n\n`file_name.json` Schema\n\n```jsonc\n{\n  \"name\": \"Golden Frame \u0e17\u0e1e\u0e08\u0e23\",\n  \"pos\": [\n    [122, 122],\n    [620, 122],\n    [620, 844],\n    [112, 844]\n  ],\n  // Optional, for image scaling to ensure good quality\n  \"defaultMultiplier\": 2\n}\n```\n\nPosition is from Top-Left rotate clockwise.  \nReminder that x goes from left to right and y from top to bottom\n\n## Live Demo\n\nhttps://golden-frame.leomotors.me (Repo: https://github.com/leomotors/golden-frame-web)\n\n## Coming Soon { flex: true }\n\nAdding this properties allow images to be stretch into the same aspect ratio as the input image\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Golden Frame \"\u0e01\u0e23\u0e2d\u0e1a\u0e17\u0e2d\u0e07\" Generator, Create Golden Frame for given images (Also supports other frame, included with selected quality frames)",
    "version": "2.1.74",
    "project_urls": {
        "Homepage": "https://github.com/leomotors/golden-frame",
        "Repository": "https://github.com/leomotors/golden-frame"
    },
    "split_keywords": [
        "meme",
        " meme-generator"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "637a1f63e3c359ba23de32b6b475643dc356bda6ee02380987a2b245af51ca51",
                "md5": "4693624e79da4a09363d4bc2bb51e3dc",
                "sha256": "8428c344d6656f56192d99c52b3aa15a427ec469747b5684b0deaadf1802184a"
            },
            "downloads": -1,
            "filename": "golden_frame-2.1.74-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4693624e79da4a09363d4bc2bb51e3dc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 3060014,
            "upload_time": "2024-03-20T16:49:13",
            "upload_time_iso_8601": "2024-03-20T16:49:13.552467Z",
            "url": "https://files.pythonhosted.org/packages/63/7a/1f63e3c359ba23de32b6b475643dc356bda6ee02380987a2b245af51ca51/golden_frame-2.1.74-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8ec61bc107f6158b9cbb9dfd2c507c6e2aa1c436b68962a7f289c829b5841fcd",
                "md5": "7dcf915336662792c940dbdf93b18d80",
                "sha256": "cd03b912b9d56fb006da43ef8d114854732a23bb7dab5e666685865f7a51f2ca"
            },
            "downloads": -1,
            "filename": "golden_frame-2.1.74.tar.gz",
            "has_sig": false,
            "md5_digest": "7dcf915336662792c940dbdf93b18d80",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 3059679,
            "upload_time": "2024-03-20T16:49:16",
            "upload_time_iso_8601": "2024-03-20T16:49:16.045614Z",
            "url": "https://files.pythonhosted.org/packages/8e/c6/1bc107f6158b9cbb9dfd2c507c6e2aa1c436b68962a7f289c829b5841fcd/golden_frame-2.1.74.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-20 16:49:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "leomotors",
    "github_project": "golden-frame",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "golden-frame"
}
        
Elapsed time: 0.19017s