{"id":15532855,"url":"https://github.com/tito/image2mbtiles","last_synced_at":"2025-04-23T14:41:15.813Z","repository":{"id":31047302,"uuid":"34605970","full_name":"tito/image2mbtiles","owner":"tito","description":"Convert an image into mbtiles","archived":false,"fork":false,"pushed_at":"2022-12-08T10:45:35.000Z","size":15,"stargazers_count":12,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T00:56:30.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tito.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-26T09:42:40.000Z","updated_at":"2024-07-16T15:45:59.000Z","dependencies_parsed_at":"2023-01-14T18:14:09.681Z","dependency_job_id":null,"html_url":"https://github.com/tito/image2mbtiles","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/tito%2Fimage2mbtiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tito%2Fimage2mbtiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tito%2Fimage2mbtiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tito%2Fimage2mbtiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tito","download_url":"https://codeload.github.com/tito/image2mbtiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250455047,"owners_count":21433453,"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":[],"created_at":"2024-10-02T11:33:27.817Z","updated_at":"2025-04-23T14:41:15.792Z","avatar_url":"https://github.com/tito.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert an image into a mbtiles\n\nThis script intend is to split an image into tiles in order to build a\ndeep-zoom image. The result will go into a mbtiles, ready to be embed on\nmobiles for example.\n\n\n## Requirements\n\n- Python 3\n- Pillow \u003e= 7.1.2\n\n## Installation\n\n```\npip install -r requirements.txt\n```\n\n## Usage\n\nSyntax:\n\n\t$ python image2mbtiles.py source.png output.mbtiles\n\nFor example, here is the output of a test:\n\n\t$ python image2mbtiles.py 001_Baratta_Vue Naples_BnF.tif output.mbtiles\n\tAnalyse: /Users/tito/Downloads/001_Baratta_Vue Naples_BnF.tif\n\tSize: 30192x10500\n\tMode: YCbCr\n\tMaximum zoom: 7\n\tEstimated tiles: 6334\n\t-\u003e Y offset: 22268\n\t-\u003e Generate zoom 7 (step is 32768)\n\t  - 1/6334\t zoom:7\tix:0\tiy:0\t(0x0) step:32768\n\t-\u003e Y offset: 22268\n\t-\u003e Generate zoom 6 (step is 16384)\n\t  - 2/6334\t zoom:6\tix:0\tiy:0\t(0x0) step:16384\n\t  - 3/6334\t zoom:6\tix:0\tiy:1\t(0x16384) step:16384\n\t  - 4/6334\t zoom:6\tix:1\tiy:0\t(16384x0) step:16384\n\t  - 5/6334\t zoom:6\tix:1\tiy:1\t(16384x16384) step:16384\n    ...\n\nPlease note that the very first image loading can be slow until the whole image\nis loaded. This is a Pillow behavior, and completly normal.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftito%2Fimage2mbtiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftito%2Fimage2mbtiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftito%2Fimage2mbtiles/lists"}