{"id":15965541,"url":"https://github.com/vanyasem/godot-shareimage","last_synced_at":"2026-04-14T23:31:38.816Z","repository":{"id":123265229,"uuid":"94672470","full_name":"vanyasem/Godot-ShareImage","owner":"vanyasem","description":"Godot Module for sharing images on Android","archived":false,"fork":false,"pushed_at":"2020-02-29T22:06:28.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T23:16:56.488Z","etag":null,"topics":["android","godot","godot-shareimage","intent","share"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vanyasem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-18T07:35:04.000Z","updated_at":"2023-08-08T10:50:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2b09d53-ebf4-4d86-afc1-99e749807784","html_url":"https://github.com/vanyasem/Godot-ShareImage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanyasem%2FGodot-ShareImage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanyasem%2FGodot-ShareImage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanyasem%2FGodot-ShareImage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanyasem%2FGodot-ShareImage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanyasem","download_url":"https://codeload.github.com/vanyasem/Godot-ShareImage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247184019,"owners_count":20897696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","godot","godot-shareimage","intent","share"],"created_at":"2024-10-07T17:42:08.954Z","updated_at":"2026-04-14T23:31:33.783Z","avatar_url":"https://github.com/vanyasem.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Godot-ShareImage\nThis is an Android module for [Godot Engine](https://github.com/okamstudio/godot).\n\nThis module can create images in Android External storage and share them via Intents.\n\n## Installation\n- Copy `shareimage` folder inside the `modules` directory of the Godot source.\n\n- You must [recompile](https://godot.readthedocs.io/en/stable/development/compiling/compiling_for_android.html) Godot for Android.\n\n- You need to grant both `WRITE_EXTERNAL_STORAGE` and `READ_EXTERNAL_STORAGE` permissions in order for this module to work properly. **Important:** Starting with Android 6.0 (API level 23) it's not enough to just include the permissions in your `export.cfg`. You must request them from the user at runtime. To do so, you can use this [module](https://github.com/vanyasem/Godot-AndroidPermissions).\n\n- Finally, you need to include the module in your `engine.cfg` (if you have more than one module separate them by comma):\n```\n[android]\nmodules=\"org/godotengine/godot/ShareImage\"\n```\n\n## How to use\nIt's very simple, here's a small snipper:\n\n```python\nvar share_image = null\nfunc _ready():\n\tif Globals.has_singleton(\"ShareImage\"):\n\t\tshare_image = Globals.get_singleton(\"ShareImage\")\n\t\tshare_image.init(get_instance_ID(), \"Share using:\", false)\n\t\tscreen_capture()\n\tpass\n\nvar img = null\nfunc screen_capture():\n\tget_viewport().queue_screen_capture()\n\tyield(get_tree(), \"idle_frame\")\n\tyield(get_tree(), \"idle_frame\")\n\timg = get_viewport().get_screen_capture()\n\n\tshare_image.getAndroidExternalPath(\"ExampleFileName_\" + str(OS.get_unix_time()) + \".png\")\n\tpass\n\nfunc _on_path_returned(path):\n\tif path != \"\":\n\t\timg.save_png(path)\n\t\tshare_image.shareImageWithText(path, \"Example image sending using ShareImage module\")\n\tpass\n```\n\n## API Reference\nThe following methods are available:\n\n```python\n# Init ShareImage\n# @param int instanceId The instance id from Godot (get_instance_ID())\n# @param String shareTitle A title for an intent chooser\n# @param boolean debug Indicates whether a debug mode should be enabled\ninit(instanceId, shareTitle, debug)\n\n# Get external path for a file with given name\n# @param String fileName The name of a file\ngetAndroidExternalPath(fileName)\n\n# Path returned callback\n# @param String path Path of an image\n_on_path_returned(path)\n\n# Share image\n# @param String path Path to image file without file://\nshareImage(path)\n\n# Share image with text\n# @param String path Path to image file without file://\n# @param String shareText Text to share\nshareImageWithText(path, shareText)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanyasem%2Fgodot-shareimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanyasem%2Fgodot-shareimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanyasem%2Fgodot-shareimage/lists"}