transparent-rotate


Nametransparent-rotate JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/transparent_rotate
SummaryRotates images, makes the created background transparent
upload_time2022-12-29 17:47:05
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords image numpy cv2 rotate
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Rotates images, makes the created background transparent



```python

$pip install transparent-rotate

from transparent_rotate import rotate_with_adjusting,rotate_without_adjusting

i1 = r"https://github.com/hansalemaos/screenshots/raw/main/splitted1.png"

i2 = rotate_without_adjusting(

    img="https://github.com/hansalemaos/screenshots/raw/main/papag_00000008.png",

    angle=60,

    save_path=None,

)

# The picture can easily be merged with other pictures



from cv2watermark import merge_image_percentage_width_position



merg3 = merge_image_percentage_width_position(

    back=i1,

    front=i2,

    percentx=20,

    percenty=20,

    front_percentage_width=30,

    save_path="f:\\cv2mergepics\\rotate1.png",

)



i1 = r"https://github.com/hansalemaos/screenshots/raw/main/splitted1.png"

i2 = rotate_with_adjusting(

    img="https://github.com/hansalemaos/screenshots/raw/main/papag_00000008.png",

    angle=60,

    save_path=None,

)





merg3 = merge_image_percentage_width_position(

    back=i1,

    front=i2,

    percentx=20,

    percenty=20,

    front_percentage_width=30,

    save_path="f:\\cv2mergepics\\rotate2.png",

)



```







<img src="https://github.com/hansalemaos/screenshots/raw/main/splitted1.png"/>





<img src="https://github.com/hansalemaos/screenshots/raw/main/papag_00000008.png"/>





<img src="https://github.com/hansalemaos/screenshots/raw/main/rotate1.png"/>





<img src="https://github.com/hansalemaos/screenshots/raw/main/rotate2.png"/>












            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/transparent_rotate",
    "name": "transparent-rotate",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "image,numpy,cv2,rotate",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a2/b1/97dfc6913c7f452d6d42b0bb0d713a02381fae5e3afa03e2279e243ad5a3/transparent_rotate-0.10.tar.gz",
    "platform": null,
    "description": "\n# Rotates images, makes the created background transparent\n\n\n\n```python\n\n$pip install transparent-rotate\n\nfrom transparent_rotate import rotate_with_adjusting,rotate_without_adjusting\n\ni1 = r\"https://github.com/hansalemaos/screenshots/raw/main/splitted1.png\"\n\ni2 = rotate_without_adjusting(\n\n    img=\"https://github.com/hansalemaos/screenshots/raw/main/papag_00000008.png\",\n\n    angle=60,\n\n    save_path=None,\n\n)\n\n# The picture can easily be merged with other pictures\n\n\n\nfrom cv2watermark import merge_image_percentage_width_position\n\n\n\nmerg3 = merge_image_percentage_width_position(\n\n    back=i1,\n\n    front=i2,\n\n    percentx=20,\n\n    percenty=20,\n\n    front_percentage_width=30,\n\n    save_path=\"f:\\\\cv2mergepics\\\\rotate1.png\",\n\n)\n\n\n\ni1 = r\"https://github.com/hansalemaos/screenshots/raw/main/splitted1.png\"\n\ni2 = rotate_with_adjusting(\n\n    img=\"https://github.com/hansalemaos/screenshots/raw/main/papag_00000008.png\",\n\n    angle=60,\n\n    save_path=None,\n\n)\n\n\n\n\n\nmerg3 = merge_image_percentage_width_position(\n\n    back=i1,\n\n    front=i2,\n\n    percentx=20,\n\n    percenty=20,\n\n    front_percentage_width=30,\n\n    save_path=\"f:\\\\cv2mergepics\\\\rotate2.png\",\n\n)\n\n\n\n```\n\n\n\n\n\n\n\n<img src=\"https://github.com/hansalemaos/screenshots/raw/main/splitted1.png\"/>\n\n\n\n\n\n<img src=\"https://github.com/hansalemaos/screenshots/raw/main/papag_00000008.png\"/>\n\n\n\n\n\n<img src=\"https://github.com/hansalemaos/screenshots/raw/main/rotate1.png\"/>\n\n\n\n\n\n<img src=\"https://github.com/hansalemaos/screenshots/raw/main/rotate2.png\"/>\n\n\n\n\n\n\n\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Rotates images, makes the created background transparent",
    "version": "0.10",
    "split_keywords": [
        "image",
        "numpy",
        "cv2",
        "rotate"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "3179e8f89e2a45ce4fa64d463e319939",
                "sha256": "4278f5dfa3ba7eeeaf4b1d8767b06ce4c1c43f913e5823492f5a2676f47e0b58"
            },
            "downloads": -1,
            "filename": "transparent_rotate-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3179e8f89e2a45ce4fa64d463e319939",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4900,
            "upload_time": "2022-12-29T17:47:04",
            "upload_time_iso_8601": "2022-12-29T17:47:04.356920Z",
            "url": "https://files.pythonhosted.org/packages/de/4e/96838b627580e53ba2136251af5160bb2a0d1c701b7253391ceb058b292a/transparent_rotate-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "9153d9f0e0621bbcefcebc6433b2e65d",
                "sha256": "2b49fc38340e8ccb1f85cf24a196050fa1113439b70905e0184f51627bc7218e"
            },
            "downloads": -1,
            "filename": "transparent_rotate-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "9153d9f0e0621bbcefcebc6433b2e65d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3436,
            "upload_time": "2022-12-29T17:47:05",
            "upload_time_iso_8601": "2022-12-29T17:47:05.717506Z",
            "url": "https://files.pythonhosted.org/packages/a2/b1/97dfc6913c7f452d6d42b0bb0d713a02381fae5e3afa03e2279e243ad5a3/transparent_rotate-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-29 17:47:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "transparent_rotate",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "transparent-rotate"
}
        
Elapsed time: 0.02231s